get hobbit to show status for same host but with different configuration
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 mob at rcf.dk
In <1ebd03650901020113u39d2d030p37d8e4f9d550c6d5 at mail.gmail.com> "Mogens Busk" <mogens.busk at gmail.com> 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
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 <henrik at hswn.dk>
In <1ebd03650901020113u39d2d030p37d8e4f9d550c6d5 at mail.gmail.com> "Mogens Busk" <mogens.busk at gmail.com> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- mvh mogens busk mob at rcf.dk
In <1ebd03650901050530g5cf3859awc5742295170e070c at mail.gmail.com> "Mogens Busk" <mogens.busk at gmail.com> 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
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 <henrik at hswn.dk>
In <1ebd03650901050530g5cf3859awc5742295170e070c at mail.gmail.com> "Mogens Busk" <mogens.busk at gmail.com> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- mvh mogens busk mob at rcf.dk
In <1ebd03650901120405j3dc70937v7969cf353103cdcb at mail.gmail.com> "Mogens Busk" <mogens.busk at gmail.com> 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.
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
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 mob at rcf.dk
participants (2)
-
henrik@hswn.dk
-
mogens.busk@gmail.com