Does anyone have a Module just to check if SNMP is working at all?
Hi,
We have a lot of times where a server will stop responding to SNMP checks for whatever reason. That will generally turn CPU, File System, Uptime, etc all to No Data responses. We generally have No Datas set to Not generate alerts so we don't get spammed with things.
However, if snmp really does stop working, we'd want to know that so we can go fix whatever the problem is. We currently have Host Uptime set to generate an alert on No Data, but it usually gets ignored because people think it's because something got rebooted recently or something.
So, I want to setup a check that just does the most basic snmp check it can, something that every device should respond to, and can then alert if it doesn't get a response.
I looked in the Repository and didn't see anything official from LM for this, but did see a community created Module that might work. It's called SNMP_Troubleshooter and there are two of them for some reason. The older one has a newer version # which is a bit odd. Anyway, all it does i:
import com.santaba.agent.groovyapi.snmp.Snmp;
def host = hostProps.get('system.hostname');
try{
oid_value = Snmp.get(host, ".1.3.6.1.2.1.1.2.0");
println "snmpStatus=0";
}
catch (e){
println "snmpStatus=1"
}
return 0
Does anyone else this, or something similar, to find machine where snmp is dead? I see this person also has an WMI version as well which would be great for when WMI dies as well.
Thanks.