ePN Argument list bug

Jason Abraham nagios at its.washco.utah.gov
Wed Sep 16 22:07:15 CEST 2009


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,".




------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf




More information about the Developers mailing list