| Home | Docs | Support | Buy | Blog | Forums |
|
Generate an event for unmounted filesystemsWhen a filesystem gets unmounted you can get an event generated. Okay this was a problem I faced. Zenoss generates an event for failing OID collections. Now, here is a way to filter only the failing OID's of filesystems (which means the filesystem is not mounted) This is possible using an event mapping. Okay let's hit it. navigate to the web interface to: Classes => Events > Perf > snmp
http://YOUR-ZENOSS:8080/zport/dmd/Events/Perf/Snmp/editEventClassTransform
Now add this to the rule box:
if evt.summary.find(".1.3.6.1.2.1.25.2.3.1") > -1:
evt.severity = 5
evt.summary = "Filesystem is not mounted"
else:
evt._action = 'drop'
Now as you can see there is an else statement. In this case it means, if its not a filesystem please drop de event.
Ofcourse if you don't want that you can cut that away. |
