Xymon Mailing List Archive search

grown tests not alerting every 5 minutes

list Jeremy Laidman
Thu, 20 Aug 2020 13:30:03 +1000
Message-Id: <CACO=user-f3375bff6d12@xymon.invalid>

Rod

It's my experience that the conn test does not repeat every 5 minutes under
normal circumstances. And this is the behaviour I'd prefer to see for all
of my alerts. Once I see the first alert, I know whether I need to take
action, and until the recovery message comes through, there isn't much
benefit in being informed of something I already know.

Unless you specify REPEAT in your alerts.cfg, you should get an email every
30 minutes. This is how alerts for the conn test would behave on a default
installation. But you can specify REPEAT to be whatever you need. For more
on REPEAT keyword, refer to the man page for alerts.cfg
<https://xymon.sourceforge.io/xymon/help/manpages/man5/alerts.cfg.5.html>;,
and the help page on Configuring Xymon Alerts
<https://xymon.sourceforge.io/xymon/help/xymon-alerts.html>;.

Cheers
Jeremy


On Thu, 20 Aug 2020 at 11:11, Rod <user-626df9d20e67@xymon.invalid> wrote:
Hi,

I wrote a script test and it's not sending the emails every 5 minutes. It
sends the first email as soon as I initiate the false positive and it will
send the email when it recovers but nothing in between -- sometimes I leave
the false positive for 20 minutes. I looked in the mail logs and I see the
same thing: the email on the first false positive and the email on the
recovery but nothing in between. The default conn test does send the email
every 5 minutes as expected but.

Here is what my alerts.cfg looks like for that host:

HOST=New-xxxxx-Patient-Portal
SERVICE=new-xxxx-patient-portal,http,sslcert,conn
    MAIL user-dbdfb2ed0f46@xymon.invalid COLOR=red RECOVERED
    MAIL user-55746f219f2a@xymon.invalid COLOR=yellow RECOVERED
    MAIL user-061f4261914e@xymon.invalid COLOR=red RECOVERED
    MAIL user-544025ca1a40@xymon.invalid COLOR=red RECOVERED
    MAIL user-573ddb62f0ed@xymon.invalid COLOR=red RECOVERED
    MAIL user-1af7ab88806c@xymon.invalid COLOR=yellow RECOVERED

Here is the tasks.cfg

[new-xxxxxx-patient-portal]
   ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
   CMD /usr/lib/xymon/server/ext/States/nm/xxxxxx.pl
   LOGFILE /var/log/xymon/xxxxxxx.log
   INTERVAL 5m

Here is the hosts.cfg part:
xx.192.160.xx      <hostname>      # new-xxxxxx-patient-portal sslcert
https://xxxxxxxx  NOCOLUMNS:info,trends,clientlog,ports,procs,files,inode


Any help will be appreciated.