Incomplete status information
Posted: Fri May 10, 2013 6:00 am
When i run this code from /usr/local/nagios/libexec/
I get this output: DISK OK [/volume1 1.6T (45% free)]
When i create a servicecheck, the Nagios interface only shows: DISK OK (Not the part between the brackets). How can i get the verbose description to show up in Nagios?
This is the checkcommand:
This is the service:
Code: Select all
./check_disk.pl -i /,/volume1/photo/Upload,/volumeUSB1/usbshare,/volume1/photo/Top,/tmp,/opt -w 20G -c 30G -v -H 172.23.2.14 -u rootWhen i create a servicecheck, the Nagios interface only shows: DISK OK (Not the part between the brackets). How can i get the verbose description to show up in Nagios?
This is the checkcommand:
Code: Select all
}
define command {
command_name check_linux_volumes
command_line $USER1$/check_disk.pl -H $HOSTADDRESS$ -v -u root -i $ARG1$ -w $ARG2$ -c $ARG3$
}Code: Select all
}
define service {
service_description Data Volume
check_command check_linux_volumes!/,/volume1/photo/Upload,/volumeUSB1/usbshare,/volume1/photo/Top,/tmp,/opt!-w 500G!-c 200G!!
host_name dsbks014
check_period 24x7
notification_period 24x7
max_check_attempts 5
check_interval 10
retry_interval 2
event_handler_enabled 0
use local-service
contact_groups +admins
}