snmp not working

Marlier, Ian ian.marlier at studentuniverse.com
Tue Nov 15 20:10:13 CET 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of HP Geeza
> Sent: Tuesday, November 15, 2005 12:26 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] snmp not working
> 
> Hi All,
> 
> I was hoping that somebody might be able to help me with a snmp
monitoring
> issue on my nagios box.  I am running the following command on the
command
> line on the nagios box:
> 
> /usr/local/nagios/libexec/./check_snmp <ip address of temp probe in
our
> lab)
> -o .1.3.6.1.4.1.2012.1.1.1.4.2.0 -C public
> 
> and get a value of SNMP "WARNING - 68" back
> 
> however i dont think that this value is correct and as a reult the
> check_snmp plugin seems to be obtaining the wrong result as i dont
expect
> this to be a warning.  For example if i run:
> 
> ./check_snmp 10.30.129.30 -o .1.3.6.1.4.1.2012.1.1.1.4.2.0 -C public
-wv
> 80
> -cv 85
> 
> i still get a value of "WARNING - 68"
> 
> is there a different check_snmp plugin i could use? or am i just
running
> the
> command wrong?  I dont want the service to show up as a warning when
the
> temperature is 68F...hence the reason for doing -wv 80 -cv 85


For a couple of very case-specific monitors, for which the generic
plugin wasn't sufficient, I ended up writing quick bash scripts instead.
It ended up being much quicker than using the generic one for these
specific situations.  (and could have been Perl, or PHP command line, or
tcsh, or just about anything else that does the check and exits the
right way.)

Might be worth a look.




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
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