Perl plugins: No output from plugin

Lori Adams ladams at cloudmark.com
Tue Aug 23 02:44:01 CEST 2005


When you ran it by hand as nagios user, did you include all relevant
arguments?

/opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c
3,3,4 -L

 

Another trick to verify that you're running it by hand correctly is to
do 

define command{

       command_name    check_linux_load

       command_line    echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$
-C public -w $ARG1$ -c $ARG2$ -L

}  

The command will appear in the UI, and then you can run what is shown.  

 

"No output from plugin" means just that.  Nagios is expecting some kind
of statement about the check.  Your check is not outputting anything.
You're getting a difference between running by hand and running
automatically.  Get those to be the same, it'll be easier to track down.

 

-Lori

 

________________________________

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dennis
Hopp
Sent: Monday, August 22, 2005 3:54 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Perl plugins: No output from plugin

 

I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl

 

I can run the plugin from the command line (as both root and nagios
user) and get the right results but when it's fired off automatically I
keep getting "No output from plugin".

 

Here are the relevant config:

 

define  service{

        use                             generic-service

        hostgroup_name                  LinuxServers

        service_description             LOAD

        is_volatile                     0

        check_period                    24x7

        max_check_attempts              3

        normal_check_interval           5

        retry_check_interval            1

        contact_groups                  domain-admins

        check_command                   check_linux_load!2,2,3!3,3,4

}

 

 

define command{

        command_name    check_linux_load

        command_line    $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C
public -w $ARG1$ -c $ARG2$ -L

}

 

 

$USER1$=/opt/nagios/plugins

 

[root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl

-rwxr-xr-x  1 root root 14168 Aug 22 12:42
/opt/nagios/plugins/check_snmp_load.pl

 

Thanks,

 

--Dennis

*         "Privileged/Confidential Information of Communications Supply
Corp. may be contained in this message.  If you are not the addressee of
this message, you may not copy, use or deliver this message to anyone.
In such event, you should destroy the message and kindly notify the
sender by reply e-mail.  It is understood that opinions or conclusions
that do not relate to the official business of Communications Supply
Corp. are neither given nor endorsed by Communications Supply Corp."

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050822/244db61e/attachment.html>


More information about the Users mailing list