Forum Discussion

Perry_Wagner_11's avatar
Perry_Wagner_11
Icon for Nimbostratus rankNimbostratus
Aug 28, 2008

Monitoring Active/Standby failover

Is there a way anyone has found to get an email notification if a redundant pair failover of BigIP occurs?

 

 

thanks
  • Edit /etc/alertd/alert.conf, bold lines added to the default file contents

      
      alert BIGIP_SOD_SODERR_SOD_STANDBY {  
              snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.14";  
              lcdwarn description="Unit going standby." priority="0"  
              email toaddress="LTM-alert@mydomain.com"  
              fromaddress="LTM1@mydomain.com"  
              body="LTM Failover event occured: Unit going to standby"  
      }  
      alert BIGIP_SOD_SODERR_SOD_ACTIVE {  
              snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.15";  
              lcdwarn description="Unit going Active." priority="0"  
              email toaddress="LTM-alert@mydomain.com"  
              fromaddress="LTM1@mydomain.com"  
              body="LTM Failover event occured: Unit going to active"  
      }  
      

    This assumes you have postfix configured to forward mail to your relay.

    For more details on alertd, Click here

    For details on configuring postfix, Click here

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Small nit... It should be

     
     alert BIGIP_SOD_SODERR_SOD_STANDBY {   
               snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.14";   
               lcdwarn description="Unit going standby." priority="0"; 
               email toaddress="LTM-alert@mydomain.com"   
               fromaddress="LTM1@mydomain.com"   
               body="LTM Failover event occured: Unit going to standby"   
       }   
       alert BIGIP_SOD_SODERR_SOD_ACTIVE {   
               snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.15";   
               lcdwarn description="Unit going Active." priority="0"; 
               email toaddress="LTM-alert@mydomain.com"   
               fromaddress="LTM1@mydomain.com"   
               body="LTM Failover event occured: Unit going to active"   
       }   
      

    Note the ';' (Semi-Colon) between the second alert (lcdwarn) and the third (email). (You need a semi-colon between each alert). Not obvious unfortunately. The alertd just logs into ltm that there's a problem at the email line otherwise.
  • While configured this, we are getting the below email "Subject: 010c0018". Is there any way we can change the subjet of the email?

     

    From: root [mailto:root@lb-lab1.test.com] Sent: Tuesday, June 5, 2018 4:58 PM To: mazam@test.com Subject: 010c0018

     

    LTM Failover event occured: Unit going to standby