Xymon Mailing List Archive search

Duplicate tests listed in Info column

11 messages in this thread

list Charles Jones · Thu, 10 Aug 2006 16:40:39 -0700 ·
When I go to the info column of certain hosts (it doesn't seem to be affecting them all), the "Disable tests" window has duplicate tests. Some hosts have as many as 9 ecah of conn, cpu, disk, etc.

I do not have any hosts listed twice in bb-hosts, so Im not sure what could be causing this.
list Charles Jones · Fri, 11 Aug 2006 11:47:14 -0700 ·
quoted from Charles Jones
Charles Jones wrote:
When I go to the info column of certain hosts (it doesn't seem to be affecting them all), the "Disable tests" window has duplicate tests. Some hosts have as many as 9 ecah of conn, cpu, disk, etc.

I do not have any hosts listed twice in bb-hosts, so Im not sure what could be causing this.
Just to make sure it wasn't a client issue I manually updated all of the clients, and the problem still persists, but only for certain hosts...strange.
list Henrik Størner · Mon, 14 Aug 2006 14:42:18 +0200 ·
quoted from Charles Jones
On Thu, Aug 10, 2006 at 04:40:39PM -0700, Charles Jones wrote:
When I go to the info column of certain hosts (it doesn't seem to be 
affecting them all), the "Disable tests" window has duplicate tests. 
Some hosts have as many as 9 ecah of conn, cpu, disk, etc.
Could you try running this command for one of those hosts:
  bb 127.0.0.1 "hobbitdboard fields=testname,color,disabletime,dismsg,client host=HOSTNAME"


Regards,
Henrik
list Charles Jones · Mon, 14 Aug 2006 09:32:16 -0700 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Thu, Aug 10, 2006 at 04:40:39PM -0700, Charles Jones wrote:
  
When I go to the info column of certain hosts (it doesn't seem to be 
affecting them all), the "Disable tests" window has duplicate tests. 
Some hosts have as many as 9 ecah of conn, cpu, disk, etc.
    
Could you try running this command for one of those hosts:
  bb 127.0.0.1 "hobbitdboard fields=testname,color,disabletime,dismsg,client host=HOSTNAME"
  
Sorry for the spam, but you asked for it :-)

$ ./bb 127.0.0.1 "hobbitdboard 
fields=testname,color,disabletime,dismsg,client host=myhost"
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y
trends|green|0||Y
info|green|0||Y
memory|green|0||Y
files|clear|0||Y
msgs|green|0||Y
ports|clear|0||Y
procs|green|0||Y
disk|green|0||Y
cpu|green|0||Y
ssh|green|0||Y
conn|green|0||Y

I hope this helps you figure out what's wrong!
-Charles
list Henrik Størner · Mon, 14 Aug 2006 22:28:40 +0200 ·
quoted from Charles Jones
On Mon, Aug 14, 2006 at 09:32:16AM -0700, Charles Jones wrote:
Henrik Stoerner wrote:
On Thu, Aug 10, 2006 at 04:40:39PM -0700, Charles Jones wrote:
 
When I go to the info column of certain hosts (it doesn't seem to be 
affecting them all), the "Disable tests" window has duplicate tests. 
Some hosts have as many as 9 ecah of conn, cpu, disk, etc.
   
Could you try running this command for one of those hosts:
 bb 127.0.0.1 "hobbitdboard 
 fields=testname,color,disabletime,dismsg,client host=HOSTNAME"
 
Sorry for the spam, but you asked for it :-)

$ ./bb 127.0.0.1 "hobbitdboard 
fields=testname,color,disabletime,dismsg,client host=myhost"
[snip]
I hope this helps you figure out what's wrong!
OK, two more things I'd like you to try: The commands

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=HOSTNAME"

and

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=^HOSTNAME\$"


I suspect this is happening because you have several hosts whose
hostnames are similar, and e.g. "server1" also happens to match
"server10" and "server11" - simply because I changed the name matching
to use regular expressions instead of a simple string-compare.


Regards,
Henrik
list Francesco Duranti · Mon, 14 Aug 2006 22:37:22 +0200 ·
I'm getting the same problem on some hosts...
This is the output of the 2 commands....
[bb at ITROMLX10 etc]$ bb 127.0.0.1 "hobbitdboard
fields=hostname,testname,color,client host=itromlx10"
itromlx10|trends|green|Y
itromlx10|info|green|Y
itromlx10|bbgen-bea|green|Y
itromlx10|hobbitd|green|Y
itromlx10|bbtest|yellow|Y
itromlx10|content|green|Y
itromlx10|http|green|Y
itromlx10|vnc1|green|Y
itromlx10|telnet|green|Y
itromlx10|ssh|green|Y
itromlx10|bbd|green|Y
itromlx10|conn|green|Y
itromlx10|dm|green|Y
itromlx10|memory|green|Y
itromlx10|files|clear|Y
itromlx10|msgs|green|Y
itromlx10|ports|clear|Y
itromlx10|procs|clear|Y
itromlx10|disk|green|Y
itromlx10|cpu|green|Y
itromlx10|bbgen-siebelserv|green|Y
itromlx10|bbgen-sap|green|Y
itromlx10|bbgen-kpes|green|Y
itromlx10|bbgen-db|green|Y
itromlx10|bbgen-win|green|Y
itromlx10|bbgen-network|green|Y
itromlx10|bbgen-inet|green|Y
itromlx10|bbgen|green|Y
itromlx101|trends|green|Y
itromlx101|info|green|Y
itromlx101|ports|clear|Y
itromlx101|vmio|green|Y
itromlx101|raid|green|Y
itromlx101|memory|green|Y
itromlx101|files|green|Y
itromlx101|msgs|green|Y
itromlx101|procs|clear|Y
itromlx101|disk|green|Y
itromlx101|cpu|green|Y
itromlx101|cpu2|green|Y
itromlx101|drbd|green|Y
itromlx101|vnc1|green|Y
itromlx101|telnet|green|Y
itromlx101|ssh|green|Y
itromlx101|ntp|green|Y
itromlx101|conn|green|Y
itromlx101|ntpd|green|Y
itromlx102|trends|green|Y
itromlx102|info|green|Y
itromlx102|ports|clear|Y
itromlx102|raid|green|Y
itromlx102|memory|green|Y
itromlx102|files|yellow|Y
itromlx102|msgs|green|Y
itromlx102|procs|clear|Y
itromlx102|disk|green|Y
itromlx102|cpu|green|Y
itromlx102|cpu2|green|Y
itromlx102|drbd|green|Y
itromlx102|vnc1|green|Y
itromlx102|telnet|green|Y
itromlx102|ssh|green|Y
itromlx102|ntp|green|Y
itromlx102|conn|green|Y
itromlx102|ntpd|green|Y
itromlx102|vmio|green|Y 


[bb at ITROMLX10 etc]$ bb 127.0.0.1 "hobbitdboard
fields=hostname,testname,color,client host=^itromlx10$"
itromlx10|trends|green|Y
itromlx10|info|green|Y
itromlx10|bbgen-bea|green|Y
itromlx10|hobbitd|green|Y
itromlx10|bbtest|yellow|Y
itromlx10|content|green|Y
itromlx10|http|green|Y
itromlx10|vnc1|green|Y
itromlx10|telnet|green|Y
itromlx10|ssh|green|Y
itromlx10|bbd|green|Y
itromlx10|conn|green|Y
itromlx10|dm|green|Y
itromlx10|memory|green|Y
itromlx10|files|clear|Y
itromlx10|msgs|green|Y
itromlx10|ports|clear|Y
itromlx10|procs|clear|Y
itromlx10|disk|green|Y
itromlx10|cpu|green|Y
itromlx10|bbgen-siebelserv|green|Y
itromlx10|bbgen-sap|green|Y
itromlx10|bbgen-kpes|green|Y
itromlx10|bbgen-db|green|Y
itromlx10|bbgen-win|green|Y
itromlx10|bbgen-network|green|Y
itromlx10|bbgen-inet|green|Y
itromlx10|bbgen|green|Y
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, August 14, 2006 10:29 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Duplicate tests listed in Info column

On Mon, Aug 14, 2006 at 09:32:16AM -0700, Charles Jones wrote:
Henrik Stoerner wrote:
On Thu, Aug 10, 2006 at 04:40:39PM -0700, Charles Jones wrote:
When I go to the info column of certain hosts (it doesn't seem to be > >>affecting them all), the "Disable tests" window has duplicate tests.
Some hosts have as many as 9 ecah of conn, cpu, disk, etc.
Could you try running this command for one of those hosts:
 bb 127.0.0.1 "hobbitdboard
 fields=testname,color,disabletime,dismsg,client host=HOSTNAME"
Sorry for the spam, but you asked for it :-)
$ ./bb 127.0.0.1 "hobbitdboard
fields=testname,color,disabletime,dismsg,client host=myhost"
[snip]
I hope this helps you figure out what's wrong!
OK, two more things I'd like you to try: The commands

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=HOSTNAME"

and

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=^HOSTNAME\$"


I suspect this is happening because you have several hosts whose hostnames are similar, and e.g. "server1" also happens to match "server10" and "server11" - simply because I changed the name matching to use regular expressions instead of a simple string-compare.


Regards,
Henrik

list Henrik Størner · Mon, 14 Aug 2006 22:41:52 +0200 ·
quoted from Francesco Duranti
On Mon, Aug 14, 2006 at 10:37:22PM +0200, Francesco Duranti wrote:
I'm getting the same problem on some hosts...
This is the output of the 2 commands....
[bb at ITROMLX10 etc]$ bb 127.0.0.1 "hobbitdboard
fields=hostname,testname,color,client host=itromlx10"
itromlx10|trends|green|Y

itromlx101|trends|green|Y
itromlx102|trends|green|Y
OK, that is what I expected - you're seeing multiple entries because
"itromlx10" also matches "itromlx101" and "itromlx102".

This patch should take care of it, then.


Regards,
Henrik

-------------- next part --------------
--- web/hobbitsvc-info.c	2006/06/27 12:41:11	1.108
+++ web/hobbitsvc-info.c	2006/08/14 20:29:32
@@ -73,7 +73,7 @@
 	int testsz;
 	int haveuname = 0;
 
-	sprintf(hobbitcmd, "hobbitdboard fields=testname,color,disabletime,dismsg,client host=%s", hostname);
+	sprintf(hobbitcmd, "hobbitdboard fields=testname,color,disabletime,dismsg,client host=^%s$", hostname);
 	if (sendmessage(hobbitcmd, NULL, NULL, &statuslist, 1, BBTALK_TIMEOUT) != BB_OK) {
 		return 1;
 	}
list Charles Jones · Mon, 14 Aug 2006 13:51:24 -0700 ·
quoted from Francesco Duranti
Henrik Stoerner wrote:
On Mon, Aug 14, 2006 at 09:32:16AM -0700, Charles Jones wrote:
  
Henrik Stoerner wrote:
    
On Thu, Aug 10, 2006 at 04:40:39PM -0700, Charles Jones wrote:
 
      
When I go to the info column of certain hosts (it doesn't seem to be 
affecting them all), the "Disable tests" window has duplicate tests. 
Some hosts have as many as 9 ecah of conn, cpu, disk, etc.
   
        
Could you try running this command for one of those hosts:
 bb 127.0.0.1 "hobbitdboard 
 fields=testname,color,disabletime,dismsg,client host=HOSTNAME"
 
      
Sorry for the spam, but you asked for it :-)

$ ./bb 127.0.0.1 "hobbitdboard 
fields=testname,color,disabletime,dismsg,client host=myhost"
    
[snip]
  
I hope this helps you figure out what's wrong!
    
OK, two more things I'd like you to try: The commands

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=HOSTNAME"

and

  bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client host=^HOSTNAME\$"


I suspect this is happening because you have several hosts whose
hostnames are similar, and e.g. "server1" also happens to match
"server10" and "server11" - simply because I changed the name matching
to use regular expressions instead of a simple string-compare.
  
Here we go, with output cleansed of super-secret hostnames ;-) .  I 
believe it shows that what you suspect is the problem is indeed the case:

$ ./bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client 
host=myhost-app-1"
myhost-app-1|trends|green|Y
myhost-app-1|info|green|Y
myhost-app-1|memory|green|Y
myhost-app-1|files|clear|Y
myhost-app-1|msgs|green|Y
myhost-app-1|ports|clear|Y
myhost-app-1|procs|green|Y
myhost-app-1|disk|green|Y
myhost-app-1|cpu|green|Y
myhost-app-1|ssh|green|Y
myhost-app-1|conn|green|Y
myhost-app-10|trends|green|Y
myhost-app-10|info|green|Y
myhost-app-10|memory|green|Y
myhost-app-10|files|clear|Y
myhost-app-10|msgs|green|Y
myhost-app-10|ports|clear|Y
myhost-app-10|procs|green|Y
myhost-app-10|disk|green|Y
myhost-app-10|cpu|green|Y
myhost-app-10|ssh|green|Y
myhost-app-10|conn|green|Y
myhost-app-11|trends|green|Y
myhost-app-11|info|green|Y
myhost-app-11|memory|green|Y
myhost-app-11|files|clear|Y
myhost-app-11|msgs|green|Y
myhost-app-11|ports|clear|Y
myhost-app-11|procs|green|Y
myhost-app-11|disk|green|Y
myhost-app-11|cpu|green|Y
myhost-app-11|ssh|green|Y
myhost-app-11|conn|green|Y
myhost-app-12|trends|green|Y
myhost-app-12|info|green|Y
myhost-app-12|memory|green|Y
myhost-app-12|files|clear|Y
myhost-app-12|msgs|green|Y
myhost-app-12|ports|clear|Y
myhost-app-12|procs|green|Y
myhost-app-12|disk|green|Y
myhost-app-12|cpu|green|Y
myhost-app-12|ssh|green|Y
myhost-app-12|conn|green|Y
myhost-app-13|trends|green|Y
myhost-app-13|info|green|Y
myhost-app-13|memory|green|Y
myhost-app-13|files|clear|Y
myhost-app-13|msgs|green|Y
myhost-app-13|ports|clear|Y
myhost-app-13|procs|green|Y
myhost-app-13|disk|green|Y
myhost-app-13|cpu|green|Y
myhost-app-13|ssh|green|Y
myhost-app-13|conn|green|Y
myhost-app-14|trends|green|Y
myhost-app-14|info|green|Y
myhost-app-14|memory|green|Y
myhost-app-14|files|clear|Y
myhost-app-14|msgs|green|Y
myhost-app-14|ports|clear|Y
myhost-app-14|procs|green|Y
myhost-app-14|disk|green|Y
myhost-app-14|cpu|green|Y
myhost-app-14|ssh|green|Y
myhost-app-14|conn|green|Y
myhost-app-15|trends|green|Y
myhost-app-15|info|green|Y
myhost-app-15|memory|green|Y
myhost-app-15|files|clear|Y
myhost-app-15|msgs|green|Y
myhost-app-15|ports|clear|Y
myhost-app-15|procs|green|Y
myhost-app-15|disk|green|Y
myhost-app-15|cpu|green|Y
myhost-app-15|ssh|green|Y
myhost-app-15|conn|green|Y
myhost-app-16|trends|green|Y
myhost-app-16|info|green|Y
myhost-app-16|memory|green|Y
myhost-app-16|files|clear|Y
myhost-app-16|msgs|green|Y
myhost-app-16|ports|clear|Y
myhost-app-16|procs|green|Y
myhost-app-16|disk|green|Y
myhost-app-16|cpu|green|Y
myhost-app-16|ssh|green|Y
myhost-app-16|conn|green|Y
myhost-app-17|trends|green|Y
myhost-app-17|info|green|Y
myhost-app-17|memory|green|Y
myhost-app-17|files|clear|Y
myhost-app-17|msgs|green|Y
myhost-app-17|ports|clear|Y
myhost-app-17|procs|green|Y
myhost-app-17|disk|green|Y
myhost-app-17|cpu|green|Y
myhost-app-17|ssh|green|Y
myhost-app-17|conn|green|Y
myhost-app-18|trends|green|Y
myhost-app-18|info|green|Y
myhost-app-18|memory|green|Y
myhost-app-18|files|clear|Y
myhost-app-18|msgs|green|Y
myhost-app-18|ports|clear|Y
myhost-app-18|procs|green|Y
myhost-app-18|disk|green|Y
myhost-app-18|cpu|green|Y
myhost-app-18|ssh|green|Y
myhost-app-18|conn|green|Y
myhost-app-19|trends|green|Y
myhost-app-19|info|green|Y
myhost-app-19|memory|green|Y
myhost-app-19|files|clear|Y
myhost-app-19|msgs|green|Y
myhost-app-19|ports|clear|Y
myhost-app-19|procs|green|Y
myhost-app-19|disk|green|Y
myhost-app-19|cpu|green|Y
myhost-app-19|ssh|green|Y
myhost-app-19|conn|green|Y

$ ./bb 127.0.0.1 "hobbitdboard fields=hostname,testname,color,client 
host=^myhost-app-1\$"
myhost-app-1|trends|green|Y
myhost-app-1|info|green|Y
myhost-app-1|memory|green|Y
myhost-app-1|files|clear|Y
myhost-app-1|msgs|green|Y
myhost-app-1|ports|clear|Y
myhost-app-1|procs|green|Y
myhost-app-1|disk|green|Y
myhost-app-1|cpu|green|Y
myhost-app-1|ssh|green|Y
myhost-app-1|conn|green|Y
list Henrik Størner · Mon, 14 Aug 2006 22:58:32 +0200 ·
quoted from Charles Jones
On Mon, Aug 14, 2006 at 01:51:24PM -0700, Charles Jones wrote:
Here we go, with output cleansed of super-secret hostnames ;-) .  I 
believe it shows that what you suspect is the problem is indeed the case:
It does, yes - Francesco beat you to it, so the patch is in the mail :-)


Thanks,
Henrik
list Charles Jones · Mon, 14 Aug 2006 14:12:04 -0700 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Mon, Aug 14, 2006 at 01:51:24PM -0700, Charles Jones wrote:

  
Here we go, with output cleansed of super-secret hostnames ;-) .  I believe it shows that what you suspect is the problem is indeed the case:
    
It does, yes - Francesco beat you to it, so the patch is in the mail :-)
  
Worked like a charm...thanks Henrik :-)

-Charles
list Francesco Duranti · Mon, 14 Aug 2006 23:19:03 +0200 ·
Works really good ...

Also the hobbitfetch patch is working well...

I'm having a little problem with the enable-disable page Called inside the info page i get a web page http://itromlx10/hobbit-seccgi/(null)

And the error
Not Found
The requested URL /hobbit-seccgi/(null) was not found on this server.


Apache/2.0.55 (Red Hat) Server at itromlx10 Port 80

If called from a page to disable multiple time i get and internal server
error
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, August 14, 2006 10:42 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Duplicate tests listed in Info column

On Mon, Aug 14, 2006 at 10:37:22PM +0200, Francesco Duranti wrote:
I'm getting the same problem on some hosts...
This is the output of the 2 commands....
[bb at ITROMLX10 etc]$ bb 127.0.0.1 "hobbitdboard > fields=hostname,testname,color,client host=itromlx10"
itromlx10|trends|green|Y
itromlx101|trends|green|Y
itromlx102|trends|green|Y
OK, that is what I expected - you're seeing multiple entries because "itromlx10" also matches "itromlx101" and "itromlx102".

This patch should take care of it, then.


Regards,
Henrik