Forum Discussion
Email alerts for specific node
- Aug 23, 2017
Hi Pooja,
I have similar problem and posted a question about it. I tried several solutions, and to call a script from user_alert.conf but it fails.
Can you make a try by adding, to the /config/user_alert.conf, a new stanza like that:
alert BIGIP_TEST "IP monitor status down" { snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.12"; email toaddress="email address" fromaddress="donotreply@statoil.com" body="Service DOWN" }
?
As for the "IP" in the first row specify the ip address for one specific node.
Regards,
Preslav
You can user regular expresion;
alert 1 "pool_name member (.?) monitor status (.?)"
Replace name for your pool name. You will receive alarmw when a member goes down and when is up again. If you want only down alerts, the expression is:
alert 1 "pool_name member *(.?) monitor status down"
You can test the configuration is OK with logger, this will write an entry in the log an trigger the email:
logger -p local0.notice "TEST EMAILS !! May 17 00:10:08 lbgccpro1 notice mcpd[7094]: 01070727:5: Pool /Common/pool_*name* member /Common/23.8.34.13:8096 monitor status up. [ /Common/monitor: up ] [ was down for 0hr:0min:9sec ]"
Recent Discussions
Related Content
* 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