Page 1 of 1
Check_snmp on cisco devices
Posted: Tue Aug 25, 2015 1:56 pm
by stevejwilliams83
I am trying to get some of my cisco devices into Nagios XI. I am a true solarwinds guy, but this company has built their entire monitoring for systems, like windows and Linux in Nagios so I am trying to learn this and make it work. No network devices are being monitored at this point.
I added a cisco switch and just did a PING check, but need more. So I am trying to use the "check_snmp" check command but get this error.
COMMAND: /usr/local/nagios/libexec/check_snmp -H 10.20.63.1
OUTPUT: No OIDs specified
I assume its because it doesnt know what to check for snmp. So am I fill in the ARG lines with what I want to check?
Re: Check_snmp on cisco devices
Posted: Tue Aug 25, 2015 2:02 pm
by jdalrymple
You can use check_snmp a zillion times to pull in a zillion different OIDs and then filter each one. Other people have already done all the work for you though:
https://exchange.nagios.org/directory/P ... Gear/Cisco
Take a close look at the
check_nwc_health plugin - it's lovely.
Re: Check_snmp on cisco devices
Posted: Tue Aug 25, 2015 2:09 pm
by stevejwilliams83
So here is where I am pretty "lost" I know enough Linux to be dangerous...I click download and gives me just lines of text...what the heck do I do with that?
Re: Check_snmp on cisco devices
Posted: Tue Aug 25, 2015 3:59 pm
by jdalrymple
Not to be discouraging - we definitely want to help, just fair warning it sounds like you have a long road in front of you
Not sure what you clicked on...
If the lines of text aren't gibberish it's likely that you are downloading some sort of script. If you're familiar with a Windows batch file, they're similar in concept. You run it, some stuff happens, it exits. Nagios uses these plugin scripts to compute status of things just like the check_snmp plugin. So you can copy that text into a file on your Linux system, set it as executable:
Code: Select all
chmod +x /path/to/your/plugin.script
Then from there you can run that script. The idea is that whatever script you're using, it probably does more for you regarding monitoring a specific device than the check_snmp plugin. It probably wraps up a bunch of predefined checks into sort of an omnibus check, instead of having a zillion separate checks for each interface, each fan, etc.
Savvy so far?
Re: Check_snmp on cisco devices
Posted: Tue Aug 25, 2015 6:36 pm
by Box293
Perhaps this guide might shed some light on how to add new plugins and how they integrate with Nagios XI:
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf