R: R: R: R: R: No output on check_snmp

Marco Borsani m.borsani at it.net
Mon Mar 19 17:09:11 CET 2007


Hi all

 

The problem could be the pipe “|” in the return code of the command
check_snmp ..

 

OK – 18582  |   iso.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.6=18582

 

What can I do not understand is WHY before, the pipe ”|” was read and
processed by nagios without any problem ?!?!?

 

Is it a new features/bug for release 1.4.3 ?

 

Marco

 

  _____  

Da: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] Per conto di Marco
Borsani
Inviato: lunedì 19 marzo 2007 13.43
A: 'Rob Blake'
Cc: 'Evans, Michael'; nagios-users at lists.sourceforge.net
Oggetto: [Nagios-users] R: R: R: R: No output on check_snmp

 

Here it is the lines regarding check_snmp:

 

# 'check_snmp' command definition

define command{

        command_name    check_snmp

        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C
$ARG2$

        }

 

They have default path

 

Marco

  _____  

Da: Rob Blake [mailto:rob.blake at gmail.com] 
Inviato: lunedì 19 marzo 2007 12.38
A: Marco Borsani
Cc: Luca Fornasari; Evans, Michael; nagios-users at lists.sourceforge.net
Oggetto: Re: [Nagios-users] R: R: R: No output on check_snmp

 

On 3/19/07, Marco Borsani <m.borsani at it.net> wrote:

Luca,

I run as root or nagios user from command line, and receiving same (correct)
answers like:
./check_snmp -H 151.1.XXX.YYY -o .1.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.6 -C
ABCDEF
SNMP OK - 16788 | iso.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.6=16788 ;;;;

Marco



What's your command defintion? Does it have the correct path to the plugin?

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070319/a73eaadb/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- 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