Xymon Mailing List Archive search

Multiple Host Instances

5 messages in this thread

list Joshua Hunt · Wed, 20 Jul 2016 08:19:23 -0700 ·
Hey all,

Sorry for the slew of questions here, I'm trying to finish up a project and
as an intern, I'm really trying to be able to finish before I have to go
back to school.

My current issue has to do with having multiple instances of a host. In my
hosts.cfg file, it looks like this:

page logs TEST1
group-only testing1|testing2|testing3|info|trends <font
size="+1">glog</font>
10.0.0.1 site.address.domain     # testing1 noping

page logs TEST2
group-only testing1|testing2|testing3|info|trends <font
size="+1">dlog</font>
10.0.0.1 site.address.domain     # testing2 noping

page logs TEST3
group-only testing1|testing2|testing3|info|trends <font
size="+1">zlog</font>
10.0.0.1 site.address.domain     # testing3 noping

This set up does run all my custom tests properly, however, each setup for
"site.address.domain" runs *all three custom scripts, *(testing1 testing 2
& testing3), causing the pages TEST1, TEST2, and TEST3 to *all turn red* if
any one of the other scripts turns red. In relevance to this, when I click,
for example, on my "TEST1" page, it will show that testing1, testing2, and
testing3 are all running for site.address.domain.

Due to the nature of my assignment, I need to separate these instances so
that for the first declaration of site.address.domain only runs testing1,
the second only runs testing2, and the third only runs testing3. I cannot
alter the setup to have multiple host.

Also, I will have ~24 tests that need to constantly be running, (8 per each
host), and they are *slightly* different. I don't have the space to simply
cram all 24 on one line.

So does anyone have any solutions and/or suggestions as to how I could
break up the host to have 3 completely separate instances on Xymon? I hope
this was a specific enough explanation

Thanks all! I really appreciate the community help I've been receiving
while setting this up, its been a huge boost to my education.

Cheers,
Joshua.
list John Thurston · Wed, 20 Jul 2016 08:48:25 -0800 ·
quoted from Joshua Hunt
On 7/20/2016 7:19 AM, Joshua Hunt wrote:
This set up does run all my custom tests properly, however, each setup
for "site.address.domain" runs /all three custom scripts, /(testing1
testing 2 & testing3),
Are the scripts actually *running* three times?

I believe Xymon builds a list of hosts, and then builds a list of tests for each host. It then performs the tests defined for each host. I'd expect your configuration to run each test once for the host, display all three columns/tests on each page, and show all three test results on the host's "info" page.

If what you want is a single test to appear on each page, then I suggest something like this in your hosts.cfg:

####################
page L1 TEST1
group-only testing1
10.0.0.1  site.address.domain # prefer noping testip testing1 \
           testing2 testing3

page L2 TEST2
group-only testing2
0.0.0.0 site.address.domain #

page L3 TEST3
group-only testing3
0.0.0.0 site.address.domain #
##########################

The first defines the host, its IP, and all of its network tests. The slash on the end is to handle the short lines of my email client. It signifies a continuation of the line onto the next. You could split the line, or just make it very long.

The latter entries are there just for display purposes. The columns "info" and "trends" are included by default. Those columns are specific to the host and _not_ to the page. This means clicking on "info" on page L1 is exactly the same as clicking on the link on page L2 or L3.


-- 
    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 Joshua Hunt · Wed, 20 Jul 2016 10:20:53 -0700 ·
Awesome! Thank you! So I did those changes and now it is only the tests I
need that are showing up. However, what you mentioned at the end:
quoted from John Thurston

"The latter entries are there just for display purposes. The columns "info"
and "trends" are included by default. Those columns are specific to the
host and _not_ to the page. This means clicking on "info" on page L1 is
exactly the same as clicking on the link on page L2 or L3."

This is an issue. I'm hoping to be able to set it up so that when I click
on info for TEST1, it will only show testing1, instead of all three tests.
This is so that when I'm on the main view, I can see whether or not
individual systems on the same host are up and running, without all three
turning red when only one is failing.


On Wed, Jul 20, 2016 at 9:48 AM, John Thurston <user-ce4d79d99bab@xymon.invalid>
quoted from John Thurston
wrote:
On 7/20/2016 7:19 AM, Joshua Hunt wrote:
This set up does run all my custom tests properly, however, each setup
for "site.address.domain" runs /all three custom scripts, /(testing1
testing 2 & testing3),
Are the scripts actually *running* three times?

I believe Xymon builds a list of hosts, and then builds a list of tests
for each host. It then performs the tests defined for each host. I'd expect
your configuration to run each test once for the host, display all three
columns/tests on each page, and show all three test results on the host's
"info" page.

If what you want is a single test to appear on each page, then I suggest
something like this in your hosts.cfg:

####################
page L1 TEST1
group-only testing1
10.0.0.1  site.address.domain # prefer noping testip testing1 \
          testing2 testing3

page L2 TEST2
group-only testing2
0.0.0.0 site.address.domain #

page L3 TEST3
group-only testing3
0.0.0.0 site.address.domain #
##########################

The first defines the host, its IP, and all of its network tests. The
slash on the end is to handle the short lines of my email client. It
signifies a continuation of the line onto the next. You could split the
line, or just make it very long.

The latter entries are there just for display purposes. The columns "info"
and "trends" are included by default. Those columns are specific to the
host and _not_ to the page. This means clicking on "info" on page L1 is
exactly the same as clicking on the link on page L2 or L3.


--
   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 · Wed, 20 Jul 2016 10:11:38 -0800 ·
quoted from Joshua Hunt
On 7/20/2016 9:20 AM, Joshua Hunt wrote:
I'm hoping to be able to set it up so that when I click on info for
TEST1, it will only show testing1, instead of all three tests. This is
so that when I'm on the main view, I can see whether or not individual
systems on the same host are up and running, without all three turning
red when only one is failing.
Which do you consider the "main view", nongreen.html ?

If any of the three tests on site.address.domain leave green-state, the host will appear on the nongreen page. Any columns non-green will be added to the display matrix. The matrix will be populated for each host on the page.

Consider the case where host1 is yellow on test1, and host2 is red on test2. Two rows and four columns will be displayed.

Rows:  host1
        host2

Columns:  info
           test1
           test2
           trends

The matrix will be populated with the appropriate color for the host/test combination. If there is no value for a the combination, there will be a dash.
quoted from Joshua Hunt


-- 
    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 Joshua Hunt · Wed, 20 Jul 2016 13:05:58 -0700 ·
I think I see where I went a bit wrong in my explanation process here. I
have one host, that I need set up as three individual hosts. So I need
site.address.domain to run testing1, I need a *second* host of
site.address.domain to run testing2, and a *third* to run testing3,
however, I also need these 3 tests to be completely separated from each
other. What I'm running into is that while I can have Xymon only show
testing1 for the first instance of the host, and testing2 for the second
instance, if testing1 has an error alerts xymon to turn red, all three
instances of site.address.domain also turn red.

When I click on the *info* column for any site.address.domain connected
*host*, it shows that for site.address.domain, testing1, testing2, and
testing3 are all running, even though only one of columns will show up, as
I now have it defined to do so in the hosts.cfg file.

On Wed, Jul 20, 2016 at 11:11 AM, John Thurston <user-ce4d79d99bab@xymon.invalid>
quoted from John Thurston
wrote:
On 7/20/2016 9:20 AM, Joshua Hunt wrote:
I'm hoping to be able to set it up so that when I click on info for
TEST1, it will only show testing1, instead of all three tests. This is
so that when I'm on the main view, I can see whether or not individual
systems on the same host are up and running, without all three turning
red when only one is failing.
Which do you consider the "main view", nongreen.html ?

If any of the three tests on site.address.domain leave green-state, the
host will appear on the nongreen page. Any columns non-green will be added
to the display matrix. The matrix will be populated for each host on the
page.

Consider the case where host1 is yellow on test1, and host2 is red on
test2. Two rows and four columns will be displayed.

Rows:  host1
       host2

Columns:  info
          test1
          test2
          trends

The matrix will be populated with the appropriate color for the host/test
combination. If there is no value for a the combination, there will be a
dash.


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