Check_ciscotemp No output! Problem

Andreas Ericsson ae at op5.se
Wed Nov 17 11:10:17 CET 2004


Fernando Lesme Ayala wrote:
> I want to use now the check_ciscotemp.pl. But nagios displays a critical
> message: No output!
> 
>  
> 
> Whats wrong?? Because my checkcommands.cfg is fine, I guess:
> 
>  
> 
> #Temperatura
> 
> define command{
> 
>         command_name    check_ciscotemp
> 
>         command_line    $USER1$/contrib/check_ciscotemp.pl $HOSTADDRESS$ -C
> $USER5$ 
> 
> }
> 
>  
> 
> And the script parameters are:
> 
> ./check_ciscotemp.pl
> 
>  
> 
> Perl envmon temperature plugin for Nagios
> 
> Usage:
> 
>  
> 
>   check_ciscotemp [options] <hostname>
> 
>   Options:
> 
>     -C snmp-community
> 
>     -p snmp-port
> 
>     -i input temperature threshold
> 
>     -o output temperature threshold
> 
>  
> 
>  
> 
> Running the plugin outside nagios: 
> 
> [root at nmspap contrib]# ./check_ciscotemp.pl 172.16.5.1 -C st4rTAC
> 
> OK Inlet Temp: 29 Outlet Temp: 31
> 

Always, always, ALWAYS run plugins manually as the same user as Nagios 
is running as. It's been iterated enough to be the standard response, so 
PLEASE don't post more questions until you have that part working. 
Running them as root is just plain stupid if you're looking to find an 
error.

Also, if that's exactly the plugin output, you'll want to remove the 
empty line of output before the real output. You need to modify the 
plugin to do this.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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