Forum Discussion

BKNwe_10326's avatar
BKNwe_10326
Icon for Nimbostratus rankNimbostratus
Dec 10, 2012

Send email to me, when a monitor goes down on a node.

I'm trying to have an email sent to my address, when the monitor for node 10.191.52.53 goes down. I disconnected the cable from the node, but didn't receive an email (nothing in mailq either). Note, I can send emails from the command line.

 

I aded the following to /etc/alertd/alert.conf and ran tail ltm. Tail ltm showed there was an error at line 527 (email toaddress) location.

 

alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_DOWN "Node 10.191.52.53 monitor status down." {

 

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.400"

 

email toaddress=""

 

fromaddress=""

 

body="Node 10.191.52.53 is down!"

 

}

 

 

I looked on the internet and found the following:

 

http://support.f5.com/kb/en-us/solu...l3667.html

 

This URL says that if you are configuring email notification for custom alerts, you should edit the /config/user_alert.conf file instead of the /etc/alertd/alert.conf file.

 

So, I removed the config and placed it into /config/user_alert.conf.

 

Then I started receiveing alertd errors.

 

Any idea how I can get this to work? I'm on version 10.2.2, LTM.

 

Thanks

 

2 Replies

  • Hi,

     

     

    Can you add a semi-colon after the snmptrap command? Each command in the user_alert.conf stanzas need to be separated with a semi-colon:

     

     

     

    alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_DOWN "Node 10.191.52.53 monitor status down." {

     

    snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.400";

     

    email toaddress="xxxx@zzzz.com"

     

    fromaddress="root@ltm.xxxx.net"

     

    body="Node 10.191.52.53 is down!"

     

    }

     

     

     

    Aaron
  • Issue is resolved. I removed the snmptrap and used the following. I tested the email by disconnecting the cable to my test node and I received an email that it was down. Way cool. Thanks:

     

     

    [root@ushoufndc-ilb04:Active] config vi user_alert.conf

     

    alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_DOWN "Pool member 10.191.52.53:0 monitor status down." {

     

    email toaddress="zzzzz@xxxxxx.com"

     

    fromaddress="root@test.xxx.net"

     

    body="Node 10.191.52.53 is down!"