Forum Discussion

Hebex_35785's avatar
Hebex_35785
Icon for Nimbostratus rankNimbostratus
Mar 11, 2009

Generic command in user_alert.conf

Hi,

I would like to execute a generic command when the state of a instance change

Is it possible to keep the message and pass it to my commande

Ex:

 
 alert BIGIP_GTMD_MONITOR_INSTANCE_STATE_CHANGE "Monitor instance (.*) (.*).*) (.*) --> (.*) from (.*) (.*)"  
 { 
      exec command="/usr/local/bin/my_command $LOG" 
 } 
 

With result :

/usr/local/bin/my_command Monitor instance HTTP x.x.x.x:80 DOWN --> UP from x.x.y.y (state: success)

Tanks

Romain

11 Replies