Xymon Mailing List Archive search

Problem with remotely issuing a bb hobbit "drop host test" command

9 messages in this thread

list Kevin Kelly · Fri, 1 May 2009 10:16:13 -0500 ·
I am trying to issue the following command from a client server

 
/bin/bb hobbitserver "drop hostname testname"

 
But on the hobbit server I am getting the following error:

2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname testname

 
Any help with this would be great!

 
-Kevin


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Greg L Hubbard · Fri, 1 May 2009 10:41:18 -0500 ·
Usually it is <wherever>/bb 127.0.0.1 "command"
 
GLH


	From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
	Sent: Friday, May 01, 2009 10:16 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Problem with remotely issuing a bb hobbit
"drop host test" command
quoted from Kevin Kelly
	
	
	I am trying to issue the following command from a client server

	 
	/bin/bb hobbitserver "drop hostname testname"

	 
	But on the hobbit server I am getting the following error:

	2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname
testname

	 
	Any help with this would be great!

	 
	-Kevin


	This email has been scanned by the MessageLabs Email Security
System.
	For more information please visit
http://www.messagelabs.com/email 
	
list Forum Response · Fri, 1 May 2009 10:54:36 -0500 ·
quoted from Greg L Hubbard
I am trying to issue the following command from a client server

/bin/bb hobbitserver "drop hostname testname"

But on the hobbit server I am getting the following error:
2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname testname

Any help with this would be great!

It sounds like you're looking for the '--admin-senders' option for hobbit as defined in your hobbitlaunch.cfg file. The default restricts admin commands to localhost only.  If you want to send admin commands from a remote host to the hobbit server, you'll need to append the remote ip to --admin-senders

man hobbitd and look for --admin-senders for details.
list Kevin Kelly · Fri, 1 May 2009 11:20:37 -0500 ·
Tried that!

That comes back with the following error:

2009-05-01 11:19:45 connect to bbd failed - Connection refused

2009-05-01 11:19:45 Whoops ! bb failed to send message - Connection
failed
quoted from Greg L Hubbard

 
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] 
Sent: Friday, May 01, 2009 10:41 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Problem with remotely issuing a bb hobbit "drop
host test" command

 
Usually it is <wherever>/bb 127.0.0.1 "command"

 
GLH

	 
	From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
	Sent: Friday, May 01, 2009 10:16 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Problem with remotely issuing a bb hobbit
"drop host test" command

	I am trying to issue the following command from a client server

	 
	/bin/bb hobbitserver "drop hostname testname"

	 
	But on the hobbit server I am getting the following error:

	2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname
testname

	 
	Any help with this would be great!

	 
	-Kevin

	
	This email has been scanned by the MessageLabs Email Security
System.
	For more information please visit
http://www.messagelabs.com/email 
	

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Josh Luthman · Fri, 1 May 2009 12:28:21 -0400 ·
bbd isn't running - start it!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle
quoted from Kevin Kelly


On Fri, May 1, 2009 at 12:20 PM, Kevin Kelly <user-46671a9fcf56@xymon.invalid> wrote:
 Tried that!

That comes back with the following error:

2009-05-01 11:19:45 connect to bbd failed - Connection refused

2009-05-01 11:19:45 Whoops ! bb failed to send message - Connection failed


*From:* Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid]
*Sent:* Friday, May 01, 2009 10:41 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* RE: [hobbit] Problem with remotely issuing a bb hobbit "drop
host test" command


Usually it is <wherever>/bb 127.0.0.1 "command"


GLH


*From:* Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid]
*Sent:* Friday, May 01, 2009 10:16 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* [hobbit] Problem with remotely issuing a bb hobbit "drop host
test" command

I am trying to issue the following command from a client server


/bin/bb hobbitserver “drop hostname testname”


But on the hobbit server I am getting the following error:

2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname testname


Any help with this would be great!


-Kevin


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
list Kevin Kelly · Fri, 1 May 2009 11:51:28 -0500 ·
Bbd is running on the server! I am trying to run this command from the
client.
quoted from Josh Luthman

 
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
Sent: Friday, May 01, 2009 11:28 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Problem with remotely issuing a bb hobbit "drop
host test" command

 
bbd isn't running - start it!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Fri, May 1, 2009 at 12:20 PM, Kevin Kelly <user-46671a9fcf56@xymon.invalid>
wrote:

Tried that!

That comes back with the following error:

2009-05-01 11:19:45 connect to bbd failed - Connection refused

2009-05-01 11:19:45 Whoops ! bb failed to send message - Connection
failed

 
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] 
Sent: Friday, May 01, 2009 10:41 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Problem with remotely issuing a bb hobbit "drop
host test" command

 
Usually it is <wherever>/bb 127.0.0.1 "command"

 
GLH

	 
	From: Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid] 
	Sent: Friday, May 01, 2009 10:16 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Problem with remotely issuing a bb hobbit
"drop host test" command

	I am trying to issue the following command from a client server

	 
	/bin/bb hobbitserver "drop hostname testname"

	 
	But on the hobbit server I am getting the following error:

	2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname
testname

	 
	Any help with this would be great!

	 
	-Kevin

	
	This email has been scanned by the MessageLabs Email Security
System.
	For more information please visit
http://www.messagelabs.com/email 
	

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Tom Georgoulias · Fri, 01 May 2009 13:23:17 -0400 ·
quoted from Kevin Kelly
Kevin Kelly wrote:
Bbd is running on the server! I am trying to run this command from the 
client.
You need to run this command on the xymon server, not on a client.

Tom
list Alexander Bech · Fri, 01 May 2009 19:28:35 +0200 ·
quoted from Kevin Kelly
Kevin Kelly schrieb:
Bbd is running on the server! I am trying to run this command from the
client.
man 8 hobbitd:
       --admin-senders=IP[/MASK][,IP/MASK]
              Controls  which  hosts may send administrative commands to
hobbitd. These commands
              are the "drop" and "rename" commands. Access to these
should be restricted,  since
              they  provide  an  un-authenticated  means of completely
disabling monitoring of a
              host, and can be used to remove all traces of e.g.  a
system compromise  from  the
              Xymon monitor.

Is this the problem / solution ?
quoted from Kevin Kelly
 
*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Friday, May 01, 2009 11:28 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Problem with remotely issuing a bb hobbit
"drop host test" command

 
bbd isn't running - start it!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle

On Fri, May 1, 2009 at 12:20 PM, Kevin Kelly <user-46671a9fcf56@xymon.invalid
<mailto:user-46671a9fcf56@xymon.invalid>> wrote:

Tried that!

That comes back with the following error:

2009-05-01 11:19:45 connect to bbd failed - Connection refused

2009-05-01 11:19:45 Whoops ! bb failed to send message - Connection failed

 
*From:* Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid
<mailto:user-d970b5e56ec9@xymon.invalid>]
*Sent:* Friday, May 01, 2009 10:41 AM

*To:* user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Kevin Kelly
*Subject:* RE: [hobbit] Problem with remotely issuing a bb hobbit
"drop host test" command

 
Usually it is <wherever>/bb 127.0.0.1 "command"

 
GLH

     
    *From:* Kevin Kelly [mailto:user-46671a9fcf56@xymon.invalid
    <mailto:user-46671a9fcf56@xymon.invalid>]
    *Sent:* Friday, May 01, 2009 10:16 AM

    *To:* user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Kevin Kelly
    *Subject:* [hobbit] Problem with remotely issuing a bb hobbit
    "drop host test" command

    I am trying to issue the following command from a client server

     
    /bin/bb hobbitserver “drop hostname testname”

     
    But on the hobbit server I am getting the following error:

    2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname
    testname

     
    Any help with this would be great!

     
    -Kevin


    This email has been scanned by the MessageLabs Email Security System.
    For more information please visit http://www.messagelabs.com/email


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
list Kevin Kelly · Mon, 4 May 2009 07:05:04 -0500 ·
The --admin-senders is what I was looking for! Thanks to those that
responded!

-----Original Message-----
From: Denver Osborn [mailto:user-379e8d8cd715@xymon.invalid] On Behalf Of Forum
Response
Sent: Friday, May 01, 2009 10:55 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Problem with remotely issuing a bb hobbit "drop
quoted from Alexander Bech
host test" command
I am trying to issue the following command from a client server

/bin/bb hobbitserver "drop hostname testname"

But on the hobbit server I am getting the following error:
2009-05-01 09:25:00 Refused message from a.b.c.d: drop hostname
testname

Any help with this would be great!

It sounds like you're looking for the '--admin-senders' option for
hobbit as defined in your hobbitlaunch.cfg file. The default restricts
admin commands to localhost only.  If you want to send admin commands
from a remote host to the hobbit server, you'll need to append the
remote ip to --admin-senders

man hobbitd and look for --admin-senders for details.


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email