Xymon Mailing List Archive search

4.2-RC-20060712 - hobbitdboard bug?

7 messages in this thread

list Marco Avvisano · Wed, 19 Jul 2006 13:29:24 +0200 ·
Hi all,

i have two hosts in my cfg file,  nal-asl-1 and nal-asl-11. Using the 
command :

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"

to check the status for these hosts, when the script check

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"

return not only the status for the host nal-asl-1 but also for the host 
nal-asl-11.

It's a bug or i do something wrong?

regards,

Marco
list Werner Gmail Lists · Wed, 19 Jul 2006 09:24:48 -0300 ·
Marco,

	I use it as pcre regex, so your call should work if you use for
example:

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  
	IT will list all hosts where names're ending with "nal-asl-1"
string. If you want restrict absolutelly you could use "^nal-asl-1$".

	Give it a try, hope it works.

	-Werner
quoted from Marco Avvisano


----------------------- Original Message -----------------------
From:    "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid>
To:      <user-ae9b8668bcde@xymon.invalid>
Date:    Wed, 19 Jul 2006 13:29:24 +0200
Subject: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----
Hi all,

i have two hosts in my cfg file,  nal-asl-1 and nal-asl-11. Using the command :

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"

to check the status for these hosts, when the script check

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"

return not only the status for the host nal-asl-1 but also for the host nal-asl-11.

It's a bug or i do something wrong?

regards,

Marco

list Marco Avvisano · Wed, 19 Jul 2006 14:37:08 +0200 ·
thanks Werner, it works

M.
quoted from Werner Gmail Lists
I use it as pcre regex, so your call should work if you use for
example:

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  
IT will list all hosts where names're ending with "nal-asl-1"
string. If you want restrict absolutelly you could use "^nal-asl-1$".

Give it a try, hope it works.

-Werner


----------------------- Original Message -----------------------
From:    "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid>
To:      <user-ae9b8668bcde@xymon.invalid>
Date:    Wed, 19 Jul 2006 13:29:24 +0200
Subject: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----
Hi all,

i have two hosts in my cfg file,  nal-asl-1 and nal-asl-11. Using the command :

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"

to check the status for these hosts, when the script check

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"

return not only the status for the host nal-asl-1 but also for the host nal-asl-11.

It's a bug or i do something wrong?

regards,

Marco

list Marco Avvisano · Wed, 19 Jul 2006 15:33:40 +0200 ·
Hi,

uhhhh...it work from command line but not in the script if i use this command:

$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget$ fields=color"`;

no values are in this variable ...i don't know why ..

any ideas?
thanks
quoted from Marco Avvisano


Marco

I use it as pcre regex, so your call should work if you use for
example:

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  IT will list all hosts where names're ending with "nal-asl-1"
string. If you want restrict absolutelly you could use "^nal-asl-1$".

Give it a try, hope it works.

-Werner


----------------------- Original Message -----------------------
From:    "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid>
To:      <user-ae9b8668bcde@xymon.invalid>
Date:    Wed, 19 Jul 2006 13:29:24 +0200
Subject: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----
Hi all,

i have two hosts in my cfg file,  nal-asl-1 and nal-asl-11. Using the command :

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"

to check the status for these hosts, when the script check

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"

return not only the status for the host nal-asl-1 but also for the host nal-asl-11.

It's a bug or i do something wrong?

regards,

Marco

list Larry Barber · Wed, 19 Jul 2006 08:52:52 -0500 ·
I've had problems with this in the past when using the localhost address,
try using the "real" ip address.

Thanks,
Larry Barber
quoted from Marco Avvisano

On 7/19/06, Marco Avvisano <user-e09c0f3f8c70@xymon.invalid> wrote:
Hi,

uhhhh...it work from command line but not in the script if i use this
command:

$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget$
fields=color"`;

no values are in this variable ...i don't know why ..

any ideas?
thanks


Marco

I use it as pcre regex, so your call should work if you use for
example:

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  IT will list
all
hosts where names're ending with "nal-asl-1"
string. If you want restrict absolutelly you could use "^nal-asl-1$".

Give it a try, hope it works.

-Werner


----------------------- Original Message -----------------------
From:    "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid>
To:      <user-ae9b8668bcde@xymon.invalid>
Date:    Wed, 19 Jul 2006 13:29:24 +0200
Subject: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----
Hi all,

i have two hosts in my cfg file,  nal-asl-1 and nal-asl-11. Using the
command :

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"

to check the status for these hosts, when the script check

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"

return not only the status for the host nal-asl-1 but also for the
host
nal-asl-11.

It's a bug or i do something wrong?

regards,

Marco

list Stephane Caminade · Wed, 19 Jul 2006 15:54:41 +0200 ·
quoted from Larry BarberLarry Barber wrote:
I've had problems with this in the past when using the localhost address, try using the "real" ip address.

Thanks,
Larry Barber

On 7/19/06, Marco Avvisano <user-e09c0f3f8c70@xymon.invalid> wrote:
Hi,

uhhhh...it work from command line but not in the script if i use this
command:

$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget$
fields=color"`;

no values are in this variable ...i don't know why ..

any ideas?
thanks

Marco

>> I use it as pcre regex, so your call should work if you use for
>> example:
>>
>> $BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$" IT will list all
>> hosts where names're ending with "nal-asl-1"
>> string. If you want restrict absolutelly you could use "^nal-asl-1$".
>>
>> Give it a try, hope it works.
>>
>> -Werner
>>
>>
>> ----------------------- Original Message -----------------------
>> From: "Marco Avvisano" < user-e09c0f3f8c70@xymon.invalid>
>> To: <user-ae9b8668bcde@xymon.invalid>
>> Date: Wed, 19 Jul 2006 13:29:24 +0200
>> Subject: [hobbit] 4.2-RC-20060712 - hobbitdboard bug?
>> ----
>>
>>> Hi all,
>>>
>>> i have two hosts in my cfg file, nal-asl-1 and nal-asl-11. Using the
>>> command :
>>>
>>> $BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget"
>>>
>>> to check the status for these hosts, when the script check
>>>
>>> $BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1"
>>>
>>> return not only the status for the host nal-asl-1 but also for the host
>>> nal-asl-11.
>>>
>>> It's a bug or i do something wrong?
>>>
>>> regards,
>>>
>>> Marco
>>>
>>>
>>
>>
>>
>
>
>






-- 

_____________________________________________________________________________

Stephane Caminade

Administrateur Systèmes et Réseaux

                                   \  

Institut d'Astrophysique Spatiale  /  tel : (XX) (X) XX XX XX XX

Batiment 121, Universite Paris XI  \  fax : (XX) (X) XX XX XX XX

F-91405 ORSAY Cedex                /  www : http://www.ias.u-psud.fr/



_____________________________________________________________________________



list Werner Gmail Lists · Wed, 19 Jul 2006 12:44:39 -0300 ·
What kind of script?? 
If your talking of shell script you have to escape the "$" (string end)
token (and i personally like to put shell vars inside {}), something
like:

$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=${chtarget}\$ fields=color"`;

-wm
quoted from Marco Avvisano

----------------------- Original Message -----------------------
From:    "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid>
To:      <user-ae9b8668bcde@xymon.invalid>
Date:    Wed, 19 Jul 2006 15:33:40 +0200
Subject: Re: [hobbit]   4.2-RC-20060712 - hobbitdboard bug?
----
Hi,

uhhhh...it work from command line but not in the script if i use this 
command:

$host_color = `$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=$chtarget$ 
fields=color"`;

no values are in this variable ...i don't know why ..

any ideas?
thanks


Marco

I use it as pcre regex, so your call should work if you use for
example:

$BBHOME/bin/bb 127.0.0.1 "hobbitdboard host=nal-asl-1$"  IT will list all 
hosts where names're ending with "nal-asl-1"
string. If you want restrict absolutelly you could use "^nal-asl-1$".

Give it a try, hope it works.

-Werner