[Xymon] CLOCK and CPU test

Novosielski, Ryan novosirj at ca.rutgers.edu
Thu Sep 26 22:12:23 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/25/2013 04:21 PM, Novosielski, Ryan wrote:
>> According to
>>> http://www.xymon.com/xymon/help/manpages/man5/analysis.cfg.5.html
>>>  you should be able to add a line like
>>> 
>>> CLOCK 15 red
>> 
>>> ... to an analysis.cfg file (or *.d/ entry) to have it go red
>>> if the clock delta exceeds that absolute value. I have to admit
>>> not having tested that ever though.
>>> 
>>> If that doesn't work, you might be able to simulate it (or
>>> assign the color to a different test entirely) with a DS entry;
>>> something like:
>>> 
>>> DS cpu clock.rrd:la <-15 COLOR=red "TEXT=System clock is &V 
>>> seconds off" DS cpu clock.rrd:la >15 COLOR=red "TEXT=System
>>> clock is &V seconds off"
> Wonderful! I must have been reading an old copy of that
> documentation (Google'd for it instead of using what was on the
> system). Thanks Japheth!

On a related note, is there a good way to make sure this is being
picked up? CLOCK does not show up in the config report (and apparently
no local tests do, according to the bugs on confreport.cgi).

I used a regex for the servers is is to apply to (obscured):

HOST=%.*(server|devmach).*.umdnj.edu

...which is supposed to pick up loc1serverA.umdnj.edu,
loc2serverB.umdnj.edu, and loc1devmach.umdnj.edu. pcretest would seem
to confrm that this works right, if I understand how THAT works.

However, I tried adding a FILE test that would turn files yellow if a
file that doesn't exist doesn't exist and that didn't work, so I'm now
questioning my regex.

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | novosirj at rutgers.edu - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJElQ4ACgkQmb+gadEcsb5n4QCghiyLmFlKT/iHOUfSRljltkI4
kmYAn0qaKu8wpi5pz/GlMwiZEMa0wB+D
=jHTi
-----END PGP SIGNATURE-----




More information about the Xymon mailing list