Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Just in case you had as much trouble finding a solution to this as I have....
The embedded Perl in Nagios sometimes passes in "undef" parameters when $ARGx$ strings are left empty in command definitions, and Getopt tries to do a regex match on them before checking for "undef". The workaround is to either make sure to never have undefined-but-referenced $ARGx$ strings, or to add this near the beginning of the Perl script: