SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

check_snmp_mem.pl not work on cisco SG200-50FP #37

Open R00T88 opened 7 years ago

R00T88 commented 7 years ago

Hello, i try to get mem info from my cisco switch SG200-50FP but i get always this error:

ERROR: Description table : The requested table is empty or dows not exist

this is the command line that i use:

./check_snmp_mem.pl -H 192.168.0.66 -C public -w 99 -c 100 -I

SNMP is enable on switch because i can retry CPU usage information

How can i fix it?

Thanks

dnsmichi commented 7 years ago

Maybe the OIDs are wrong. I suggest to enable the verbose/debug mode and look into the script which OIDs are pulled. Might need adoptions for that switch of yours. I don't have such hardware to test, so I will make blind suggestions here.

R00T88 commented 7 years ago

i think there is no memory pool information on CISCO Small Business switch. I try to search on mib but without success. Do you know how can i check sysUptime ?

Thanks

dnsmichi commented 7 years ago

You could look into #31 which seems to implement that for the CPU plugin. Maybe @spali has an idea?

R00T88 commented 7 years ago

Temperature and fan oid are different on CISCOSB too. @spali what health check did you implement on your switch?

spali commented 7 years ago

Currently I disabled all SNMP checks, Because it results in CPU spikes on the switch. Researched a bit, and it seems to be a common problem with these switches to use SNMP :(

R00T88 commented 7 years ago

So your advice is to disable snmp check on it?

spali commented 7 years ago

Depends on how critical the switch is for you or if you have an alternative. But at least I suggest to keep an eye on the CPU load when you do snmp checks on a SG switches. I disabled it, because for me the performance of my switch is more important than the stuff I monitor with snmp. Also I have a stack of two for redundancy, which makes it less critical if one dies. And because it's a home setup... I can life with with the drawbacks only monitoring the switch with ping checks.

R00T88 commented 7 years ago

thanks @spali and @dnsmichi i found oid for temperature and fan

temperature SNMP OID is: 1.3.6.1.4.1.9.6.1.101.83.5.1.1.2.1

Fans Unit 1 .1.3.6.1.4.1.9.6.1.101.83.1.1.1.3.67109249 Fans Unit 2 .1.3.6.1.4.1.9.6.1.101.83.1.1.1.3.67109250 Fans Unit 3 .1.3.6.1.4.1.9.6.1.101.83.1.1.1.3.67109251 Fans Unit 4 .1.3.6.1.4.1.9.6.1.101.83.1.1.1.3.67109252