Alias for test name?
I'm looking for an easy way to have the same test result appear under two different column headings. Here's an example:
Host foo.bar.com reports red for the test named 'sql'. This is cool for one page in the xymon web interface. But on a different page, I want that same test result to appear under a column named 'database'.
I'm currently getting this done by running the 'combostatus' task, and having an entry in combo.cfg: foo.bar.com.database = foo.bar.com.sql
This works, but causes the state of 'database' to trail that of 'sql' by one interval.
I've found the 'compact' tag, which lets one cram the status of several tests into one. A line in hosts.cfg like: 0.0.0.0 foo.bar.com # compact:database=sql creates a new column named 'database' which closely tracks 'sql'. But the column name is real, in the sense that the green/red bubble is hyperlinked to svcstatus.sh?HOST=foo.bar.com&SERVICE=database rather than to SERVICE=sql. There aren't any test results for 'database', so the link isn't any good.
Can anyone suggest another way?
If 'combostatus' is the best I can use, what would be the consequence of shortening its interval? If I shorten the interval (from 5min) to 3min or 1min, my test aliases should track more closely to the real test results. Is there some reason this interval shouldn't be shorter than the common reporting interval?
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Department of Administration State of Alaska
On 6/1/2018 10:25 AM, John Thurston wrote:
I've found the 'compact' tag, which lets one cram the status of several tests into one. . . . There aren't any test results for 'database', so the link isn't any good.
And now I must retract this assertion. It looks like the service is eventually valid, and the hyperlink on the bubble works. I suspect I was too impatient in my testing.
Sorry for the bad info.
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Department of Administration State of Alaska
If you do not mind redundant data, simply duplicate the line in the script tjat is sending the result (have one line sat test is sql and the other say test is database). Xymon sever belies that 2 distinct tests were done and keeps everything separate and redundant.
-- Isaac Traxler Storage & Infrastructure Manager High Performance Computing Louisiana State University, LONI 325 Frey Computing Center, Baton Rouge, LA 70803 225-578-1923 | traxler at lsu.edu
On Fri, 1 Jun 2018, John Thurston wrote:
Date: Fri, 1 Jun 2018 13:31:42 From: John Thurston <john.thurston at alaska.gov> To: xymon at xymon.com Subject: Re: [Xymon] Alias for test name?
On 6/1/2018 10:25 AM, John Thurston wrote:
I've found the 'compact' tag, which lets one cram the status of several tests into one. . . . There aren't any test results for 'database', so the link isn't any good.
And now I must retract this assertion. It looks like the service is eventually valid, and the hyperlink on the bubble works. I suspect I was too impatient in my testing.
Sorry for the bad info.
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
john.thurston@alaska.gov
-
traxler@lsu.edu