It it possible to have a test that doesn't propagate status to the xymon page?
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: glauber.ribeiro at experian.com p: 224-698-3108 f: 224-698-5032
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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
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
-----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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
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.
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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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?
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
participants (2)
-
glauber.ribeiro@experian.com
-
john.thurston@alaska.gov