Forum Discussion

FishNiX_29746's avatar
FishNiX_29746
Icon for Nimbostratus rankNimbostratus
May 19, 2008

Email to different recpipients via alertd?

Greetings!

 

Is it possible to send email to different recipients for pool member down messages depending on which pool members are down? I've tried creating a custom snmptrap with an email notification, but it doesn't seem to work...

 

 

in /config/user_alert.conf:

 

alert BIGIP_FOOBAR_POOL_MEMBER_MON_STATUS "Pool member xxx.xxx.51.73:80 monitor status down." {

 

snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.200";

 

email toaddress="me@foo.com"

 

fromaddress="f5@foo.com"

 

body="ALERT - FOOBAR pool member down."

 

}

 

 

I *can* receive email alerts, but my guess is that the pool member down is already caught by alertd further up the chain...

 

 

Thanks!

3 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    As long as the matched message string is different from that in alert.conf, you should be able to specify additional traps. This is what's in alert.conf for 9.2.x:
     
      /* 
      * from bigd (CR36393) -- changed from mcpd messages in v9.2.0 (CR46190) and hotfix v9.0.5 
      * For the following 4 alerts, messages need to be used in pattern match to 
      * distiguish different ipaddr, port, etc. So, if these messages are changed, 
      * the changes in alert system need to be done accordingly. 
      */ 
     alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_DOWN "Pool member (.*?).*?) monitor status down." { 
             snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.10" 
     } 
     alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_UP "Pool member (.*?).*?) monitor status up." { 
             snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.11" 
     } 
      
     alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_DOWN "Node (.*?) monitor status down." { 
             snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.12" 
     } 
     alert BIGIP_MCPD_MCPDERR_NODE_ADDRESS_MON_UP "Node (.*?) monitor status up." { 
             snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.13" 
     }

    Note the comment at the top. I know you're not supposed to modify the base alert.conf file, so perhaps a call to Support is in order to clarify that comment. It may shed some light on what you are seeing.

    HTH

    /deb
  • Hello,

     

     

    I am loooking for a way to get notifications when a poolmember goes offline/unreachable,

     

    this looks very good.

     

    Can you point me to a documentation how I can configure these email notifications?

     

     

    greetings

     

     

    Heiko