Xymon Mailing List Archive search

External scripts thresholds via hobbit-clients.cfg

list Jeremy Laidman
Wed, 19 Oct 2011 16:15:56 +1100
Message-Id: <CAAnki7BgrLU=user-68ffa8980ac1@xymon.invalid>

On Wed, Oct 19, 2011 at 12:34 PM, Scot Kreienkamp <user-462cf0b6d846@xymon.invalid> wrote:
Anyone have a working example?  I am still unable to get this to work.
From analysis.cfg:

HOST=%^ntp\d
    DS ntp ntpstat.rrd:offsetms >10 COLOR=red "TEXT=NTP offset &Vms
higher than &Ums"
    DS ntp ntpstat.rrd:offsetms >5 COLOR=yellow "TEXT=NTP offset &Vms
higher than &Ums"
    DS ntp ntpstat.rrd:offsetms <-10 COLOR=red "TEXT=NTP offset &Vms
lower than &Lms"
    DS ntp ntpstat.rrd:offsetms <-5 COLOR=yellow "TEXT=NTP offset &Vms
lower than &Lms"

This monitors NTP offset and alerts on exceeding the thresholds and
sends the status to the "ntp" status page.  I enabled this only today,
and while it generates alerts on exceeding the threshold, it hasn't
been "bedded in" so there might be faults with how I've used this.

Note that the doco (man analysis.cfg) shows the correct format but
misses the column in the example.

Cheers
Jeremy