08-31-2015 01:38 PM
Here is a sample script
event manager applet test
event routing network X.X.X.X/X protocol BGP
action 1.0 syslog msg "Route $_routing_network $_routing_protocol $_routing_type $_routing_lastinterface"
action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time:" body "$_syslog_msg"
I got an error in the log , actually twice
Aug 27 2015 01:49:20.734 edt: %HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: _syslog_msg
Aug 27 2015 01:49:20.734 edt: %HA_EM-3-FMPD_ERROR: Error executing applet test statement 2.0
Any advice is appreciated
Solved! Go to Solution.
09-01-2015 11:12 AM
$_syslog_msg is a built-in variable to the syslog event detector. What you want is:
action 0.5 set msg "Route $_routing_network $_routing_protocol $_routing_type $_routing_lastinterface"
action 1.0 syslog msg $msg
action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time:" body "$msg"
09-01-2015 11:12 AM
$_syslog_msg is a built-in variable to the syslog event detector. What you want is:
action 0.5 set msg "Route $_routing_network $_routing_protocol $_routing_type $_routing_lastinterface"
action 1.0 syslog msg $msg
action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time:" body "$msg"
09-03-2015 03:08 PM
Thanks Joseph,
I will give it a try and let you know
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: