changed checks local host/server entities for change or stangnation. The file
$HOME/lib/changed/CHECK
must contain calls to the
check function for each entity to be checked.
changed is typically set to run
daily via
crontab(1).
The check function operands are:
- [ every day ]
Optional day of week limitation.
- operation
Either changed or stagnant. changed expects no
change between checks and stagnant expects any change between checks.
- check_function
A user supplied function (in the CHECK file) that does
the actual check. The standard output and standard error of this function are compared against previous results to
determine change. This output should be enough to identify the nature of the change(s).
- entity
The entity being checked.
- host ...
One or more hosts to check. The caller must have password-less
ssh(1) access to the hosts.
These
check_functions are provided by
changed:
- check_file_changed
Checks regular and executable files for change.
- check_ksh_changed
Checks ksh executables for change.
$HOME/lib/changed/CHECK example
check calls:
check changed check_ksh_changed /bin/ksh penguin www
check every friday stagnant check_sw_download_stagnant downloads www public
Example crontab(1) entry:
11 23 * * * ksh -c 'PATH=$HOME/bin:/usr/common/ast/bin:$PATH changed -m bozo'