<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 name=Generator content="Microsoft Word 12 (filtered medium)">
<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:12.0pt;
        font-family:"Times New Roman","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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.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="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=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>From the Nagios Plugins check_snmp documentation: <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>Notes:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> -
Multiple OIDs may be indicated by a comma- or space-delimited list (lists with<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>  
internal spaces must be quoted) [max 8 OIDs]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Related, I’ve also had some problems with MaxMessageSize
truncating return data.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<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"'> borat Gunter
[mailto:borat.gunter@googlemail.com] <br>
<b>Sent:</b> Friday, July 09, 2010 1:40 AM<br>
<b>To:</b> nagiosplug-devel@lists.sourceforge.net;
nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> [Nagiosplug-devel] check_snmp OID numbers limited?<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Dear all,<br>
I have found an interesting point as I test my switch-ports by so:<br>
<i>define service{<br>
       
use                                 
router-service<br>
       
host_name                     
switch1<br>
       
service_description         portstest<br>
        check_command            
snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12]<br>
}<br>
<br>
define command {<br>
        command_name    
snmp_ports<br>
       
command_line        $USER1$/check_snmp -H
$HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports'<br>
}<br>
</i>With this definition nagios shows <b>critical </b>status, but as I <b>reduced
</b>the number of OIDs, <b>only from 1.3.6.1.2.1.2.2.1.8.21 to
1.3.6.1.2.1.2.2.1.8.48</b>, then nagios shows <b>OK</b>, after I add any of a
OID from<b> </b>1.3.6.1.2.1.2.2.1.8.1 to 1.3.6.1.2.1.2.2.1.8.20, nagios gives
out again the <b>critical </b>status. Although with snmpwalk have I all the 1
to 48 Ports with 1(Up) or 2(Down) status.<br>
<br>
Any Help?<br>
thanks very much in advance.<br>
best regards.<br>
<br>
------------------------------<o:p></o:p></p>

<div>

<p class=MsoNormal>------------------------------------------------------------------<br>
<br>
<br>
Hallo Zusammen,<br>
<br>
Ich überwache gerade mein Switch-Ports, insg. 48 Ports, habe mit<br>
<i>define service{<br>
       
use                                 
router-service<br>
       
host_name                     
switch1<br>
       
service_description         portstest<br>
       
check_command            
snmp_ports!1.3.6.1.2.1.2.2.1.8.1,1.3.6.1.2.1.2.2.1.8.2,1.3.6.1.2.1.2.2.1.8.3,1.3.6.1.2.1.2.2.1.8.4,1.3.6.1.2.1.2.2.1.8.5,1.3.6.1.2.1.2.2.1.8.6,1.3.6.1.2.1.2.2.1.8.7,1.3.6.1.2.1.2.2.1.8.8,1.3.6.1.2.1.2.2.1.8.9,1.3.6.1.2.1.2.2.1.8.10,1.3.6.1.2.1.2.2.1.8.11,1.3.6.1.2.1.2.2.1.8.12,1.3.6.1.2.1.2.2.1.8.13,1.3.6.1.2.1.2.2.1.8.14,1.3.6.1.2.1.2.2.1.8.15,1.3.6.1.2.1.2.2.1.8.16,1.3.6.1.2.1.2.2.1.8.17,1.3.6.1.2.1.2.2.1.8.18,1.3.6.1.2.1.2.2.1.8.19,1.3.6.1.2.1.2.2.1.8.20,1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12]<br>
}<br>
<br>
define command {<br>
        command_name    
snmp_ports<br>
        command_line       
$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -r $ARG2$ -l 'snmp_ports'<br>
}<br>
</i>probiert und bekomme ich Critical-Meldung, obwohl alle Ports antwortet mit
entweder 1 oder 2. <br>
<br>
<b>Dann habe ich von OID 1.3.6.1.2.1.2.2.1.8.48 angefangen und Anzahl zunehmend
getestet</b>, bis zu 1.3.6.1.2.1.2.2.1.8.21
(d.h.check_command                  
snmp_ports!1.3.6.1.2.1.2.2.1.8.21,1.3.6.1.2.1.2.2.1.8.22,1.3.6.1.2.1.2.2.1.8.23,1.3.6.1.2.1.2.2.1.8.24,1.3.6.1.2.1.2.2.1.8.25,1.3.6.1.2.1.2.2.1.8.26,1.3.6.1.2.1.2.2.1.8.27,1.3.6.1.2.1.2.2.1.8.28,1.3.6.1.2.1.2.2.1.8.29,1.3.6.1.2.1.2.2.1.8.30,1.3.6.1.2.1.2.2.1.8.31,1.3.6.1.2.1.2.2.1.8.32,1.3.6.1.2.1.2.2.1.8.33,1.3.6.1.2.1.2.2.1.8.34,1.3.6.1.2.1.2.2.1.8.35,1.3.6.1.2.1.2.2.1.8.36,1.3.6.1.2.1.2.2.1.8.37,1.3.6.1.2.1.2.2.1.8.38,1.3.6.1.2.1.2.2.1.8.39,1.3.6.1.2.1.2.2.1.8.40,1.3.6.1.2.1.2.2.1.8.41,1.3.6.1.2.1.2.2.1.8.42,1.3.6.1.2.1.2.2.1.8.43,1.3.6.1.2.1.2.2.1.8.44,1.3.6.1.2.1.2.2.1.8.45,1.3.6.1.2.1.2.2.1.8.46,1.3.6.1.2.1.2.2.1.8.47,1.3.6.1.2.1.2.2.1.8.48![12]
), meldet das Plugin immer <b>OK </b>Zustand, dann egal mit
1.3.6.1.2.1.2.2.1.8.20 oder 1.3.6.1.2.1.2.2.1.8.1 hinzugefügt, nur <b>ein OID
mehr</b>, dann meldet das Plugin <b>Critical</b>, obwohl per snmpwalk-Abfragen
kriege ich ganz normale Rückmeldung 1 oder 2. <br>
<br>
Kann Jemand mir weiter helfen?<br>
<br>
Vielen Dank im Voraus, <o:p></o:p></p>

</div>

</div>

</body>

</html>