Question about Combo test / hosts
list L. Leen Smit
Dear All,
I'm trying to get the combo test working.. At this point I do see the
combo test on the status page, but when I try to get details about one
of the tests I get a message "no such host"
My question is.. What should the host name be, and where to configure
it??
Should I send the host name from the client?
Or should the host exists under that name in the hosts.cfg?
Current setup:
combo.cfg:
GRN.Koppelingen = ( vnoasu4001.KoppelingenGRNA ||
vnobsu4002.KoppelingenGRNB )
hosts.cfg relevant lin:
group-only |Koppelingen|
145.119.54.28 GRN # COMMENT:"Prod GRN"
$ ./combostatus --no-update
combo
status GRN.blueview green Tue Jul 2 11:27:08 2013
(vnoasu4001.BlueviewA||vnobsu4002.BlueviewB) = (1||1) = 1
&clear <a
href="/xymon-cgi/svcstatus.sh?HOST=vnoasu4001&SERVICE=BlueviewA">vno
asu4001.BlueviewA</a>
&clear <a
href="/xymon-cgi/svcstatus.sh?HOST=vnobsu4002&SERVICE=BlueviewB">vno
bsu4002.BlueviewB</a>
On the client:
TEST="KoppelingenGRNA"
MACHINE="vnoasu4001.KoppelingenGRNA"
LINE="status $MACHINE.$TEST $COLOR `date`
Any help would be greatly appreciated!
Leen
-------------------------Disclaimer-------------------------------
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en een verschoningsrecht.
list Jeremy Laidman
▸
On 2 July 2013 19:39, Smit, L. (Leen) <user-df25ffe3d813@xymon.invalid> wrote:
My question is.. What should the host name be, and where to configure it?? Should I send the host name from the client? Or should the host exists under that name in the hosts.cfg?
It goes into hosts.cfg. You just make up any old hostname you like. I have a separate page (group) for combo display like so: title Cluster of servers number 1 group Cluster1 0.0.0.0 this-cluster # noconn NAME:"This cluster" COMMENT:"Server 1 and server 2" 0.0.0.0 that-cluster # noconn NAME:"That cluster" COMMENT:"Server 3 and server 4" group Cluster2 0.0.0.0 nother-cluster # ... 0.0.0.0 yetnothercluster # ... I'm naming the clusters as "???-cluster". Then in combo.cfg, I define each cluster name and the test being reported: this-cluster.dns (server1.example.com.dns || server2.example.com.dns) that-cluster.http (server3.example.com.http || server4.example.com.http) ... The "dns" and "http" tests must be generated somehow. In my case, by standard xymonnet tests listed against the servers in hosts.cfg, like: 10.1.2.3 server1.example.com # ping dns ntp 10.1.2.3 server2.example.com # ping dns ntp But you can generate the test messages any way you like, such as "KoppelingenGRNA" in your case. J