Xymon Mailing List Archive search

get hobbit to show status for same host but with different configuration

7 messages in this thread

list Mogens Busk · Fri, 2 Jan 2009 10:13:31 +0100 ·
Hi

I Would like to make Xymon display 2 pages with the same hosts on but with
different configuration (etc/hobbit-clients.cfg). Is there a way to make
hobbit read another etc/hobbit-clients.cfg eg.
etc/hobbit-clients_servicelinea.cfg for one page set and the normal
etc/hobbit-clients.cfg for the normal page set?

alternatively is it possible to make a virtual host with bbcombotest which
includes some specifik process, ports and services from different hosts?

-- 
mvh mogens busk
user-299afb767d0c@xymon.invalid
list Henrik Størner · Mon, 5 Jan 2009 12:59:02 +0000 (UTC) ·
quoted from Mogens Busk
In <user-2d75d139e2e9@xymon.invalid> "Mogens Busk" <user-16632790e0e4@xymon.invalid> writes:
I Would like to make Xymon display 2 pages with the same hosts on but with
different configuration (etc/hobbit-clients.cfg). Is there a way to make
hobbit read another etc/hobbit-clients.cfg eg.
etc/hobbit-clients_servicelinea.cfg for one page set and the normal
etc/hobbit-clients.cfg for the normal page set?
No. The hobbit-clients.cfg is not used dynamically in the sense that 
it is checked when you look at the webpage. It is used when the client
sends in data it has collected; this data is checked against the
hobbit-clients.cfg settings, and then the status data that show up on
the webpage is generated.

So for a single host you cannot have different versions of e.g. the "procs"
status depending on what page you're viewing.
quoted from Mogens Busk
alternatively is it possible to make a virtual host with bbcombotest which
includes some specifik process, ports and services from different hosts?
I don't think so (not entirely sure what you mean, but ...)

bbcombotest can only be used to make a combination of existing statuses.
E.g. you have three hosts that you do process-checks on; you can then 
use bbcombotest to build a combined status that shows "green" if e.g.
at least one of the original three hosts has a green "procs" status.
bbcombotest doesn't go into the details of *how* each "procs" status
went green or red, so it cannot be used to look for a specific process
or port.

I think what you want to do needs some custom scripting or programming.
You can pull the data you need out of Hobbit (so you don't have to 
collect it yourself), but wrapping your rules around these data is not
something Hobbit can do out-of-the-box.


Regards,
Henrik
list Mogens Busk · Mon, 5 Jan 2009 14:30:06 +0100 ·
Hi

Is it then possible to run a bbcmd to get the info generated with different
hobbit-clients.cfg files.
I can read in the man pages it could be like this (I can't get this woking):
bbcmd sh
hobbitd_channel --channel=client hobbitd_client
--config=hobbit-client-testa.cfg

And then parse this output to another page to have hobbit show the normal
page like

normal hobbitpage
servera
proc1
proc2
proc3
...

hobbit serviceline page
servera
proc2

serverb
proc3
port1


2009/1/5 Henrik Størner <user-ce4a2c883f75@xymon.invalid>
quoted from Henrik Størner
In <user-2d75d139e2e9@xymon.invalid> "Mogens
Busk" <user-16632790e0e4@xymon.invalid> writes:
I Would like to make Xymon display 2 pages with the same hosts on but with
different configuration (etc/hobbit-clients.cfg). Is there a way to make
hobbit read another etc/hobbit-clients.cfg eg.
etc/hobbit-clients_servicelinea.cfg for one page set and the normal
etc/hobbit-clients.cfg for the normal page set?
No. The hobbit-clients.cfg is not used dynamically in the sense that
it is checked when you look at the webpage. It is used when the client
sends in data it has collected; this data is checked against the
hobbit-clients.cfg settings, and then the status data that show up on
the webpage is generated.

So for a single host you cannot have different versions of e.g. the "procs"
status depending on what page you're viewing.
alternatively is it possible to make a virtual host with bbcombotest which
includes some specifik process, ports and services from different hosts?
I don't think so (not entirely sure what you mean, but ...)

bbcombotest can only be used to make a combination of existing statuses.
E.g. you have three hosts that you do process-checks on; you can then
use bbcombotest to build a combined status that shows "green" if e.g.
at least one of the original three hosts has a green "procs" status.
bbcombotest doesn't go into the details of *how* each "procs" status
went green or red, so it cannot be used to look for a specific process
or port.

I think what you want to do needs some custom scripting or programming.
You can pull the data you need out of Hobbit (so you don't have to
collect it yourself), but wrapping your rules around these data is not
something Hobbit can do out-of-the-box.


Regards,
Henrik

-- 

mvh mogens busk
user-299afb767d0c@xymon.invalid
list Henrik Størner · Mon, 12 Jan 2009 11:29:23 +0000 (UTC) ·
quoted from Mogens Busk
In <user-6c582801d85d@xymon.invalid> "Mogens Busk" <user-16632790e0e4@xymon.invalid> writes:
Is it then possible to run a bbcmd to get the info generated with different
hobbit-clients.cfg files.
I can read in the man pages it could be like this (I can't get this woking)=
:
bbcmd sh

hobbitd_channel --channel=3Dclient hobbitd_client
--config=3Dhobbit-client-testa.cfg
quoted from Mogens Busk
And then parse this output to another page to have hobbit show the normal
page like
normal hobbitpage
servera
proc1
proc2
proc3
...
hobbit serviceline page
servera
proc2
serverb
proc3
port1

You must understand that in Hobbit the (hostname+statusname) combination
is considered unique. So you cannot have more than one (servera/proc) 
status.

You *could* use different hostnames; then you can modify the client on
each server to send the data multiple times using different hostnames.
It's a bit waste of ressources, though.

Perhaps it would be an idea if you told us exactly what it is you're trying
to achive with this setup ?


Regards,
Henrik
list Mogens Busk · Mon, 12 Jan 2009 13:05:32 +0100 ·
Hi

I Understand that hostname+statusname is unipue. What I want to do i us
these informations in different combinations.

I think that Xymon works this way:
Xymon server receives client information from the xymon-client, stores this
information and then generate the xymon webpage on request.
When xymon server is asked for a specifik page for clienta+proc, the xymon
server check what to do with the stored information against the
server/etc/hobbit-client.cfg file and the generates the webpage.

I would like to be able to load webpages generated from different
hobbit-client.cfg files.

basicly I want to make 1 page showing everything of interest for the
sysadmins and another one only showing part of the clienta+proc specifik for
a given customer.

I have Proc, Ports and Services for many customers on the same server and
would to be able to tell which customer is affected when some monitor goes
red.

If it is possible to make a page only showing specifik monitors, then it
should be possible to descibe a serviceflow/dataflow on a subpage and then
from the main page see if any services in that flow is affected (one host
should be able to be part of many flows).

Regards
Mogens

2009/1/12 Henrik Størner <user-ce4a2c883f75@xymon.invalid>
quoted from Henrik Størner
In <user-6c582801d85d@xymon.invalid> "Mogens
Busk" <user-16632790e0e4@xymon.invalid> writes:
Is it then possible to run a bbcmd to get the info generated with
different
hobbit-clients.cfg files.
I can read in the man pages it could be like this (I can't get this
woking)=
:
bbcmd sh
hobbitd_channel --channel=3Dclient hobbitd_client
--config=3Dhobbit-client-testa.cfg
And then parse this output to another page to have hobbit show the normal
page like
normal hobbitpage
servera
proc1
proc2
proc3
...
hobbit serviceline page
servera
proc2
serverb
proc3
port1

You must understand that in Hobbit the (hostname+statusname) combination
is considered unique. So you cannot have more than one (servera/proc)
status.

You *could* use different hostnames; then you can modify the client on
each server to send the data multiple times using different hostnames.
It's a bit waste of ressources, though.

Perhaps it would be an idea if you told us exactly what it is you're trying
to achive with this setup ?


Regards,
Henrik

-- 
mvh mogens busk
user-299afb767d0c@xymon.invalid
list Henrik Størner · Mon, 12 Jan 2009 12:59:06 +0000 (UTC) ·
quoted from Mogens Busk
In <user-622a58b09c75@xymon.invalid> "Mogens Busk" <user-16632790e0e4@xymon.invalid> writes:
I think that Xymon works this way:
Xymon server receives client information from the xymon-client, stores this
information and then generate the xymon webpage on request.
When xymon server is asked for a specifik page for clienta+proc, the xymon
server check what to do with the stored information against the
server/etc/hobbit-client.cfg file and the generates the webpage.
Not correct. Xymon receives the client information from xymon-
client, sends this through the hobbitd_client module which reads
the configuration and generates the cpu-, disk-, procs- etc. status-
messages.

So once the client message has been processed, the status is fixed.
The fact that there's a CGI script which generates a webpage from
the status doesn't change that.
quoted from Mogens Busk
basicly I want to make 1 page showing everything of interest for the
sysadmins and another one only showing part of the clienta+proc specifik 
for a given customer.
I have Proc, Ports and Services for many customers on the same server and
would to be able to tell which customer is affected when some monitor goes
red.
Unfortunately that is not possible right now. It is an enhancement I 
would like to make that you could create multiple "procs" messages
with different groups of processes - that would solve your problem,
and would also allow us to focus alerts more directly to the application
team responsible for a specific application. Same method could be used
for e.g. "disk" status.


Regards,
Henrik
list Mogens Busk · Tue, 13 Jan 2009 16:25:24 +0100 ·
quoted from Henrik Størner
Unfortunately that is not possible right now. It is an enhancement I
would like to make that you could create multiple "procs" messages
with different groups of processes - that would solve your problem,
and would also allow us to focus alerts more directly to the application
team responsible for a specific application. Same method could be used
for e.g. "disk" status.

Yes this what I liked to be able to do with xymon.
Maybe this could be done with a simple scipt.

The best way for getting client information is that with the following
command
./bb 127.0.0.1 "hobbitdlog sh64.procs"

-- 
mvh mogens busk
user-299afb767d0c@xymon.invalid