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?
Check_snmp on cisco devices
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Check_snmp on cisco devices
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.
https://exchange.nagios.org/directory/P ... Gear/Cisco
Take a close look at the check_nwc_health plugin - it's lovely.
-
stevejwilliams83
- Posts: 2
- Joined: Tue Aug 25, 2015 1:45 pm
Re: Check_snmp on cisco devices
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?
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Check_snmp on cisco devices
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:
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?
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.scriptSavvy so far?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check_snmp on cisco devices
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
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.