Problem with check_snmp plugin

jgking at packetstorm.org jgking at packetstorm.org
Thu Jan 16 15:42:58 CET 2003



i sent an example to the list a few days ago related to check_snmp on 
another snmp question. I had the same issue so I used the delimeter switch 
in check_snmp

i also created two check_snmp entries in checkcommands.cfg (one for 
strings and one for integers both with a delimiter option)

Like so:

define command{
        command_name    check_snmp_int
        command_line    $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$ 
-C $ARG4$ -d $ARG5$
        }

# /check_snmp -H localhost -o .1.3.6.1.2.1.2.2.1.14.2 -s 0 -C ***** -d 
"Counter32: "
define command{
        command_name    check_snmp_str
        command_line    $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ 
-C $ARG4$ -d $ARG5$
        }

Of course i may be doing this the hard way since im still in my first few 
days of delving into this tool. 

If theres a better way please correct me :)   

-Greg

On Thu, 16 Jan 2003, Steve Dussaux wrote:

> I have 2 services using the check_snmp plugin.
> One service work quite well (network usage).
> But i have problems with my other service that check disk usage on Win2K.
> 
> I have manually test the check_snmp :
> 
> check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL
> The command returns this line :
> SNMP OK - 652730
> 
> for my network usage service i have this :
> check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL
> The command returns this line :
> SNMP OK - Counter32:5656236
> 
> I think the problem is that Nagios parses the result of the check_snmp command and search for
> Counter32.
> How can i do to solve this problem ?
> 
> Steve
> 
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: Thawte.com
> Understand how to protect your customers personal information by implementing
> SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
> Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




More information about the Users mailing list