Error with



I’m facing difficulties with The error is "**ePN /usr/lib/nagios/plugins/ “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$/ -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: … 8.html;d=1


Shouldn’t there in command_line variable in command definition be instead of


You’re absolutely correct. However, I had first used check_remote_disk as command name (to be in sync with function), and later changed all definitions back to check_disk when I thought that the script itself would check its name somewhere. So the definitions and the error message are from different runs.
Should have fixed the posting, though.