Forum Discussion
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
- nitassEmployeeis this helpful?
- hooleylistCirrostratusHi NetCohort,
- hooleylistCirrostratusI 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_66543NimbostratusThank 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