[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 01/01: Remove duplicate check_apt.cmd file.
Bernd Zeimetz
bernd at bzed.de
Fri Jan 9 12:34:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit b308bb78f1dd0c58fa076796386af81caf646056
Author: Bernd Zeimetz <bernd at bzed.de>
Date: Fri Jan 9 13:34:11 2015 +0100
Remove duplicate check_apt.cmd file.
---
dsa/check_apt.cmd | 25 -------------------------
extras/check_apt.cmd | 5 +++--
2 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/dsa/check_apt.cmd b/dsa/check_apt.cmd
deleted file mode 100644
index aeb8d09..0000000
--- a/dsa/check_apt.cmd
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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
diff --git a/extras/check_apt.cmd b/extras/check_apt.cmd
index 812e586..aeb8d09 100644
--- a/extras/check_apt.cmd
+++ b/extras/check_apt.cmd
@@ -9,13 +9,14 @@
# - 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
-# - a cronjob running update-apt-status:
+# - 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 ] = mispipe "sudo /usr/lib/nagios/plugins/check_libs" "sed 's, ([0-9, ]*),,g'"
+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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git
More information about the Pkg-nagios-changes
mailing list