SNMP service template for switches

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
EttiennePRossouw
Posts: 5
Joined: Mon Oct 12, 2015 5:33 am

SNMP service template for switches

Post by EttiennePRossouw »

I have added my switch to monitoring and can check certain parameters such as uptime, ping etc but am looking for a way to check system health such as fan status, cpu etc. Can you please assist. Feeling stumped!

I have imported the MIBs, set up the switch for snmp but not sure how to go about adding the correct command and service template so that I can add it to the host.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SNMP service template for switches

Post by jdalrymple »

This depends very much on the switch manufacturer/model/OS

Start at the Nagios Exchange and see if there is anything that suits your application.
EttiennePRossouw
Posts: 5
Joined: Mon Oct 12, 2015 5:33 am

Re: SNMP service template for switches

Post by EttiennePRossouw »

Thanks, the models we have are Cisco SG500x 48P, (re-branded Linksys device from my understanding) Dell PowerConnectP 3524 and 3424P as well as a HP J4819A ProCurve 5308xl

The one i am really battling with is the Cisco SG500x. Seems easy enough to get port status, bandwidth and up time but the health check is eluding me.
EttiennePRossouw
Posts: 5
Joined: Mon Oct 12, 2015 5:33 am

Re: SNMP service template for switches

Post by EttiennePRossouw »

I turned my focus towards the dell and found a superb plugin. The linksys cisco sg500x is giving me grey hairs!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP service template for switches

Post by ssax »

If you've found an awesome plugin that suits your needs, please post a link to it here so others can use it when they read this.

You might try SNMP walking the device to see what OIDs are available to see if we can get the data you need:

Code: Select all

snmpwalk -v 2c -c community 192.168.5.232:161
OR

Code: Select all

snmpwalk -v 2c -c community 192.168.5.232:161 -On
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SNMP service template for switches

Post by jdalrymple »

Quite often those non IOS Ciscos just don't offer any metrics. The absolute best place to go would be Cisco - ask them for a MIB for the device. If the person you talk to says "what's SNMP" you are probably in for a rough journey :D
EttiennePRossouw
Posts: 5
Joined: Mon Oct 12, 2015 5:33 am

Re: SNMP service template for switches

Post by EttiennePRossouw »

Hi there

The Dell plugin i used is https://exchange.nagios.org/directory/P ... ch/details

check_snmp_powerconnect.pl

Thanks for the advice with the Cisco, i will try that and get back to you
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SNMP service template for switches

Post by tmcdonald »

Thanks for the link, and let us know how that conversation goes!

Otherwise if there's nothing more you need from us, let me know and I'll close the thread.
Former Nagios employee
EttiennePRossouw
Posts: 5
Joined: Mon Oct 12, 2015 5:33 am

Re: SNMP service template for switches

Post by EttiennePRossouw »

I have the mib they recommend, but have no OID's that i see available. I hope its ok for me to post the mib here. Sorry for sounding like a rookie but i have imported this mib, but it gives no traps. How do i use the mib to get the data i need for environmental health?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP service template for switches

Post by tgriep »

I found this link on Cisco's site for downloading the MIBs for your switch.

Code: Select all

http://www.cisco.com/c/en/us/support/switches/sg500x-48-48-port-gigabit-4-port-10-gigabit-stackable-managed-switch/model.html#~tab-downloads
It that zip file is a MIB file called CISCOSBenv_mib.mib for the fan status, power supplies, etc.
Let us know if that helps you out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked