Table of content

www.kudos.be

Scheduling

Use standard cron or any UNIX-capable scheduler to kick-start HC jobs. For example:

00 06 * * 1-5 /opt/hc/bin/check_health.sh --hc=check_hpux_ignite_backup --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null
20 03,07,11,15,19,23 * * 1-5 /opt/hc/bin/check_health.sh --hc=check_hpux_ioscan --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null
00 03 * * 0 /opt/hc/bin/check_health.sh --hc=check_hpux_root_crontab --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null
42 * * * * /opt/hc/bin/check_health.sh --hc=check_hpux_ovpa_status --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null
27,57 * * * * /opt/hc/bin/check_health.sh --hc=check_hpux_sg_cluster_status --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null
17,47 * * * * /opt/hc/bin/check_health.sh --hc=check_hpux_sg_package_status --run --notify=mail --mail-to=alert@acme.com >/dev/null 2>/dev/null

Note: when needing to run multiple HC jobs at the same time, use the --no-lock command-line parameter. This will allow for concurrent runs of the health check script. Concurrent runs will cause multiplexed log entries.




Backlinks: Projects:Health checker