How to generate a SNMP trap per event (custom media type script?)
to a SNMP server/another monitoring tool ?
If so, how to pass the community + OID as arguments to the media type script?
By default, only the destination, subject and message seem to be passed to the script.
Best Answer
Did you try:
The snmptrap is linux command (so easy to use in shell scripting). It is contained in the
net-snmp-utils
package.