Xymon Mailing List Archive search

It it possible to have a test that doesn't propagate status to the xymon page?

6 messages in this thread

list Glauber Ribeiro · Wed, 18 Nov 2015 23:00:07 +0000 ·
Hello all,

I have a test that routinely turns red, and I would like to keep that, but without making the whole xymon page go red. 
Is this possible? 

Thanks,

glauber

---
Glauber Ribeiro
Experian Automotive, Schaumburg IL
Infrastructure and Information Security
e: user-59d088777028@xymon.invalid
p: XXX-XXX-XXXX f: XXX-XXX-XXXX
list John Thurston · Wed, 18 Nov 2015 14:02:08 -0900 ·
quoted from Glauber Ribeiro
On 11/18/2015 2:00 PM, Ribeiro, Glauber wrote:
Hello all,

I have a test that routinely turns red, and I would like to keep that, but without making the whole xymon page go red.
Is this possible?
You can prevent the test result from propagating upward in the page 
hierarchy. See the "nopropyellow" "nopropred" tags
To prevent the test result from appearing on the non-green page, use the 
"nonongreen" tag.

-- 
    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 Glauber Ribeiro · Thu, 19 Nov 2015 02:44:09 +0000 ·
Excelent, thanks!

I wasn't able to make this work using .default. in hosts.cfg, but it worked as expected when I added it to the command line for xymongen.

g
quoted from John Thurston

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
Sent: Wednesday, November 18, 2015 17:02
To: xymon at xymon.com
Subject: Re: [Xymon] It it possible to have a test that doesn't propagate status to the xymon page?

On 11/18/2015 2:00 PM, Ribeiro, Glauber wrote:
Hello all,

I have a test that routinely turns red, and I would like to keep that, but without making the whole xymon page go red.
Is this possible?
You can prevent the test result from propagating upward in the page 
hierarchy. See the "nopropyellow" "nopropred" tags
To prevent the test result from appearing on the non-green page, use the 
"nonongreen" tag.

-- 
    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 John Thurston · Thu, 19 Nov 2015 08:21:12 -0900 ·
quoted from Glauber Ribeiro
On 11/18/2015 2:00 PM, Ribeiro, Glauber wrote:
I have a test that routinely turns red, and I would like to keep that, but without making the whole xymon page go red.
Is this possible?
You can prevent the test result from propagating upward in the page
hierarchy. See the "nopropyellow" "nopropred" tags
To prevent the test result from appearing on the non-green page, use the
"nonongreen" tag.
On 11/18/2015 5:44 PM, Ribeiro, Glauber wrote:
I wasn't able to make this work using .default. in hosts.cfg, but it worked as expected when I added it to the command line for xymongen.
Something is fishy. With 4.3.17+ on Solaris it certainly is able to work on the .default. line. I use it all the time.

   nopropred:+msgs
will add the "msgs" test to the list of tests not to propagate. Putting it on a hostline will limit its effect to just that host. Putting it on a .default. line will leave it in effect until the next .default. line. My configuration uses a new .default. at the top of each display group, so I know it works reliably.

If it isn't working for you on .default., I suggest confirming:
  the syntax of the tag
  that there isn't another .default. line later
quoted from Glauber Ribeiro

-- 
    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 Glauber Ribeiro · Thu, 19 Nov 2015 20:52:03 +0000 ·
This is 4.3.10 compiled by myself, on Linux. I would rather use the .default. than the command line for xymongen.

What's the syntax for default? I don't see it in the documentation I had:

0.0.0.0 .default. # nopropred:tls nopropyellow:tls

I also tried with "+tls" instead of "tls"
".default." starts and ends with a dot.

This was the first entry in my hosts.cfg file.
quoted from John Thurston

g


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
Sent: Thursday, November 19, 2015 11:21
To: xymon at xymon.com
Subject: Re: [Xymon] It it possible to have a test that doesn't propagate status to the xymon page?
On 11/18/2015 2:00 PM, Ribeiro, Glauber wrote:
I have a test that routinely turns red, and I would like to keep that, but without making the whole xymon page go red.
Is this possible?
You can prevent the test result from propagating upward in the page
hierarchy. See the "nopropyellow" "nopropred" tags
To prevent the test result from appearing on the non-green page, use the
"nonongreen" tag.
On 11/18/2015 5:44 PM, Ribeiro, Glauber wrote:
I wasn't able to make this work using .default. in hosts.cfg, but it worked as expected when I added it to the command line for xymongen.
Something is fishy. With 4.3.17+ on Solaris it certainly is able to work 
on the .default. line. I use it all the time.

   nopropred:+msgs
will add the "msgs" test to the list of tests not to propagate. Putting 
it on a hostline will limit its effect to just that host. Putting it on 
a .default. line will leave it in effect until the next .default. line. 
My configuration uses a new .default. at the top of each display group, 
so I know it works reliably.

If it isn't working for you on .default., I suggest confirming:
  the syntax of the tag
  that there isn't another .default. line later

-- 
    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 John Thurston · Thu, 19 Nov 2015 12:12:38 -0900 ·
quoted from Glauber Ribeiro
On 11/19/2015 11:52 AM, Ribeiro, Glauber wrote:
This is 4.3.10 compiled by myself, on Linux. I would rather use the .default. than the command line for xymongen.
I forget if I used 4.3.10, but I'm pretty sure that was before my time. I was still using Big Brother :)
What's the syntax for default? I don't see it in the documentation I had:
If .default. isn't in the man page for hosts.cfg, maybe it didn't exist in 4.3.10
0.0.0.0 .default. # nopropred:tls nopropyellow:tls
That looks fine. That will replace the nopropred and nopropyellow values with "tls". If you wanted to append "tls" to the end of the existing nopropred, it would be
     # nopropred:+tls

 From my man page:
NOPROPRED:[+|-]testname[,[+|-]testname]
    This tag is used to inhibit a yellow or red status from propagating upwards - i.e. from a test status color to the (sub)page status color, and further on to xymon.html or nongreen.html

    If a host-specific tag begins with a '-' or a '+', the host-specific tags are removed/added to the default setting from the command-line option. If the host-specific tag does not begin with a '+' or a '-', the default setting is ignored for this host and the NOPROPRED applies to the tests given with this tag.

    E.g.: xymongen runs with "--nopropred=ftp,smtp". "NOPROPRED:+dns,-smtp" gives a NOPROPRED setting of "ftp,dns" (dns is added to the default, smtp is removed). "NOPROPRED:dns" gives a setting of "dns" only (the default is ignored).
Does the nopropred work if you append it to a specific host line?
quoted from Glauber Ribeiro

-- 
    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