Monitor Cisco Uptime

Will Bashlor wbashlor at atcnetworks.net
Sat Oct 20 18:09:12 CEST 2012


Hi list,

 

Well I'm not sure which of the steps below worked but it started working
in Nagios and the check_snmp command works from cli. I'd still be
interested in a guide or the correct steps I should have taken. I'm on a
test vm now but will be reinstalling on a production vm later.

 

root at atcdeb01:~# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public
-o sysUpTime.0

SNMP OK - Timeticks: (448261008) 51 days, 21:10:10.08 |

root at atcdeb01:~#

 

Now I've got to figure out a couple more things. Feel free to respond if
you can help.

 

1.)    Even though ping and uptime show ok, the test Cisco host status
went to "PENDING" in Nagios...?

2.)    Not sure how to get rid of part of the response I don't need for
uptime. I only need "51 days, 21:10:10.08" under Status Information in
Nagios

 

Another thing, I'm looking for advice. For monitoring up/down status'
for core Cisco routers/switches my idea is to monitor snmp response and
ping, but I don't want to get 2 alerts from 1 device if it were to go
down.

 

So can I get ping or snmp alerts if they go down individually and only
one alert if the device is down hard? What other services do you
recommend monitoring for up/down status besides ping?

 

Or is ping sufficient enough in your opinion? I may configure text
alerts only on ping and maybe just email alerts for snmp, or no alerts
for snmp. I like seeing uptime in Nagios though, it makes it easy to see
if any devices have just rebooted after an event.

 

I continue to research every day but I am interested in your thoughts
and opinions if you'd like to share.

 

Oh, can I integrate Nagios with my Cacti? Sorry for all the questions
but will be very grateful for any responses.

 

Thanks all very much,

 

-Will

 

From: Will Bashlor [mailto:wbashlor at atcnetworks.net] 
Sent: Saturday, October 20, 2012 11:23 AM
To: Nagios Users List
Subject: [Nagios-users] Monitor Cisco Uptime

 

Hi list,

 

I've searched to no avail, this is a basic question with hopefully a
simple answer.

 

I'm a long time cacti user (windows), I know basic Linux knowledge, new
to Nagios. I have a fresh install of Debian stable (squeeze) with
apt-get installed Webmin, ssh, apache2, and Nagios 3.2.1, nagiosql, and
whatever dependencies. I am trying to setup monitoring of our core Cisco
routers and switches. I have configured 2 services, ping and uptime.
Ping works great of course but I can't get a valid response from
check_snmp for uptime. Here's the command I've tried from the command
line:

 

root at atcdeb01:/# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public
-o sysUpTime.0

no output, it just hangs

 

I've also tried

 

root at atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x sysUpTime.0

sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) ->
sysUpTime)

 

Obviously with the correct IP and community string

 

If I try this I get:

 

root at atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x
1.3.6.1.2.1.1.3.0

iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19

 

So using OID names aren't working. I've researched with not much luck.

 

>From here and various other sites I've tried...

http://wiki.debian.org/SNMP

 

Added "deb http://ftp.us.debian.org/debian squeeze main contrib
non-free" to /etc/apt/sources.list

 

apt-get update

 

Then apt-get install snmp-mibs-downloader
 
Then "download-mibs". Restart snmp.
 
All to no avail. What am I doing wrong? Is there a simple guide I can
use so check_snmp works with oid names for Cisco and other devices?
 
Thanks for any help you can provide.
 

Best Regards,

 

-Will

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20121020/2d97e4f9/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list