NetCohort_66543
Apr 20, 2012Nimbostratus
Custom monitor in monitoring / Script forwarding
Dear all,
I have question concerning follwoing:
We used monitors and sending SNMP traps to our Monitoring.
In case of a few custom alerts we want to forward the alert to a script (sh/perl/php/python) with exec command="/tmp/script.sh".
Example:
alert test_UP "Service detected UP for (.*?) monitor (.*?)" {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.300";
}
The monitor is assigned to a pool.
How can we read additional information from the alert to the script? In detail we want to forward information like, which pool the monitor is assigend?
Thank you and kind regards