On 22 June 2011 08:50, Giuseppe Modugno <[email protected]> wrote: > I'm defining a MIB for a custom electronic equipment. I already extended the > Net-SNMP agent with success for GET and SET requests. > Now I want to send notifications messages in case of any alarm.
First question - do you actually need to define your own notification? The Net-SNMP agent supports the DisMan Event MIB, which would allow you to monitor these values, and automatically trigger a notification if the value strays outside a defined range. Have a look at the "DisMan Event MIB" section of the snmpd.conf man page for details. > I'm wondering what is the best approach between creating 10 different > notifications with own OID (oidNotifV1Alarm, oidNotifV2Alarm, ...) or > creating just one notification (oidNotifVAlarm). One notification with an explanatory payload would be better. Yes - this is a perfectly valid (and common) approach - see the other notification definitions for similar examples. Dave ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
