<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
p.Ballontekst, li.Ballontekst, div.Ballontekst
{mso-style-name:Ballontekst;
mso-style-link:"Ballontekst Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.BallontekstChar
{mso-style-name:"Ballontekst Char";
mso-style-priority:99;
mso-style-link:Ballontekst;
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle27
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Figured out how to get past this issue. Did a apt-get install snmp*, then removed, installed the plug-ins. Now working.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Ham, Gerrit van IA60 [mailto:g.van.ham@nijmegen.nl] <br><b>Sent:</b> Monday, December 03, 2012 3:08 AM<br><b>To:</b> Nagios Plugin Help List<br><b>Subject:</b> Re: [Nagiosplug-help] check_snmp hangs<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=NL style='color:#1F497D'>Hello Brian,<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I guess the ‘-c’ instead of ‘-C’ to specify the community string is also a typo. If I specify this incorrectly I get an error message:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>./check_snmp -H testserver -o iso.3.6.1.2.1.1.3.0 -c public -P2c<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>check_snmp: Invalid critical threshold: %s<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>- public<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Usage:check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>[-A authpasswd] [-X privpasswd]<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Which version of check_snmp are you using? I have 1.72 on RHEL6 and RHEL5.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>./check_snmp -V<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>check_snmp (nagios-plugins 1.4.9) 1.72<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Maybe download and compile check_snmp?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Kind regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Gerrit van Ham<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:35.4pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Van:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Broughton, Brian [<a href="mailto:Brian.Broughton@PPHeartland.org">mailto:Brian.Broughton@PPHeartland.org</a>] <br><b>Verzonden:</b> Thursday, November 29, 2012 4:24 PM<br><b>Aan:</b> 'Nagios Plug</span><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>in Help List'<br><b>Onderwerp:</b> Re: [Nagiosplug-help] check_snmp hangs<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:35.4pt'><span lang=NL><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>The –p2c is a typo on my part I am using –P2c.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:35.4pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Ham, Gerrit van IA60 [<a href="mailto:g.van.ham@nijmegen.nl">mailto:g.van.ham@nijmegen.nl</a>] <br><b>Sent:</b> Thursday, November 29, 2012 8:55 AM<br><b>To:</b> Nagios Plugin Help List<br><b>Subject:</b> Re: [Nagiosplug-help] check_snmp hangs<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=NL style='color:#1F497D'>Hello Brian,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=NL style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>I think you have to replace ‘-p2c’ by ‘-P2c’. <o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>The –p option is used to specify a port,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>-P is used to specify the SNMP protocol.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>Run check_snmp --help for more information.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>Kind regards,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>Gerrit van Ham<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:70.8pt'><b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Van:</span></b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Broughton, Brian [<a href="mailto:Brian.Broughton@PPHeartland.org">mailto:Brian.Broughton@PPHeartland.org</a>] <br><b>Verzonden:</b> Thursday, November 29, 2012 3:34 PM<br><b>Aan:</b> 'nagiosplug-help@lists.sourceforge.net'<br><b>Onderwerp:</b> [Nagiosplug-help] check_snmp hangs<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:70.8pt'><span lang=NL><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>I originally posted this issue to Nagios forums but was directed to present this issue to developers of the plugin, see below.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>Issue<br>Under Host Groups I have the following problem, the uptime on the router is listed as critical, (Service Check Timed Out) <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'><br>Log file has the following entry Warning: <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>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" <br><br>When I manually run check_snmp it hangs. <br>/usr/local/nagios/libexec# ./check_snmp -H 192.168.xxx.xxx -o iso.3.6.1.2.1.1.3.0 -c comname -p2c<o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>While check_snmp is running I ran: <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>ps -aux | grep snmp <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>I get the following output;<br>/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<br><br>When I manually run snmpget it will return; <br>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<br>iso.3.6.1.2.1.1.3.0 = Timeticks: (406909583) 47 days, 2:18:15.83<br><br>The community name is not being passed, is this normal?<br>I have the proper community name listed in switch.cfg, not sure what else I can do. <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-GB style='font-size:12.0pt'>This is my first pass at setting up and using nagios.<br>Using Ubuntu 12.10 fresh install.</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:70.8pt'><a href="http://www.plannedparenthood.org/heartland/"><span style='color:windowtext;text-decoration:none'><img border=0 width=304 height=113 id="Picture_x0020_1" src="cid:image001.png@01CDD2B2.6C999AB0" alt="http://srvspweb/marketing/RESOURCES/Email%20Tags%20and%20Instructions/NEWGeneralSignatureTagLogo-Blue.png"></span></a><b><span style='font-size:12.0pt;font-family:"Arial Narrow","sans-serif";color:#103A62'><o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:70.8pt'><b><span style='font-size:12.0pt;font-family:"Arial Narrow","sans-serif";color:#103A62'><o:p> </o:p></span></b></p><p class=MsoNormal style='margin-left:70.8pt'><b><span style='font-size:12.0pt;font-family:"Arial Narrow","sans-serif";color:#103A62'>Brian Broughton<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:70.8pt'><i><span style='font-size:12.0pt;font-family:"Arial Narrow","sans-serif";color:#103A62'>Network Administrator 1<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:70.8pt'><i><span style='font-size:6.0pt;font-family:"Arial Narrow","sans-serif";color:#103A62'><o:p> </o:p></span></i></p><p class=MsoNormal style='margin-left:70.8pt'><b><span style='font-family:"Arial Narrow","sans-serif";color:#103A62'>Planned Parenthood of the Heartland</span></b><span style='font-family:"Arial Narrow","sans-serif";color:#103A62'><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span style='font-family:"Arial Narrow","sans-serif";color:#103A62'>1171 7th Street, Des Moines, IA 50314<o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span style='font-family:"Arial Narrow","sans-serif";color:#103A62'>phone: 515.235.0435<br>fax: 515.280.9525<o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span style='font-family:"Arial Narrow","sans-serif"'><a href="marsha.dorhout@ppheartland.org">brian.broughton@ppheartland.org</a><span style='color:#103A62'><o:p></o:p></span></span></p><p class=MsoNormal style='margin-left:70.8pt'><a href="http://www.ppheartland.org/"><span style='font-family:"Arial Narrow","sans-serif";color:#103A62'>www.ppheartland.org</span></a><o:p></o:p></p><p class=MsoNormal style='margin-left:70.8pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><div style='margin-left:35.4pt'><div style='margin-left:35.4pt'><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div></div></div><p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>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.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p></div></body></html>