[Nagiosplug-help] check_snmp hangs

Ham, Gerrit van IA60 g.van.ham at nijmegen.nl
Thu Nov 29 15:55:07 CET 2012


Hello Brian,

I think you have to replace '-p2c' by '-P2c'.
The -p option is used to specify a port,
-P is used to specify the SNMP protocol.
Run check_snmp --help for more information.

Kind regards,

Gerrit van Ham

Van: Broughton, Brian [mailto:Brian.Broughton at PPHeartland.org]
Verzonden: Thursday, November 29, 2012 3:34 PM
Aan: 'nagiosplug-help at lists.sourceforge.net'
Onderwerp: [Nagiosplug-help] check_snmp hangs

I originally posted this issue to Nagios forums but was directed to present this issue to developers of the plugin, see below.

Issue
Under Host Groups I have the following problem, the uptime on the router is listed as critical, (Service Check Timed Out)

Log file has the following entry Warning:
Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: Uptime\nHost: RD Cisco 8818\nAddress: 192.168.xxx.xxx\nState: CRITICAL\n\nDate/Time: Wed Nov 28 12:49:00 CST 2012\n\nAdditional Info:\n\n(Service Check Timed Out)\n"

When I manually run check_snmp it hangs.
/usr/local/nagios/libexec# ./check_snmp -H 192.168.xxx.xxx -o iso.3.6.1.2.1.1.3.0 -c comname -p2c
While check_snmp is running I ran:
ps -aux | grep snmp
I get the following output;
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c -c   192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0

When I manually run snmpget it will return;
snmpget -t 1 -r 5 -m ALL -v 2c -c comname 192.168.xxx.xxx:161 iso.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (406909583) 47 days, 2:18:15.83

The community name is not being passed, is this normal?
I have the proper community name listed in switch.cfg, not sure what else I can do.
This is my first pass at setting up and using nagios.
Using Ubuntu 12.10 fresh install.

[cid:image001.png at 01CDCE49.CFEB9630]<http://www.plannedparenthood.org/heartland/>

Brian Broughton
Network Administrator 1

Planned Parenthood of the Heartland
1171 7th Street, Des Moines, IA 50314
phone: 515.235.0435
fax: 515.280.9525
brian.broughton at ppheartland.org<marsha.dorhout at ppheartland.org>
www.ppheartland.org<http://www.ppheartland.org/>


________________________________
NOTE: Confidential Information - This e-mail is for the sole use of the intended recipients and contains information belonging to Planned Parenthood of the Heartland, which is confidential and/or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this e-mail information is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by reply e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20121129/5a184a7d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7917 bytes
Desc: image001.png
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20121129/5a184a7d/attachment.png>


More information about the Help mailing list