Xymon Mailing List Archive search

Alias for test name?

3 messages in this thread

list John Thurston · Fri, 1 Jun 2018 10:25:54 -0800 ·
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    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list John Thurston · Fri, 1 Jun 2018 10:31:42 -0800 ·
quoted from John Thurston
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.
quoted from John Thurston

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

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Isaac W Traxler · Fri, 1 Jun 2018 13:35:22 -0500 (CDT) ·
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 XXXXX
XXX-XXX-XXXX | user-4dfb0dbf036e@xymon.invalid
quoted from John Thurston


On Fri, 1 Jun 2018, John Thurston wrote:
Date: Fri, 1 Jun 2018 13:31:42
From: John Thurston <user-ce4d79d99bab@xymon.invalid>
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    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska