All,
I’m facing difficulties with check_disk.pl. The error is "**ePN /usr/lib/nagios/plugins/check_disk.pl: “Use of uninitialized value in -d at (eval 1) line 338,”.
What does that error mean? Being completely perl inlitterate this is frustrating, as from shell all is well.
The command is:
define command{
command_name check_remote_disk
command_line $USER1$/check_remote_disk.pl -H $HOSTADDRESS$ -w 10 -c 5 -u srvcheckusr -f $ARG1$
}
And the relevant service is:
define service{
use generic-service ; Name of service template to use
host_name foobar
service_description Disc space status
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_remote_disk!/opt/projects
}
Link to plugin:
nagiosexchange.org/cgi-bin/p … 8.html;d=1