Forum Discussion
NetCohort_66543
Nimbostratus
Apr 20, 2012Custom 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
4 Replies
Sort By
- nitass
Employee
is this helpful? - hoolio
Cirrostratus
Hi NetCohort, - hoolio
Cirrostratus
I forgot to mention, as an ugly workaround, you could create one user_alert.conf entry per pool and then have a custom script per pool if you need to do something per pool. And yes, this is *ugly*. Thus the request for enhancement. - NetCohort_66543
Nimbostratus
Thank you for the reply.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects