Xymon Mailing List Archive search

Replace test with script?

6 messages in this thread

list John Horne · Mon, 14 May 2012 15:04:16 +0100 ·
Hello,

Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
'dns' test with one run as a script on clients.

Obviously I can disable the current 'dns' test, but I am a bit loathe to
name a DNS test anything other than 'dns' :-)


John.

-- 
John Horne                   Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX
list Japheth Cleaver · Mon, 14 May 2012 08:37:38 -0700 (PDT) ·
quoted from John Horne
Hello,

Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
'dns' test with one run as a script on clients.

Obviously I can disable the current 'dns' test, but I am a bit loathe to
name a DNS test anything other than 'dns' :-)
Not really possible, AFAIK. Sounds like something that would somehow bite
someone in the future, regardless :)

Your best bet is probably just to give your test a different name
completely (eg, nslookup, bind, resolv, etc...). Just not 'dig', which is
internally an an alias to 'dns'.


Regards,

-jc
list Scot Kreienkamp · Mon, 14 May 2012 15:41:51 +0000 ·
I think you can call it DNS.  The column titles are case sensitive.  Or just call it clientdns or some such thing.

Scot Kreienkamp
user-462cf0b6d846@xymon.invalid
quoted from Japheth Cleaver


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of user-87556346d4af@xymon.invalid
Sent: Monday, May 14, 2012 11:38 AM
To: John Horne
Cc: xymon at xymon.com
Subject: Re: [Xymon] Replace test with script?
Hello,

Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
'dns' test with one run as a script on clients.

Obviously I can disable the current 'dns' test, but I am a bit loathe to
name a DNS test anything other than 'dns' :-)
Not really possible, AFAIK. Sounds like something that would somehow bite
someone in the future, regardless :)

Your best bet is probably just to give your test a different name
completely (eg, nslookup, bind, resolv, etc...). Just not 'dig', which is
internally an an alias to 'dns'.


Regards,

-jc


This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Henrik Størner · Tue, 15 May 2012 15:00:52 +0200 ·
quoted from John Horne
On 14-05-2012 16:04, John Horne wrote:
Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
'dns' test with one run as a script on clients.
You can, as long as you don't have "dns" test defined in the hosts.cfg. Without that definition, you won't have Xymon reporting any data into a "dns" status for that host; but there is nothing barring another script from reporting data and calling it "dns".

You might have a broken graph, unless your script puts a "Seconds: 1.234" line at the bottom of the status message, since the Xymon graph module will expect "dns" data to be in the normal network-test format. If that bothers you, then remove "dns" from the TEST2RRD and GRAPHS settings in xymonserver.cfg and restart Xymon.


Regards,
Henrik
list Elizabeth Schwartz · Tue, 15 May 2012 10:59:21 -0400 ·
quoted from John Horne
On Mon, May 14, 2012 at 10:04 AM, John Horne <user-e95f1ec2f147@xymon.invalid> wrote:
Hello,

Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
To me this falls into the category of "things that will confuse the
heck out of the person who replaces me after I am  hit by a bus"
I try to avoid doing stuff like that and if I do, I try to document it
in very bold letters...

Don't mean to sound flip, I'm old enough to have seen this happen a few times.
list John Horne · Tue, 15 May 2012 16:12:04 +0100 ·
quoted from Elizabeth Schwartz
On Tue, 2012-05-15 at 10:59 -0400, Elizabeth Schwartz wrote:
On Mon, May 14, 2012 at 10:04 AM, John Horne <user-e95f1ec2f147@xymon.invalid> wrote:
Hello,

Using Xymon 4.3.7 does anyone know if it is possible to replace a
xymonnet test with a local test of the same name? I want to replace the
To me this falls into the category of "things that will confuse the
heck out of the person who replaces me after I am  hit by a bus"
I try to avoid doing stuff like that and if I do, I try to document it
in very bold letters...
Oh we are way beyond that :-)

I have been complaining about the lack of additional Linux and UNIX
support here for well over a decade! What has happened? Nothing at all.
I am still the sole person dealing with the central Linux/UNIX boxes.
So, I'm beyond worrying about doing things that may confuse others.

Having said that, I have opted for making the client script report as a
'dnsr' test (for DNS resolution), and leave the supplied 'dns' test
alone.
quoted from John Horne


John.

-- 
John Horne                   Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX