I must be missing something stupid as I've been staring at this and can't figure out what's wrong.  I have the following alert rules set up:<br><br>HOST=%(.*-stag-.*) EXHOST=%^(marketing-stag-.*) EXHOST=%^(infra-stag-.*) TIME=*:0800:2100 RECOVERED DURATION>11m<br>
        SCRIPT $SMSPLUS $WLI_STAGMAN_EMAIL REPEAT=1h<br><br>HOST=%^(marketing-stag-.*) TIME=*:0800:2100 RECOVERED<br>
        SCRIPT $SMSPLUS $WLI_MKT_STAG_EMAIL REPEAT=1h<br><br>HOST=%^(infra-stag-.*) TIME=*:0800:2100 RECOVERED<br>        SCRIPT $SMSPLUS $WLI_INFRA_STAG_EMAIL REPEAT=1h<br><br>The problem is that the EXHOST doesn't appear to be working the way I expect it to.  When I do a  hobbitd_alert --test on "marketing-stag-1", it shows the first HOST line (the one with the EXHOSTs) as matching and alerting.<br>
<br>$> bbcmd hobbitd_alert --test marketing-stag-1 Managed-Server --duration=800<br>. . .<br>12:50:51 Matching host:service:page 'marketing-stag-1:Managed-Server:wblx-staging' against rule line 388<br>12:50:51 *** Match with 'HOST=$WLI_MANAGED_STAG EXHOST=$WLI_MKTING_STAG EXHOST=$WLI_INFRA_STAG TIME=*:0800:2100 RECOVERED DURATION>11m' ***<br>
12:50:51 Matching host:service:page 'marketing-stag-1:Managed-Server:wblx-staging' against rule line 388<br>12:50:51 *** Match with 'HOST=$WLI_MANAGED_STAG EXHOST=$WLI_MKTING_STAG EXHOST=$WLI_INFRA_STAG TIME=*:0800:2100 RECOVERED DURATION>11m' ***<br>
12:50:51 Script alert with command '/var/hobbit/server/ext/smsplus' and recipient <a href="mailto:abc@mydomain.com">abc@mydomain.com</a><br>12:50:51 Matching host:service:page 'marketing-stag-1:Managed-Server:wblx-staging' against rule line 390<br>
12:50:51 *** Match with 'HOST=$WLI_MKTING_STAG TIME=*:0800:2100 RECOVERED' ***<br>12:50:51 Matching host:service:page 'marketing-stag-1:Managed-Server:wblx-staging' against rule line 390<br>12:50:51 *** Match with 'HOST=$WLI_MKTING_STAG TIME=*:0800:2100 RECOVERED' ***<br>
12:50:51 Script alert with command '/var/hobbit/server/ext/smsplus' and recipient <a href="mailto:def@mydomain.com">def@mydomain.com</a><br>12:50:51 Matching host:service:page 'marketing-stag-1:Managed-Server:wblx-staging' against rule line 392<br>
12:50:51 Failed 'HOST=$WLI_INFRA_STAG TIME=*:0800:2100 RECOVERED' (hostname not in include list)<br>. . .<br><br>I've tried the regex with and without the "^", and it doesn't seem to have an effect.  Any ideas what I'm missing?  Without the "--duration=800", the first HOST line doesn't match (as expected).<br>