Xymon Mailing List Archive search

Services listed multiple times on the info page

5 messages in this thread

list Thomas Kähn · Tue, 2 Dec 2008 09:50:32 +0100 ·
Hi,

for some systems some services are listed multiple times in the alerting
table on the info page. E.g. conn and cpu are listed three times but
http is listed only once. Though there is no different alerting
configuration for the different services.

I couldn't figure out any negative effect yet. However it looks strange.
Is there any known bug?

Best regards
Thomas
-- 
Thomas Kähn                        NetCologne
Network Engineering & Design       Gesellschaft für Telekommunikation mbH
                                   Im Süsterfeld 6
Telefon: 0241/701333-18            52072 Aachen
Fax: XXXX/XXXXXX
                             Handelsregister: HRB 25580, Amtsgericht Köln
               Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel
list Henrik Størner · Tue, 2 Dec 2008 21:28:22 +0000 (UTC) ·
quoted from Thomas Kähn
In <user-9a05ea8dbff5@xymon.invalid> Thomas =?iso-8859-1?Q?K=E4hn?= <user-02a72cb3f725@xymon.invalid> writes:
for some systems some services are listed multiple times in the alerting
table on the info page. E.g. conn and cpu are listed three times but
http is listed only once. Though there is no different alerting
configuration for the different services.
Could you try running the command
   bb 127.0.0.1 "hobbitdboard host=HOSTNAME test=conn fields=hostname,testname,color"

for one of those hosts ? It should print out just a single line - if there
are multiple lines that would be an error.

I've seen it happen on rare occasions, but haven't been able to track
it down yet. It's one of those 'this cannot happen' things.


Regards,
Henrik
list Thomas Kähn · Wed, 3 Dec 2008 09:16:57 +0100 ·
Hi Henrik,
quoted from Henrik Størner

On Tue, Dec 02, 2008 at 09:28:22PM +0000, Henrik Størner wrote:
In <user-9a05ea8dbff5@xymon.invalid> Thomas =?iso-8859-1?Q?K=E4hn?= <user-02a72cb3f725@xymon.invalid> writes:
for some systems some services are listed multiple times in the alerting
table on the info page. E.g. conn and cpu are listed three times but
http is listed only once. Though there is no different alerting
configuration for the different services.
Could you try running the command
   bb 127.0.0.1 "hobbitdboard host=HOSTNAME test=conn fields=hostname,testname,color"

for one of those hosts ? It should print out just a single line - if there
are multiple lines that would be an error.

I've seen it happen on rare occasions, but haven't been able to track
it down yet. It's one of those 'this cannot happen' things.
thanks for your response.

This problem seems to be simple problem when matching the hostname:

# bb 127.0.0.1 "hobbitdboard host=manager test=conn fields=hostname,testname,color"
manager|conn|green
managereval|conn|green
managertest|conn|green

http is not checked for eval and test. So it prints out only one line:

# bb 127.0.0.1 "hobbitdboard host=manager test=http fields=hostname,testname,color"
manager|http|green
quoted from Thomas Kähn

Best regards
Thomas
-- 
Thomas Kähn                        NetCologne
Network Engineering & Design       Gesellschaft für Telekommunikation mbH
                                   Im Süsterfeld 6
Telefon: 0241/701333-18            52072 Aachen
Fax: XXXX/XXXXXX
                             Handelsregister: HRB 25580, Amtsgericht Köln
               Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel
list Henrik Størner · Wed, 3 Dec 2008 09:19:03 +0000 (UTC) ·
quoted from Thomas Kähn
In <user-65e4810968df@xymon.invalid> Thomas =?iso-8859-1?Q?K=E4hn?= <user-02a72cb3f725@xymon.invalid> writes:
On Tue, Dec 02, 2008 at 09:28:22PM +0000, Henrik St�rner wrote:
In <user-9a05ea8dbff5@xymon.invalid> Thomas =?iso-8859-1?Q?K=E4hn?= <user-02a72cb3f725@xymon.invalid> writes:
for some systems some services are listed multiple times in the alerting
table on the info page. E.g. conn and cpu are listed three times but
http is listed only once. Though there is no different alerting
configuration for the different services.
Could you try running the command
   bb 127.0.0.1 "hobbitdboard host=HOSTNAME test=conn fields=hostname,testname,color"

for one of those hosts ? It should print out just a single line - if there
are multiple lines that would be an error.

I've seen it happen on rare occasions, but haven't been able to track
it down yet. It's one of those 'this cannot happen' things.
thanks for your response.
This problem seems to be simple problem when matching the hostname:
# bb 127.0.0.1 "hobbitdboard host=manager test=conn fields=hostname,testname,color"
manager|conn|green
managereval|conn|green
managertest|conn|green
This should be fixed already in the 4.2.2 RC1 - it wraps the hostname
in "^...$" regex anchors so it should get data only from the exact
hostname. In other words, it now queries using

bb 127.0.0.1 'hobbitdboard host=^manager$ test=conn fields=hostname,testname,color'

which should return only a single host.

It would be nice if you could verify that 4.2.2-RC1 fixes this. If
you're reluctant to update all of your system to the RC, you can try
just compiling it and then copy the web/hobbitsvc.cgi binary to your
current ~hobbit/server/bin/ directory.


Regards,
Henrik
list Thomas Kähn · Wed, 3 Dec 2008 14:04:17 +0100 ·
Hi Henrik,
quoted from Henrik Størner

On Wed, Dec 03, 2008 at 09:19:03AM +0000, Henrik Størner wrote:
In <user-65e4810968df@xymon.invalid> Thomas =?iso-8859-1?Q?K=E4hn?= <user-02a72cb3f725@xymon.invalid> writes:
This problem seems to be simple problem when matching the hostname:
# bb 127.0.0.1 "hobbitdboard host=manager test=conn fields=hostname,testname,color"
manager|conn|green
managereval|conn|green
managertest|conn|green
This should be fixed already in the 4.2.2 RC1 - it wraps the hostname
in "^...$" regex anchors so it should get data only from the exact
hostname. In other words, it now queries using

bb 127.0.0.1 'hobbitdboard host=^manager$ test=conn fields=hostname,testname,color'

which should return only a single host.
yes, this returns only one line.

I've compiled the new version and the problem is gone.

Thanks for your quick help.

Best regards
Thomas
-- 
Thomas Kähn                        NetCologne
Network Engineering & Design       Gesellschaft für Telekommunikation mbH
                                   Im Süsterfeld 6
Telefon: 0241/701333-18            52072 Aachen
Fax: XXXX/XXXXXX
                             Handelsregister: HRB 25580, Amtsgericht Köln
               Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel