diff options
author | H. P. <coding _æ_ lirion.de> | 2019-04-17 19:07:19 +0200 |
---|---|---|
committer | H. P. <coding _æ_ lirion.de> | 2019-04-17 19:07:19 +0200 |
commit | 1e2387474a449452b78520b9ad96a8b4b5e99722 (patch) | |
tree | 836889471eec7d2aac177405068e2a8f1e2b1978 /nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd | |
download | nagios-plugins-contrib-1e2387474a449452b78520b9ad96a8b4b5e99722.tar.bz2 |
initial commit of source fetch
Diffstat (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd')
-rw-r--r-- | nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd b/nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd new file mode 100644 index 0000000..aeb8d09 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/extras/check_apt.cmd @@ -0,0 +1,25 @@ +# check_multi command file implementing a +# check_apt replacement +# +# example nrpe.cfg config: +# command[check_apt]=/usr/lib/nagios/plugins/check_multi -f /etc/check_multi/check_apt.cmd +# +# requirements: +# - moreutils +# - the following sudo permissions: +# nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_libs +# nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_running_kernel +# - cronjobs running update-apt-status and update-check_libs-status: +# @hourly root [ -x /usr/lib/nagios/cronjobs/update-apt-status ] && /usr/lib/nagios/cronjobs/update-apt-status 2>&1 | logger -t update-apt-status +# @hourly root [ -x /usr/lib/nagios/cronjobs/update-check_libs-status ] && /usr/lib/nagios/cronjobs/update-check_libs-status 2>&1 | logger -t update-check_libs-status + + + +command[ packages ] = mispipe "/usr/lib/nagios/plugins/check_statusfile /var/cache/nagios_status/apt" "sed -n '1p;\$p' | paste -s -d ''" +command[ libs ] = /usr/lib/nagios/plugins/check_statusfile /var/cache/nagios_status/check_libs +command[ running_kernel ] = sudo /usr/lib/nagios/plugins/check_running_kernel + + +state [ CRITICAL ] = COUNT(CRITICAL) > 0 +state [ WARNING ] = COUNT(WARNING) > 0 +state [ UNKNOWN ] = COUNT(UNKNOWN) > 0 |