Thanks, i will use the combo.cfg procedure
De: Xymon <xymon-bounces at xymon.com> en nombre de John Thurston <user-ce4d79d99bab@xymon.invalid>
Enviado: martes, 12 de diciembre de 2017 12:38
Para: xymon at xymon.com
Asunto: Re: [Xymon] NAME directe isn't working
The "NAME" directive is not doing what you think it is doing.
Each host is defined once in Xymon. It may appear on several lines, but
there is only _one_ entry for the host in the "database". Which line
Xymon uses depends on what is on the line. Look at the "PREFER"
directive for more information on that decision. You may change the NAME
of the host, but only one time.
Your host "srv02.foo.com" can be displayed as "Server Xymon", but it can
not be displayed elsewhere as "Test"
I've used "combo tests" to work around this limitation. If I had an
actual host named "foo.bar.com", for which I wanted both display names
"A" and "B", I'd do something like:
:: hosts.cfg ::
0.0.0.0 foo.bar.com # name:A
0.0.0.0 foo.bar.com.local # name:B testip noconn
:: combo.cfg ::
foo.bar.com.local.msgs = foo.bar.com.msgs
The "testip noconn" combination keeps xymonnet from trying to perform
name resolution for my fake hostname. The entry in combo.cfg populates
the msgs test for my fake hostname.
--
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
On 12/11/2017 5:39 PM, Jimmy Aulestia wrote:Hi,
I try to change the hostname in the hosts.cfg, but in the second time
that srv02 is in the file, the name "Server Xymon" don't change
in the web page.
I have Xymon 4.3.28.**
This is my hosts.cfg:
page INICIO <H5> INICIO </H5>
roup-except test
10.111.112.28 srv02 # NAME:"Server Xymon" prefer
page PRODUCCION <H5>PRODUCCION</H5>
subpage SG <H5> SG </H5>
subparent SG PPGA <H5> PPGA </H5>
subparent test <H5> test </H5>
group-only TEST1 <font size="+1">test</font>
10.111.112.28 srv02 # NAME:"test"
What is wrong?
Thanks.
Xymon -- Discussions about the Xymon monitor<
lists.xymon.com
The Xymon monitor - www.xymon.com - is an Open Source (GPL) licensed monitoring system. This mailing list is for discussions about installing and using Xymon.
Xymon -- Discussions about the Xymon monitor<
lists.xymon.com
The Xymon monitor - www.xymon.com - is an Open Source (GPL) licensed monitoring system. This mailing list is for discussions about installing and using Xymon.