<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;}
/* 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:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</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=Section1>
<p class=MsoNormal>Dear Nagios Team,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am a new user with Nagios.<o:p></o:p></p>
<p class=MsoNormal>I am monitoring on of my switches, by using the Check_SNMP
Plugin.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>As explained on your tutorial, the “–r” in
the command “<span style='font-size:9.0pt;font-family:"Courier New"'>check_snmp!-C
public -o ifOperStatus.1 -r 1 -m RFC1213-MIB</span>” refers to the port
state on my switch.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>the problem is, that although nothing is connected to the
port, the Nagios shows that the port connectivity is OK.<o:p></o:p></p>
<p class=MsoNormal>It identifies the port state (1,2,3) but the nagios doesn’t
show something is wrong.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>See below:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><img width=1063 height=93 id="Picture_x0020_1"
src="cid:image002.png@01CD18C1.0CEBD7F0"><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>On the configuration file I configured:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'># Monitor Ports status via SNMP<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>define service{<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> use generic-service ;
Inherit values from a template<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> host_name LAB-C
Switch<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> service_description Port
1 Link Status<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> check_command check_snmp!-C
public -o ifOperStatus.1 -r 1 -m RFC1213-MIB<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>define service{<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> use generic-service ;
Inherit values from a template<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> host_name LAB-C
Switch<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> service_description Port
15 Link Status<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'> check_command check_snmp!-C
public -o ifOperStatus.15 -r 1 -m RFC1213-MIB<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>as I understand from the plugin explanations, the Nagios
should identify that any reply that is other than “1” should indicate
an alarm.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am using:<o:p></o:p></p>
<p class=MsoNormal>Nagios Core 3.3.1<o:p></o:p></p>
<p class=MsoNormal>Plugins pack 1.4.15<o:p></o:p></p>
<p class=MsoNormal>CentOS Linux<o:p></o:p></p>
<p class=MsoNormal>Net-SNMP and Net-SNMP-Utils are installed.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Your assistance is highly appreciated.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><i><span style='color:gray'>Kfir Yogev,</span></i></b><b><i><span
style='font-family:"Arial","sans-serif";color:gray'><o:p></o:p></span></i></b></p>
<p class=MsoNormal><b><i><span style='font-family:"Times New Roman","serif";
color:gray'><o:p> </o:p></span></i></b></p>
<p class=MsoNormal><i><span style='color:gray'>LES 711 Engineering and Support
- Mobile Satellite Services - </span></i><b><i><span style='color:#17365D'>Station</span></i></b><i><span
style='color:gray'> </span></i><b><i><span style='color:#F79646'>711</span></i></b><i><span
style='color:gray'> </span></i><i><span style='font-family:"Arial","sans-serif";
color:gray'><o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='color:gray'>RRsat - Global Communications
Network Ltd. (NASDAQ RRST)</span></i><i><span style='font-family:"Times New Roman","serif";
color:gray'><o:p></o:p></span></i></p>
<p class=MsoNormal><span style='color:gray'><a href="http://www.rrsat.com">www.rrsat.com</a>
I <a href="http://www.station711.com">www.station711.com</a> </span><span
style='color:gray'><o:p></o:p></span></p>
<p class=MsoNormal><b><i><span style='color:gray'>Mailto:</span></i></b><i><span
style='color:gray'> </span></i><i><a href="mailto:Kfir.y@rrsat.com">Kfir.y@rrsat.com</a><o:p></o:p></i></p>
<p class=MsoNormal><i><span style='color:gray'><img border=0 width=255
height=125 id="_x05ea__x05de__x05d5__x05e0__x05d4__x0020_1"
src="cid:image001.png@01CD18BC.DE292890"
alt="cid:image003.png@01CBCC49.44124CC0"></span></i><i><span style='font-size:
10.0pt;color:gray'><o:p></o:p></span></i></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>