alarms.cfg #include files
alarms.cfg is a series of one or more Pikt scripts or alarm definitions (which may also refer to programs written in other script languages). Use Pikt scripts for system monitoring, to report and fix problems, to enhance system security, and to handle all sorts of routine system administration tasks.
It should be emphasized that you may use the Pikt script language, or employ the one you favor (such as Perl, Python, the shell languages, or whatever) in your script definitions. Use the right tool for the job.
The top-level alarms.cfg might reference #include files, for example:
- accounts_alarms.cfg (passwd problems, pwck, shadow problems, passwd/shadow crosscheck, group problems, grpck)
- security_alarms.cfg (checksum differences, new startup scripts, ctime changes, mtime changes, sulog scan, wtmp)
- disks_alarms.cfg (inode shortages, full disks, nearly full disks, full disks (remote), clear tmp)
- files_system_alarms.cfg (file disappearances, unwanted files, file permissions & owners changes, file size changes, file updates, fresh files, stale files, script changes, root core file)
- dirs_system_alarms.cfg (directory owners & permissions changes)
- dirs_user_alarms.cfg (browser cache clear, core file deletion)
- downage_alarms.cfg (system & network downages, down system revivals)
- reboot_alarms.cfg (system reboots)
- network_alarms.cfg (network service downages, new network hosts)
- logs_system_alarms.cfg (dmesg scans, syslog scans, generic log scans, fixing logfile permissions)
|
- logs_pikt_alarms.cfg (PIKT logfile scans)
- backup_alarms.cfg (system configuration backup, network configuration backup, PIKT configuration backup)
- memory_alarms.cfg (swap file utilization)
- process_alarms.cfg (dead system processes, runaway processes, high process counts, high zombie counts, high per-user process counts, high load averages, high cpu usage, top log, idle users, restart syslog)
- patches_alarms.cfg (patch installation)
- crontab_alarms.cfg (crontab changes)
- httpd_alarms.cfg (googlebot visits, mediabot visits, search links, nonsearch links, search terms, special-interest log entries)
- html_alarms.cfg (broken link checker (external), broken link checker (internal), HTML spell check, google_ad_client error, adsense ad unit counts, adsense/ypn conflict, adsense section targeting)
- mailman_alarms.cfg (GNU Mailman list membership changes, GNU Mailman list configurations)
- and so on for other alarm #include files...
|
(A note about page layout: In the interest of readability, we have added artificial line wraps in many examples. Even though displayed here broken up across several screen lines, in general quoted strings, preprocessor directives, macro definitions, .log & .conf entries, and so on should all be unbroken on a single line.)
For an interesting and very powerful technique for writing generic, customizable, and reusable Pikt scripts, refer to the script macro collection in macros.cfg #include files.
See also the Introduction and Developer's Notes pages for additional samples (with commentary).