<div>Hi All,</div>
<div> </div>
<div>Yesterday, I was unable to get the snmp-based Uptime data of a remote RSM in the Nagios Web Interface.</div>
<div> </div>
<div>Today, I have setup an L3 switch with VLAN and its IP address, and global SNMP settings (public community only).</div>
<div> </div>
<div>SNMP settings are as follows:</div>
<div><font face="Courier New">snmp-server community public ro</font></div>
<div><font face="Courier New">access-list 60 permit any</font></div>
<div><font face="Courier New">snmp-server host IP public</font></div>
<div><font face="Courier New">snmp-server enable traps</font></div>
<div><font face="Courier New">snmp-server enable traps snmp</font></div>
<div><font face="Courier New">snmp-server enable traps syslog</font></div>
<ul>
<li>This switch is in the same subnet as the Nagios machine.</li>
<li>The access-list is set with permit 'any'.</li></ul>
<div> Still, I am unable to get the sysUpTime information in nagios web interface. However, on doing an snmpwalk as under succeeds.</div>
<div> </div>
<div class="im">snmpwalk -v1 -c<community> <address> sysUptime 
<div><font color="#009900">DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (496887) 1:22:48.87</font></div></div>
<div> </div>
<div>So, I feel there is something I have missed out on?</div>
<div> </div>
<div>Any idea what that might be?</div>
<div> </div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div>=-=-=-=</div>
<div> </div>
<div class="gmail_quote">---------- Forwarded message ---------- 
<div>From: <b class="gmail_sendername">Jimmyboy</b> <span dir="ltr"><<a href="mailto:jimmyjose2980@gmail.com">jimmyjose2980@gmail.com</a>></span></div>
<div>Date: Fri, May 22, 2009 at 3:40 AM</div>
<div>Subject: Re: [Nagios-users] sysUpTime.0: Status showing 'UNKNOWN'</div>
<div>To: <a href="mailto:frisvolj@lafayette.edu">frisvolj@lafayette.edu</a>, Sean Carolan <<a href="mailto:scarolan@gmail.com">scarolan@gmail.com</a>></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>I installed SNMP service on a Windows machine and set the NAGIOS configuration files to monitor it for 'sysUptime'. It returns me a successful reply on doing an <em>snmpwalk</em>.</div>
<div> </div>
<div>
<div class="im">snmpwalk -v1 -c<community> <address> sysUptime 
<div> </div></div><font color="#009900">DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10375118) 1 day, 4:49:11.18</font></div>
<div> </div>
<div>However, the Nagios web interface shows its status as UNKNOWN. The 'Status Information' against it says this:</div>
<div>Usage:check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]</div>
<div> </div>
<div>But, this fails.</div>
<div> </div>
<div>At this point, we can say that Nagios is doing its job through SNMP.</div>
<div>So, as you pointed out, may be there are ACLs applied on the RSM, which I need to check out.</div>
<div> </div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div>=-=-=</div>
<div>
<div></div>
<div class="h5">
<div> </div>
<div> </div>
<div> </div>
<div>
<div> </div>
<div>  </div></div>
<div class="gmail_quote">On Fri, May 22, 2009 at 2:25 AM, Sean Carolan <span dir="ltr"><<a href="mailto:scarolan@gmail.com" target="_blank">scarolan@gmail.com</a>></span> wrote: 
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>On Thu, May 21, 2009 at 3:45 PM, Jimmyboy <<a href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>> wrote: 
<div>> Thanks for the reply.</div>
<div>></div>
<div>> "snmpwalk -v1 -c d!0nts#0w ipaddress" errors out saying bash: !0: event not</div>
<div>> found</div>
<div>> "snmpwalk -v1 -c public ipaddress" errors out saying Timeout: No Response</div>
<div>> from IP</div>
<div>></div>
<div>> Is there anything I need to do on the RSM other than setting the snmp-server</div>
<div>> communities?</div>
<div> </div>
<div> </div></div>Yes, you can choose a less weird snmp community name.  You have a "!" 
<div>character in it which your bash shell is choking on.  Pick something</div>
<div>simple with only numbers and letters and you should get better</div>
<div>results.  If you're worried about security you can do the following:</div>
<div> </div>
<div>1.  Don't expose the switch to the Internet. If its on your internal</div>
<div>LAN and you aren't forwarding any ports to it from the 'net, you</div>
<div>should be fine.</div>
<div>2.  If the device will allow it you can restrict it to only allow snmp</div>
<div>queries from certain IPs.</div>
<div> </div>
<div>hope this helps</div>
<div><font color="#888888"> </font></div><font color="#888888">
<div>Sean</div>
<div></div></font> </blockquote></div></div>
<div> </div></div></div>
<div> </div>