Page 1 of 1

[Nagios-devel] ePN Argument list bug

Posted: Wed Sep 16, 2009 7:07 pm
by Guest
It seems that Nagios's ePN is unable to handle empty arguments or extra
spaces in commands.
Non-ePN plugins (C,shell,nagios: -epn) are able to handle commands with
optional arguments.
By optional arguments I am referring to commands which have an addition arg
parameter which
is not always used by the service calling the command. A perl plugin being
processed by
ePN, unfortunately, errors out if not all of the arguments are populated
(see the example
below)


CONFIG
-------
define command {
command_name check_ifstatus_test
command_line $USER1$/check_ifstatus -H $HOSTADDRESS$ -C $ARG1$ $ARG2$
}


define service {
host_name coreswitch
service_description IfStatus
use generic-service
check_command check_ifstatus_test!aa5bbCC
register 1
}

RESULTS
--------
**ePN /opt/nagios/libexec/check_ifstatus: "Use of uninitialized value $opt
in string eq at /usr/share/perl/5.10/Getopt/Long.pm line 497,".








This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]