Xymon Mailing List Archive search

CLOCK and CPU test

7 messages in this thread

list Ryan Novosielski · Wed, 25 Sep 2013 15:35:48 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I suspect I know the answer to this but want to check:

I'm running Xymon 4.3.12. My manager has recently brought up the need
to have the clock drift monitored (it caused problems with a DB server
when there was massive drift once for some reason). I looked into how
to do this and it looks like the highest level that clock drift can
cause Xymon to alert at is yellow. This means that if I wanted to be
alerted, I'd have to also get alerted for yellow CPU on that machine,
right? So far my only idea is to raise the yellow level for CPU. I
don't really want to bother with an external test.

Any tips?

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 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/

iEYEARECAAYFAlJDOxQACgkQmb+gadEcsb4kIACePC1gBVn4bTvMJFmyinpmcAz4
Ve4AnjMZ+B/CN3zdMFYJVdtBlS3iDUvj
=+9dQ
-----END PGP SIGNATURE-----
list Japheth Cleaver · Wed, 25 Sep 2013 13:15:57 -0700 ·
quoted from Ryan Novosielski
On Wed, September 25, 2013 12:35 pm, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I suspect I know the answer to this but want to check:

I'm running Xymon 4.3.12. My manager has recently brought up the need
to have the clock drift monitored (it caused problems with a DB server
when there was massive drift once for some reason). I looked into how
to do this and it looks like the highest level that clock drift can
cause Xymon to alert at is yellow. This means that if I wanted to be
alerted, I'd have to also get alerted for yellow CPU on that machine,
right? So far my only idea is to raise the yellow level for CPU. I
don't really want to bother with an external test.

Any tips?
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"


HTH,

-jc
list Ryan Novosielski · Wed, 25 Sep 2013 16:21:40 -0400 ·
quoted from Japheth Cleaver
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/25/2013 04:16 PM, Japheth Cleaver wrote:
On Wed, September 25, 2013 12:35 pm, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi all,

I suspect I know the answer to this but want to check:

I'm running Xymon 4.3.12. My manager has recently brought up the need to have the clock drift monitored (it caused problems with
a DB server when there was massive drift once for some reason).
I looked into how to do this and it looks like the highest level that clock drift can cause Xymon to alert at is yellow. This means that if I wanted to be alerted, I'd have to also get alerted for yellow CPU on that machine, right? So far my only idea is to raise the yellow level for CPU. I don't really want
to bother with an external test.

Any tips?
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!
quoted from Ryan Novosielski

- --  ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 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/

iEYEARECAAYFAlJDRdAACgkQmb+gadEcsb61SQCaAgCrteviCwy+bUMIdDqsp0gd
+N8AoL9Wy6srB22AS1kA9iWdus++2gJZ
=d+Pi
-----END PGP SIGNATURE-----
list Ralph Mitchell · Wed, 25 Sep 2013 18:05:27 -0400 ·
Just FYI, the clock drift is measured by comparing the date/time sent at
the bottom of the client message against the Xymon server clock.  I have
some systems on slow network connections and sometimes it takes a couple of
retries for the status report to get through, and by then the client time
is often 10 - 30 seconds adrift.

In other words, it's not simply the client working out that its own clock
is slow.

Ralph Mitchell
On Sep 25, 2013 4:22 PM, "Novosielski, Ryan" <user-6e4f7a3bb37f@xymon.invalid>
quoted from Ryan Novosielski
wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/25/2013 04:16 PM, Japheth Cleaver wrote:
On Wed, September 25, 2013 12:35 pm, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi all,

I suspect I know the answer to this but want to check:

I'm running Xymon 4.3.12. My manager has recently brought up the
need to have the clock drift monitored (it caused problems with
a DB server when there was massive drift once for some reason).
I looked into how to do this and it looks like the highest level
that clock drift can cause Xymon to alert at is yellow. This
means that if I wanted to be alerted, I'd have to also get
alerted for yellow CPU on that machine, right? So far my only
idea is to raise the yellow level for CPU. I don't really want
to bother with an external test.

Any tips?
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!

- --
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 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/

iEYEARECAAYFAlJDRdAACgkQmb+gadEcsb61SQCaAgCrteviCwy+bUMIdDqsp0gd
+N8AoL9Wy6srB22AS1kA9iWdus++2gJZ
=d+Pi
-----END PGP SIGNATURE-----

list John Thurston · Wed, 25 Sep 2013 14:44:03 -0800 ·
quoted from Ralph Mitchell
On 9/25/2013 2:05 PM, Ralph Mitchell wrote:
Just FYI, the clock drift is measured by comparing the date/time sent at
the bottom of the client message against the Xymon server clock.  I have
some systems on slow network connections and sometimes it takes a couple of
retries for the status report to get through, and by then the client time
is often 10 - 30 seconds adrift.

In other words, it's not simply the client working out that its own clock
is slow.
I know that Ryan specifically said he didn't want to go the route of an ext script. I mention this here for others who may search the archives for this topic.

I use an ext script which looks at the output of "/usr/sbin/xntpdc -sn"
It sends a yellow if the clock has drifted more than a second or is synchronized at a stratum greater than 9. It sends a red if the clock has drifted more than five seconds.

-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Ryan Novosielski · Wed, 25 Sep 2013 19:37:49 -0400 ·
Mine always work very well, so at least in my environment, this isn't a concern. It is rare to see anything but 0s.
quoted from Ralph Mitchell


From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: Wednesday, September 25, 2013 06:05 PM
To: Novosielski, Ryan
Cc: Japheth Cleaver <user-87556346d4af@xymon.invalid>; xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] CLOCK and CPU test


Just FYI, the clock drift is measured by comparing the date/time sent at the bottom of the client message against the Xymon server clock.  I have some systems on slow network connections and sometimes it takes a couple of retries for the status report to get through, and by then the client time is often 10 - 30 seconds adrift.

In other words, it's not simply the client working out that its own clock is slow.

Ralph Mitchell

On Sep 25, 2013 4:22 PM, "Novosielski, Ryan" <user-6e4f7a3bb37f@xymon.invalid<mailto:user-6e4f7a3bb37f@xymon.invalid>> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/25/2013 04:16 PM, Japheth Cleaver wrote:
On Wed, September 25, 2013 12:35 pm, Novosielski, Ryan wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi all,

I suspect I know the answer to this but want to check:

I'm running Xymon 4.3.12. My manager has recently brought up the
need to have the clock drift monitored (it caused problems with
a DB server when there was massive drift once for some reason).
I looked into how to do this and it looks like the highest level
that clock drift can cause Xymon to alert at is yellow. This
means that if I wanted to be alerted, I'd have to also get
alerted for yellow CPU on that machine, right? So far my only
idea is to raise the yellow level for CPU. I don't really want
to bother with an external test.

Any tips?
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!

- --
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer

 || \\ and Health | user-46c89e614701@xymon.invalid<mailto:user-46c89e614701@xymon.invalid> - 973/972.0922<tel:973%2F972.0922> (2x0922)
quoted from Ralph Mitchell
 ||  \\  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/

iEYEARECAAYFAlJDRdAACgkQmb+gadEcsb61SQCaAgCrteviCwy+bUMIdDqsp0gd
+N8AoL9Wy6srB22AS1kA9iWdus++2gJZ
=d+Pi
-----END PGP SIGNATURE-----
list Ryan Novosielski · Thu, 26 Sep 2013 16:12:23 -0400 ·
quoted from Ryan Novosielski
-----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.
quoted from Ryan Novosielski

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | user-46c89e614701@xymon.invalid - 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-----