Xymon Mailing List Archive search

enable/disable

19 messages in this thread

list Rick Waegner · Fri, 4 Mar 2005 09:48:55 -0600 ·
Had this problem for a while now and noticed a section on it in the "tips
and tricks" under the help menu. It states that adding the SetEnv PATH
/bin:/usr/bin:/usr/local/bin for my webserver...that hasn't helped.
Possible that i am adding it in the wrong manner? Has anyone else bumped
into this problem and resolved it?  If so, please let me know what you did
to remove this problem.

Thanks,

Rick
list Lars Ebeling · Fri, 4 Mar 2005 17:03:19 +0100 (CET) ·
What's the problem? If it's the same as I have (unsecure path) I also tried the SetEnv but hav same problem, donät know really where.
 
But I do a workaround and change the fist line in maint.pl  "-wT" to "-wt" and then main.pl works
 
Regards
Lars

Rick Waegner <user-e63f4e3fcb43@xymon.invalid> wrote:

Från: Rick Waegner[SMTP:user-e63f4e3fcb43@xymon.invalid]
Skickat: den 4 mars 2005 16:48:55
Till: user-ae9b8668bcde@xymon.invalid
Ämne: [hobbit] enable/disable
Automatiskt vidarebefordrat av en regel
quoted from Rick Waegner
Had this problem for a while now and noticed a section on it in the "tips
and tricks" under the help menu. It states that adding the SetEnv PATH
/bin:/usr/bin:/usr/local/bin for my webserver...that hasn't helped.
Possible that i am adding it in the wrong manner? Has anyone else bumped
into this problem and resolved it? If so, please let me know what you did
to remove this problem.

Thanks,

Rick
list Rick Waegner · Fri, 4 Mar 2005 10:34:14 -0600 ·
THANK YOU! It works like a charm now. Greatly appreciated!

Rick


                    lars ebeling                                                                                                              
                    <dhd733 at yahoo        To:     user-ae9b8668bcde@xymon.invalid                                                                               
                    .se>                 cc:                                                                                                  
                                         Subject:     Re: [hobbit] enable/disable                                                             
                    03/04/2005                                                                                                                
                    10:03 AM                                                                                                                  
                    Please                                                                                                                    
                    respond to                                                                                                                
                    hobbit                                                                                                                    
quoted from Lars Ebeling
                                                                                                                                              
                                                                                                                                              
What's the problem? If it's the same as I have (unsecure path) I also tried
the SetEnv but hav same problem, donät know really where.

But I do a workaround and change the fist line in maint.pl  "-wT" to "-wt"
and then main.pl works

Regards
Lars

Rick Waegner <user-e63f4e3fcb43@xymon.invalid> wrote:

Från: Rick Waegner[SMTP:user-e63f4e3fcb43@xymon.invalid]
Skickat: den 4 mars 2005 16:48:55
Till: user-ae9b8668bcde@xymon.invalid
Ämne: [hobbit] enable/disable
Automatiskt vidarebefordrat av en regel
 Had this problem for a while now and noticed a section on it in the "tips
 and tricks" under the help menu. It states that adding the SetEnv PATH
 /bin:/usr/bin:/usr/local/bin for my webserver...that hasn't helped.
 Possible that i am adding it in the wrong manner? Has anyone else bumped
 into this problem and resolved it? If so, please let me know what you did
 to remove this problem.

 Thanks,

 Rick
list Antonio Marques · Fri, 22 Jul 2005 10:39:19 -0300 ·
HI .. again..

Enable/Disable page is not working... I can disable/enable tests and
machines only using command line...

Can anyone help me ?

Thanks!
list Larry Barber · Fri, 22 Jul 2005 09:54:05 -0400 (EDT) ·
First thing you need to do is check your web server error logs, this
kind thing is usually caused by a problem in your web server setup or
file systems permissions.

Thanks,
Larry Barber
quoted from Antonio Marques

On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote:
HI .. again..

Enable/Disable page is not working... I can disable/enable tests and machines only using command line...

Can anyone help me ?

Thanks!

list Antonio Marques · Fri, 22 Jul 2005 16:58:51 -0300 ·
I have checked Apache error log and I didn found any problem.
The permission is set 755 and I can't  found any problem in hobbit logs

Which user is user by hobbit/apache to perform this action (enable/disable)  ?

Thanks

2005/7/22, user-7a6c75d6cc10@xymon.invalid <user-7a6c75d6cc10@xymon.invalid>:
quoted from Larry Barber
First thing you need to do is check your web server error logs, this
kind thing is usually caused by a problem in your web server setup or
file systems permissions.

Thanks,
Larry Barber

On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote:
HI .. again..

Enable/Disable page is not working... I can disable/enable tests and
machines only using command line...

Can anyone help me ?

Thanks!

list Larry Barber · Fri, 22 Jul 2005 16:06:16 -0400 (EDT) ·
Whichever user Apache is running as, usually apache or nobody.
quoted from Antonio Marques

Thanks,
Larry Barber

On Fri, 2005-07-22 at 14:58 -0500, user-3a0747675512@xymon.invalid wrote:
I have checked Apache error log and I didn found any problem. The permission is set 755 and I can't  found any problem in hobbit
logs

Which user is user by hobbit/apache to perform this action
(enable/disable)  ?

Thanks

2005/7/22, user-7a6c75d6cc10@xymon.invalid <user-7a6c75d6cc10@xymon.invalid>: > First thing you need to do is check your web server error logs,
this > kind thing is usually caused by a problem in your web server setup
or > file systems permissions. >  > Thanks, > Larry Barber >  > On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote: > > HI .. again.. > > > > Enable/Disable page is not working... I can disable/enable tests
and > > machines only using command line... > > > > Can anyone help me ? > > > > Thanks! > > > >  > > > > > > >  >  >  >  >  >  >

list Thomas Pedersen · Fri, 22 Jul 2005 22:09:31 +0200 ·
What happens if your enter the full URL to the enable-disable.sh cgi file ? does the page load ? what does your log show if you try to disable a host ? is any hobbit log giving any message about this ? is your server ip included in the --admin-senders ?

quoted from Antonio MarquesAntonio Marques wrote:
I have checked Apache error log and I didn found any problem.

The permission is set 755 and I can't  found any problem in hobbit logs



Which user is user by hobbit/apache to perform this action (enable/disable)  ?



Thanks



2005/7/22, user-7a6c75d6cc10@xymon.invalid :

  
First thing you need to do is check your web server error logs, this

kind thing is usually caused by a problem in your web server setup or

file systems permissions.



Thanks,

Larry Barber



On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote:

    
HI .. again..



Enable/Disable page is not working... I can disable/enable tests and

machines only using command line...



Can anyone help me ?



Thanks!











      
list Antonio Marques · Tue, 26 Jul 2005 11:38:44 -0300 ·
Hi...
quoted from Thomas Pedersen

What happens if your enter the full URL to the enable-disable.sh cgi file ?
 does the page load ?

Yes, it load.

what does your log show if you try to disable a host ? Nothing.. Machine and tests still there..

is any hobbit log giving any message about this ? No.

is your server ip included in the --admin-senders ?

what -admin-senders is ?

;-)

Thanks!


2005/7/22, Thomas <user-97316fb2dd2a@xymon.invalid>:
quoted from Thomas Pedersen
 What happens if your enter the full URL to the enable-disable.sh cgi file ?
does the page load ? what does your log show if you try to disable a host ?
is any hobbit log giving any message about this ? is your server ip included
in the --admin-senders ?

  Antonio Marques wrote:  I have checked Apache error log and I didn found any problem.
The permission is set 755 and I can't found any problem in hobbit logs

Which user is user by hobbit/apache to perform this action (enable/disable)
?

Thanks

2005/7/22, user-7a6c75d6cc10@xymon.invalid <user-7a6c75d6cc10@xymon.invalid>:
   First thing you need to do is check your web server error logs, this
kind thing is usually caused by a problem in your web server setup or
file systems permissions.

Thanks,
Larry Barber

On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote:
   HI .. again..

Enable/Disable page is not working... I can disable/enable tests and
machines only using command line...

Can anyone help me ?

Thanks!

list Antonio Marques · Tue, 26 Jul 2005 12:11:39 -0300 ·
[hobbitd]
        HEARTBEAT
        ENVFILE /myPath/server/etc/hobbitserver.cfg
        CMD hobbitd --pidfile=$BBSERVERLOGS/hobbitd.pid
--restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk
--checkpoint-interval=600 --log=$BBSERVERLOGS/hobbitd.log
--admin-senders=127.0.0.1,$BBSERVERIP
--maint-senders=127.0.0.1,$BBSERVERIP

[bbenadis]
#       DISABLED
        ENVFILE /apps/infra/Hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=enadis
--log=$BBSERVERLOGS/enadis.log hobbitd_filestore --enadis

I can disable by line command and all hosts an tests disable I can see
at webpage http://myhobbit/hobbit-seccgi/hobbit-enadis.sh and I can
ENABLE all of them, but not Disable!

seeya

Antonio Marques


2005/7/26, Antonio Marques <user-3a0747675512@xymon.invalid>:
quoted from Antonio Marques
Hi...

What happens if your enter the full URL to the enable-disable.sh cgi file ?
 does the page load ?

Yes, it load.

what does your log show if you try to disable a host ?
Nothing.. Machine and tests still there..

is any hobbit log giving any message about this ?
No.

is your server ip included in the --admin-senders ?

what -admin-senders is ?

;-)
quoted from Antonio Marques

Thanks!


2005/7/22, Thomas <user-97316fb2dd2a@xymon.invalid>:
 What happens if your enter the full URL to the enable-disable.sh cgi file ?
does the page load ? what does your log show if you try to disable a host ?
is any hobbit log giving any message about this ? is your server ip included
in the --admin-senders ?


 Antonio Marques wrote:
 I have checked Apache error log and I didn found any problem.
The permission is set 755 and I can't found any problem in hobbit logs

Which user is user by hobbit/apache to perform this action (enable/disable)
?

Thanks

2005/7/22, user-7a6c75d6cc10@xymon.invalid <user-7a6c75d6cc10@xymon.invalid>:


 First thing you need to do is check your web server error logs, this
kind thing is usually caused by a problem in your web server setup or
file systems permissions.

Thanks,
Larry Barber

On Fri, 2005-07-22 at 08:39 -0500, user-3a0747675512@xymon.invalid wrote:


 HI .. again..

Enable/Disable page is not working... I can disable/enable tests and
machines only using command line...

Can anyone help me ?

Thanks!

list Torsten Richter · Sun, 18 Jun 2006 18:33:41 +0200 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

at the moment we use BB as our primary server and we use Hobbit too but
only as a display server for our customer.

So if we disable a service or machine on BB the customer still sees the
red,yellow or purple dots.

Is there a way to send the data to the Hobbit server too?
Maybe we can use:

http://hobbitusr:hobbitpwd at hobbitserver/hobbit-seccgi/hobbit-enadis.sh?server=XXX&service=YYY

in our enable/disable script we're using for BB to send the data to Hobbit?

Regards
Torsten
- --
Download my public key from:
http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFElYBl7DlmxomQk6wRAmZaAJ9a2uyrMy0T6xGcpUwA8u/eC/wOfACgob5r
IfnrwDJomodxTBE8p0D5XWs=
=m3s3
-----END PGP SIGNATURE-----
list Henrik Størner · Sun, 18 Jun 2006 22:42:28 +0200 ·
quoted from Torsten Richter
On Sun, Jun 18, 2006 at 06:33:41PM +0200, Torsten Richter wrote:
at the moment we use BB as our primary server and we use Hobbit too but
only as a display server for our customer.

So if we disable a service or machine on BB the customer still sees the
red,yellow or purple dots.
Just make sure you send the "disable" message to both the BB and the
Hobbit server. How you do that depends on the tool you use for disable
and enable, but if they use the normal "bb" tool to send a message to
the server, then setting BBDISP=0.0.0.0 and BBDISPLAYS="10.0.0.1
10.0.0.2" should do it (adjust your ip's as necessary).


Henrik
list Torsten Richter · Mon, 19 Jun 2006 21:56:23 +0200 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Henrik,

it is not that easy.
What we have is a DMZ for our customers servers with Hobbit as the main
monitoring system.
All of these servers also send their BB data (since they are running the
BB client) also to our internal monitoring server which is a BB where
our internal systems are monitored too.

So our admins use the bb-servmaint.sh from deadcat.net to enable/disable
servers and services on our internal monitor but often forget about the
Hobbit. But I think it would make no difference if we used maint.pl.

So what I want achieve is that if someone disables or enables a service
or server on our internal monitor with the web interface and this server
is one of our customers server then a message should be send to Hobbit
too.

And I was thinking about doing this via the URL I wrote in my original
mail and passing some parameters along with it.

So basically we have a BB server for ALL servers and a Hobbit as a
satellite system for our customer.

Regards
Torsten
quoted from Henrik Størner

Henrik Stoerner wrote:
On Sun, Jun 18, 2006 at 06:33:41PM +0200, Torsten Richter wrote:
at the moment we use BB as our primary server and we use Hobbit too but
only as a display server for our customer.

So if we disable a service or machine on BB the customer still sees the
red,yellow or purple dots.
Just make sure you send the "disable" message to both the BB and the
Hobbit server. How you do that depends on the tool you use for disable
and enable, but if they use the normal "bb" tool to send a message to
the server, then setting BBDISP=0.0.0.0 and BBDISPLAYS="10.0.0.1
10.0.0.2" should do it (adjust your ip's as necessary).


Henrik

- --
+---------------------------------------------------------+

| Richter IT-Consulting					  |
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
quoted from Torsten Richter
+---------------------------------------------------------+
Download my public key from:
http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFElwFn7DlmxomQk6wRAj+DAKCTnZEwuNRuJZ9SU4oUiu4exKflnwCfbF5O
LEHBtqF0f1VTodVK3G1Rkrg=
=mRei
-----END PGP SIGNATURE-----
list Torsten Richter · Fri, 30 Jun 2006 20:20:05 +0200 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Henrik,

I got this stuff working. But it raises another question.
If I want to enable/disable a whole host on Hobbit from the command line
 what do I have to do?
Is there something like $BBHOME/bin/bb $BBDISP "disable $HOST.all 5d
Maintenance" or do I have to do this for each test separately, like

for TEST in $($BBHOME/bin/bb $BBDISP "hobbitdboard host=$HOST"|awk -F\|
'{print $2}') do $BBHOME/bin/bb $BBDISP "disable $HOST $TEST 5d
Maintenance";done ??
quoted from Torsten Richter

Regards
Torsten

Henrik Stoerner wrote:
On Sun, Jun 18, 2006 at 06:33:41PM +0200, Torsten Richter wrote:
at the moment we use BB as our primary server and we use Hobbit too but
only as a display server for our customer.

So if we disable a service or machine on BB the customer still sees the
red,yellow or purple dots.
Just make sure you send the "disable" message to both the BB and the
Hobbit server. How you do that depends on the tool you use for disable
and enable, but if they use the normal "bb" tool to send a message to
the server, then setting BBDISP=0.0.0.0 and BBDISPLAYS="10.0.0.1
10.0.0.2" should do it (adjust your ip's as necessary).


Henrik

- --
+---------------------------------------------------------+
| Richter IT-Consulting					  |
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEpWtV7DlmxomQk6wRAvRnAJ9uTA5pyA7gUG6lyYurGcokDSZAAACfXa6v
e2HyL5ee8ty5dwpFJzy6je4=
=P33B
-----END PGP SIGNATURE-----
list Henrik Størner · Thu, 6 Jul 2006 13:13:58 +0200 ·
quoted from Torsten Richter
On Fri, Jun 30, 2006 at 08:20:05PM +0200, Torsten Richter wrote:
I got this stuff working. But it raises another question.
If I want to enable/disable a whole host on Hobbit from the command line
 what do I have to do?
Is there something like $BBHOME/bin/bb $BBDISP "disable $HOST.all 5d
Maintenance"
Yes: $BB $BBDISP "disable $HOST.* 5d Maintenance".

There is a description of the Hobbit protocol in the bb(1) man-page,
although this particular feature is not mentioned. I've updated the
docs to include it.


Regards,
Henrik
list Ye-fee Liang · Mon, 18 Jun 2007 13:42:47 -0400 (EDT) ·
Hi,

      Just to clarify, when I use "Enable/disable" from the Administration menu,
would the Hobbit server completely ignore status reports from the client
(assuming I select "All")?

    I observe that although all status turn "blue", some of them return to green
after a while.  The client host is still up, and hobbit client is still running, but
I want Hobbit to ignore this machine for a period of time.

Thank you,
  Ye-Fee

       
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
list Rich Smrcina · Mon, 18 Jun 2007 13:02:14 -0500 ·
Hobbit won't 'ignore' them, Hobbit will just not send out notifications for those hosts and/or services.  If they come back after a while, perhaps the person that disabled them checked the 'Until OK' box, instead of specifying a timeframe that the machine will be disabled for.
quoted from Ye-fee Liang

ye-fee liang wrote:
Hi,
    Just to clarify, when I use "Enable/disable" from the Administration menu,
would the Hobbit server completely ignore status reports from the client
(assuming I select "All")?

    I observe that although all status turn "blue", some of them return to green
after a while.  The client host is still up, and hobbit client is still running, but
I want Hobbit to ignore this machine for a period of time.

Thank you,
Ye-Fee

Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the *All-new Yahoo! Mail * <http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca>; 
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008
list Ye-fee Liang · Mon, 18 Jun 2007 17:54:13 -0400 (EDT) ·
Oh, I misunderstood "Until Ok", as "Until I re-enable the checks",
not as "Until the client reports check(s) successfully."

So, I should disable with a Duartion of "9999 Weeks"  8-)

Thanks,
Ye-Fee

 			
Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with Voice
list Rich Smrcina · Tue, 19 Jun 2007 07:14:15 -0500 ·
If you want the host disabled indefinitely, sure.  But then, what's the 
point of monitoring it?  :)
quoted from Ye-fee Liang

ye-fee liang wrote:
Oh, I misunderstood "Until Ok", as "Until I re-enable the checks",
not as "Until the client reports check(s) successfully."

So, I should disable with a Duartion of "9999 Weeks"  8-)

Thanks,
Ye-Fee

Make free worldwide PC-to-PC calls. Try the new *Yahoo! Canada Messenger 

with Voice* <http://ca.messenger.yahoo.com/>;
quoted from Rich Smrcina
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008