Skip to content

Instantly share code, notes, and snippets.

@quantonganh
Created January 16, 2014 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantonganh/8453776 to your computer and use it in GitHub Desktop.
Save quantonganh/8453776 to your computer and use it in GitHub Desktop.
```
/etc/cron.d/passive-checks:
file:
- append
- text: |
*/5 * * * * nagios output=$(/usr/lib/nagios/plugins/check_procs -c 1:1 -C rsyslogd -u syslog); return_code=$?; printf "%s\t%s\t%s\t%s\n" "q-mail" "rsyslogd_procs" "$return_code" "$output" | /usr/local/nagios/bin/py_send_nsca -H 10.134.151.217 -c /etc/send_nsca.conf
*/5 * * * * nagios output=$(/usr/lib/nagios/plugins/check_procs -c 1:1 -C rsyslogd -u syslog); return_code=$?; printf "%s\t%s\t%s\t%s\n" "q-mail" "rsyslogd_procs" "$return_code" "$output" | /usr/local/nagios/bin/py_send_nsca -H 10.134.185.197 -c /etc/send_nsca.conf
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment