Suse 10.0 - perl plugin return "No outpput"

John Daily jdaily at apparatus.net
Mon Sep 11 00:55:20 CEST 2006


> If you don't want to do that, write a C or shell wrapper that calls
> the plugin - you will have to rename the plugin so the wrapper can
> pretend to Nagios that it is the real plugin.

Perhaps an easier way would be to specify the full path to Perl before any Perl plugin call:

define command {
    command_name   check_ntp
    command_line   /usr/bin/perl $USER1$/check_ntp -H $HOSTADDRESS$
}


You could, of course, define the path to Perl in a macro, or even the path to Perl plus the path to the standard plugin dir in one macro, like:

$USER2$=/usr/bin/perl /usr/lib/nagios/plugins   # in resource.cfg


define command {
    command_name   check_ntp
    command_line   $USER2$/check_ntp -H $HOSTADDRESS$
}


We need more intelligible macro names, like $USER_PERL$.

-John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060910/8026c5f4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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