From 27f5c281e7bc0cac3d1dde351a9290f8b4ab46c2 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 30 Jan 2009 19:40:04 +0000 Subject: [PATCH] just reduce output to failing partitions --- debian/changelog | 2 ++ debian/pluginconfig/disk.cfg | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 12534c6..d2ecd28 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ nagios-plugins (1.4.12-5) UNRELEASED; urgency=low definitions * changing check_cups command to use host headers anymore, since cups changed it's behavior in etch (Closes: #505610) + * add -e to all reconfigured check commands using check_disk, to only show + effected partitions, when warning or critical (Closes: #395389) -- Jan Wagner Thu, 02 Oct 2008 00:45:31 +0200 diff --git a/debian/pluginconfig/disk.cfg b/debian/pluginconfig/disk.cfg index 1fc46f9..3284639 100644 --- a/debian/pluginconfig/disk.cfg +++ b/debian/pluginconfig/disk.cfg @@ -1,19 +1,19 @@ # 'check_disk' command definition define command{ command_name check_disk - command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -p '$ARG3$' + command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e -p '$ARG3$' } # 'check_all_disks' command definition define command{ command_name check_all_disks - command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' + command_line /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e } # 'ssh_disk' command definition define command{ command_name ssh_disk - command_line /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$' -c '\''$ARG2$'\'' -p '\''$ARG3$'\' + command_line /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$' -c '\''$ARG2$'\'' -e -p '\''$ARG3$'\' } #### @@ -23,5 +23,5 @@ define command{ # 'ssh_disk_4' command definition define command{ command_name ssh_disk_4 - command_line /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$'\'' -c '\''$ARG2$'\'' -p '\''$ARG3$'\' -4 + command_line /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$'\'' -c '\''$ARG2$'\'' -e -p '\''$ARG3$'\' -4 }