perl plug-in problem

Jacob Walcik jwalcik at gmail.com
Wed Dec 8 19:08:21 CET 2004


i'm trying to write a very basic test script in perl that always
returns a status of "OK".  the script is very basic, and i've based
the output on the code i see in some of the existing perl-based
plugins.  however, whenever i configure nagios to execute it, it
always fails with the status information "(No output!)".

the script is globally executable, it's in the nagios libexec
directory, and i've tested it under the nagios user to be sure that
the output is correct on the command line.  the contents of the script
are pasted in below, can anyone tell me what i've done wrong?

------------------------------------
#!/usr/bin/perl

print "dummy plugin\n";
exit $ERRORS{'OK'};
------------------------------------

that's it.  any suggestions?


-- 
jacob walcik
jwalcik at gmail.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list