just reduce output to failing partitions

This commit is contained in:
Jan Wagner 2009-01-30 19:40:04 +00:00
parent 5b163cd80d
commit 27f5c281e7
2 changed files with 6 additions and 4 deletions

2
debian/changelog vendored
View file

@ -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 <waja@cyconet.org> Thu, 02 Oct 2008 00:45:31 +0200

View file

@ -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
}