<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>I have 4.3.27-1.el7.terabithia running on Centos 7, and can't get any rules in alerts.cfg.to match and fire an alert.</p>
<p>I have in hosts.cfg:</p>
<p>192.168.2.31    phone-sales    # conn</p>
<p>In alerts.cfg:</p>
<p> HOST=phone-sales COLOR=red<br />     MAIL somebody@gmail.com<br />## Wildcard rule<br /> HOST=%^.*$ COLOR=red<br />     MAIL somebody@gmail.com</p>
<p> </p>
<p>Made the wildcard rule a regexp because "HOST=*" wasn't working, and added the host-specific rule because no wildcard was working.  But if I trigger a red on host phone-sales, in alert.log I see:</p>
<p>Checking criteria for host 'phone-sales', which is not yet defined; some alerts may not immediately fire</p>
<p> </p>
<p>What am I missing?  I retired a year and a half ago, and have been out of practice, so feel free to start with "You dummy...."</p>
<div> </div>
</body></html>