Forum Discussion
sharon_lam_1113
Nimbostratus
Aug 16, 2006Can irule send email to let the administrator?
I am new to irule. May I know can irule send email to the administrator to let he knows when the specific event is triggered?
My case is when there a HTTP request to a specific domain site, ...
hoolio
Cirrostratus
Aug 16, 2006Hello,
You can use the 'log' statement in a rule to log an event. There are a few other processes to configure to parse that log info and generate an email.
The general flow is from the rule to syslog-ng to alertd to postfix. You also need to configure a custom SNMP trap--but SNMP isn't actually used to send the alert.
The log statement in a rule can be used like this (where local0.info is the syslog facility.syslog severity) and the quoted string is the message that is generated:
log local0.info "My log statement"To configure a custom SNMP trap see SOL3727:Click here
To configure the triggering of an email based on an SNMP trap, see SOL3667:Click here
To configure Postfix to actually send the email, see SOL3664:Click here
So there are a few steps to go through, but each of them is fairly well documented.
All but the actual iRule log statement is outside the scope of DevCentral, so if you have questions or configuration issues, please contact support.
Thanks,
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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