Hi All, Yesterday, I was unable to get the snmp-based Uptime data of a remote RSM in the Nagios Web Interface.
Today, I have setup an L3 switch with VLAN and its IP address, and global SNMP settings (public community only). SNMP settings are as follows: snmp-server community public ro access-list 60 permit any snmp-server host IP public snmp-server enable traps snmp-server enable traps snmp snmp-server enable traps syslog - This switch is in the same subnet as the Nagios machine. - The access-list is set with permit 'any'. Still, I am unable to get the sysUpTime information in nagios web interface. However, on doing an snmpwalk as under succeeds. snmpwalk -v1 -c<community> <address> sysUptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (496887) 1:22:48.87 So, I feel there is something I have missed out on? Any idea what that might be? Thanks, Jim =-=-=-= ---------- Forwarded message ---------- From: Jimmyboy < jimmyjose2...@gmail.com> Date: Fri, May 22, 2009 at 3:40 AM Subject: Re: [Nagios-users] sysUpTime.0: Status showing 'UNKNOWN' To: frisv...@lafayette.edu, Sean Carolan <scaro...@gmail.com> 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 *snmpwalk*. snmpwalk -v1 -c<community> <address> sysUptime DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (10375118) 1 day, 4:49:11.18 However, the Nagios web interface shows its status as UNKNOWN. The 'Status Information' against it says this: Usage:check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] But, this fails. At this point, we can say that Nagios is doing its job through SNMP. So, as you pointed out, may be there are ACLs applied on the RSM, which I need to check out. Thanks, Jim =-=-= On Fri, May 22, 2009 at 2:25 AM, Sean Carolan <scaro...@gmail.com> wrote: > On Thu, May 21, 2009 at 3:45 PM, Jimmyboy <jimmyjose2...@gmail.com> wrote: > > Thanks for the reply. > > > > "snmpwalk -v1 -c d!0nts#0w ipaddress" errors out saying bash: !0: event > not > > found > > "snmpwalk -v1 -c public ipaddress" errors out saying Timeout: No Response > > from IP > > > > Is there anything I need to do on the RSM other than setting the > snmp-server > > communities? > > > Yes, you can choose a less weird snmp community name. You have a "!" > character > in it which your bash shell is choking on. Pick something > simple with only numbers and letters and you should get better > results. If you're worried about security you can do the following: > > 1. Don't expose the switch to the Internet. If its on your internal > LAN and you aren't forwarding any ports to it from the 'net, you > should be fine. > 2. If the device will allow it you can restrict it to only allow snmp > queries from certain IPs. > > hope this helps > > Sean > >
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null