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.
The equipment monitors 10 voltages and each voltage is associated to
an OID: oidV1, oidV2, ..., oidV10. So I can send GET requests from
SNMP manager to receive the value of them.
I'd like to send a notification in case a voltage goes outside a
suitable range.
I'm wondering what is the best approach between creating 10
different notifications with own OID (oidNotifV1Alarm,
oidNotifV2Alarm, ...) or creating just one notification
(oidNotifVAlarm).
In the first case, the notification is self contained: it already
gives the detail about which voltage is alarmed.
In the second case, I could add the voltage related OID in the
notification message. So, if V3 is in alarm, the notification will
be composed by the notification OID (oidNotifVAlarm) and the OID of
V3 (oidV3).
The second approach is simpler to code into the agent (I have to
manage just one notification OID in one generic functions for all
the voltages), but I don't know if SNMP standards allow to have a
notification with a variable list of additional OIDs (I'm asking how
I could write the MIB file for that generic notification).
Thank you for point me to the right direction.
------------------------------------------------------------------------------
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