Xymon Mailing List Archive search

NAME directe isn't working

7 messages in this thread

list Jimmy Aulestia · Tue, 12 Dec 2017 02:39:08 +0000 ·
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.
list Ian Diddams · Tue, 12 Dec 2017 09:55:25 +0000 (UTC) ·
 Ive recently installed 4.3.28.

Ive copied over various files from the existing 4.2.3
I now notice that the main view and any sub pages all have what I would expect from the top level menu - Views/Reports/Administration/Help.  those menus all drop down as normal displaying sub categories below them

But if/when i then open a particular alert (any individual server's alert eg conn) I then get the top menu displayed all in text, with all the options visible also, but no format.  So what I see  is

Views:  Main view |  All non-green view |  Critical systems 
Reports:  Event log Report |  Top Changes |  Availability Report |  Snapshot Report |  Config Report |  Config Report (Critical) |  Metrics Report |  Ghost Clients |  Notification Report Acknowledgements 
Administration:  Find host |  Acknowledge alert |  Enable/disable |  Edit critical systems 
Help:  About Xymon |  Installing Xymon |  Configuring Monitoring |  Configuring Alerts |  Critical systems |  Known problems |  Tips and Tricks |  Custom graphs |  Xymon man-pages 

Anybody know how I get that back to the normal menu?  Im guessing its one of the files Ive copied from the "old" setup to the "new" ?  (ocntents of etc basically I suspect)
didds
list Ian Diddams · Tue, 12 Dec 2017 11:09:32 +0000 (UTC) ·
 Ive also checked - xymonmenu.cfg seems to be correct - what I have in place seems to be the same size as the pre "make install" file that is in my build directory, so copying it from elsewhere hasn't changed anything  (it won;t have been copied from 4.2.3 I have realised now cos it doesn't exist as that name in 4.2.3 and isn't one of the rename files in the upgrade guide   upgrade-to-430.txt
cheers
ian
quoted from Ian Diddams


    On Tuesday, 12 December 2017, 10:15:50 GMT, Ian Diddams via Xymon <xymon at xymon.com> wrote:  
 
  Ive recently installed 4.3.28.

Ive copied over various files from the existing 4.2.3
I now notice that the main view and any sub pages all have what I would expect from the top level menu - Views/Reports/Administration/Help.  those menus all drop down as normal displaying sub categories below them

But if/when i then open a particular alert (any individual server's alert eg conn) I then get the top menu displayed all in text, with all the options visible also, but no format.  So what I see  is

Views:  Main view |  All non-green view |  Critical systems 
Reports:  Event log Report |  Top Changes |  Availability Report |  Snapshot Report |  Config Report |  Config Report (Critical) |  Metrics Report |  Ghost Clients |  Notification Report Acknowledgements 
Administration:  Find host |  Acknowledge alert |  Enable/disable |  Edit critical systems 
Help:  About Xymon |  Installing Xymon |  Configuring Monitoring |  Configuring Alerts |  Critical systems |  Known problems |  Tips and Tricks |  Custom graphs |  Xymon man-pages 

Anybody know how I get that back to the normal menu?  Im guessing its one of the files Ive copied from the "old" setup to the "new" ?  (ocntents of etc basically I suspect)
didds
list John Thurston · Tue, 12 Dec 2017 08:38:45 -0900 ·
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
quoted from Jimmy Aulestia

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.

list Jimmy Aulestia · Tue, 12 Dec 2017 19:28:13 +0000 ·
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
quoted from John Thurston

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.
list Ian Diddams · Wed, 13 Dec 2017 10:22:26 +0000 (UTC) ·
 Maybe I should ask my question another way...

what controls the alert page menus?
quoted from Ian Diddams
ian
    On Tuesday, 12 December 2017, 11:09:50 GMT, Ian Diddams via Xymon <xymon at xymon.com> wrote:  
 
  Ive also checked - xymonmenu.cfg seems to be correct - what I have in place seems to be the same size as the pre "make install" file that is in my build directory, so copying it from elsewhere hasn't changed anything  (it won;t have been copied from 4.2.3 I have realised now cos it doesn't exist as that name in 4.2.3 and isn't one of the rename files in the upgrade guide   upgrade-to-430.txt
cheers
ian


    On Tuesday, 12 December 2017, 10:15:50 GMT, Ian Diddams via Xymon <xymon at xymon.com> wrote:  
 
  Ive recently installed 4.3.28.

Ive copied over various files from the existing 4.2.3
I now notice that the main view and any sub pages all have what I would expect from the top level menu - Views/Reports/Administration/Help.  those menus all drop down as normal displaying sub categories below them

But if/when i then open a particular alert (any individual server's alert eg conn) I then get the top menu displayed all in text, with all the options visible also, but no format.  So what I see  is

Views:  Main view |  All non-green view |  Critical systems 
Reports:  Event log Report |  Top Changes |  Availability Report |  Snapshot Report |  Config Report |  Config Report (Critical) |  Metrics Report |  Ghost Clients |  Notification Report Acknowledgements 
Administration:  Find host |  Acknowledge alert |  Enable/disable |  Edit critical systems 
Help:  About Xymon |  Installing Xymon |  Configuring Monitoring |  Configuring Alerts |  Critical systems |  Known problems |  Tips and Tricks |  Custom graphs |  Xymon man-pages 

Anybody know how I get that back to the normal menu?  Im guessing its one of the files Ive copied from the "old" setup to the "new" ?  (ocntents of etc basically I suspect)
didds
  
list John Tullis · Wed, 13 Dec 2017 13:46:21 +0000 ·
I have customized my environment so it won't look the same as yours but source on www.xymon.com shows this:

<!-- Styles for the Xymon body --><link rel="stylesheet" type="text/css" href="/gifs/xymonbody.css">
<!-- Styles for the menu bar --><link rel="stylesheet" type="text/css" href="/menu/xymonmenu-blue.css">

Check the web root/menu to make sure xymonmenu-blue.css exists.

I also recommend looking at the css for that element. Right click on one of the menu items and click Inspect. That will tell you which css file to look at. Check that the case file exists in the menu folder.

When I migrated from Hobbit to Xymon, I had to fix a lot of css although, a lot of it was custom code. Hopefully this gives you somewhere to start.


-----Original Message-----
From: Ian Diddams via Xymon [xymon at xymon.com]
Received: Wednesday, 13 Dec 2017, 3:42AM
To: xymon at xymon.com [xymon at xymon.com]
Subject: Re: [Xymon] Menu list is all text