Xymon Mailing List Archive search

maint mode from command line

15 messages in this thread

list Kevin Hanrahan · Fri, 23 Oct 2009 16:16:36 -0400 ·
Hi,
Is there a way to issue a command to put a list of servers into maint mode instead of having to select them from the GUI?
I would like to maybe automate this with a cron job

Thank

kh


----------------------------------------- Note: The information
contained in this e-mail and in any attachments is intended only
for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. The recipient
should check this e-mail and any attachments for the presence of
viruses. Sender accepts no liability for any damages caused by any
virus transmitted by this e-mail. If you have received this e-mail
in error, please notify us immediately by replying to the message
and delete the e-mail from your computer.  Elavon (formerly NOVA
Information Systems)
list Cathy Smith · Fri, 23 Oct 2009 14:30:08 -0700 ·
Hi
 
I've had a system owner ask me to re-prioritize an alert so the hobbit
ignores the message in the log on a specific server.  The default alert
marks the message as Red.  The server  runs Windows 2003.  Can someone
tell how to go about doing that or where to read about doing that?  Is
this done on the client or server?
 
Thanks for the help.  
 
 
Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX
list Ralph Mitchell · Fri, 23 Oct 2009 17:59:55 -0400 ·
On Fri, Oct 23, 2009 at 4:16 PM, Hanrahan, Kevin
quoted from Kevin Hanrahan
<user-645bd845ecbd@xymon.invalid>wrote:
 Hi,

Is there a way to issue a command to put a list of servers into maint mode
instead of having to select them from the GUI?

I would like to maybe automate this with a cron job
Take a look at the bb man page:

 http://www.xymon.com/hobbit/help/manpages/man1/bb.1.html

You'll find the syntax for both disable and enable status messages near the
top.

Ralph Mitchell
list Rich Smrcina · Fri, 23 Oct 2009 17:10:44 -0500 ·
Reprioritize is probably the wrong terminology.  If there is a rule in hobbit-clients.cfg for that server and the owner wants it removed, then just remove them.  The default behaviour is to not monitor log entries.  The column should eventually turn white.  If it turns purple, you may need to remove the historical log entries.  If it's a specific rule that needs to be removed, then delete it from hobbit-clients.cfg for that host.

See the man page of hobbit-clients.cfg for details.
quoted from Cathy Smith

Smith, Cathy wrote:
Hi
 I've had a system owner ask me to re-prioritize an alert so the hobbit ignores the message in the log on a specific server.  The default alert marks the message as Red.  The server  runs Windows 2003.  Can someone tell how to go about doing that or where to read about doing that?  Is this done on the client or server?
 Thanks for the help.   Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX 

-- 

Rich Smrcina
list Cathy Smith · Fri, 23 Oct 2009 15:21:27 -0700 ·
There isn't a rule, and I need to create one.  This message from the
event log gets flagged as Red in the msgs column. I realize that hobbit
does age it out, but the owner doesn't want that specific message
reported.
signature


Cathy 


--- 
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory 
user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX  


-----Original Message-----

quoted from Rich Smrcina
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid] 
Sent: Friday, October 23, 2009 3:11 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Reprioritize an alert

Reprioritize is probably the wrong terminology.  If there is a rule in
hobbit-clients.cfg for that server and the owner wants it removed, then
just remove them.  The default behaviour is to not monitor log entries.

The column should eventually turn white.  If it turns purple, you may
need to remove the historical log entries.  If it's a specific rule that
needs to be removed, then delete it from hobbit-clients.cfg for that
host.

See the man page of hobbit-clients.cfg for details.

Smith, Cathy wrote:
Hi
 
I've had a system owner ask me to re-prioritize an alert so the hobbit
ignores the message in the log on a specific server.  The default 
alert marks the message as Red.  The server  runs Windows 2003.  Can 
someone tell how to go about doing that or where to read about doing 
that?  Is this done on the client or server?
 
Thanks for the help. 
 
 
Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX
-- 
Rich Smrcina
list Rich Smrcina · Fri, 23 Oct 2009 17:29:44 -0500 ·
Sorry, yeah this is Windows... which Windows client are you using?
quoted from Cathy Smith

Smith, Cathy wrote:
There isn't a rule, and I need to create one.  This message from the
event log gets flagged as Red in the msgs column. I realize that hobbit
does age it out, but the owner doesn't want that specific message
reported.


Cathy 


--- 
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory 
user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX  
  
-- 
Rich Smrcina
list Cathy Smith · Fri, 23 Oct 2009 15:48:26 -0700 ·
It is Big Brother SNM Client 1.08d.  The server runs Windows Server 2003
R2.
signature


Cathy


--- Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX  

-----Original Message-----

quoted from Rich Smrcina
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid] Sent: Friday, October 23, 2009 3:30 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Reprioritize an alert

Sorry, yeah this is Windows... which Windows client are you using?

Smith, Cathy wrote:
There isn't a rule, and I need to create one.  This message from the event log gets flagged as Red in the msgs column. I realize that hobbit does age it out, but the owner doesn't want that specific message reported.


Cathy


---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX
  
--
Rich Smrcina
list Rich Smrcina · Fri, 23 Oct 2009 18:04:07 -0500 ·
You may need to check the readme for specifics, but in the client there is a way to 'ignore' specific message text from log monitoring.   I don't recall for sure, but it may be a ! directive in front of the message text.
quoted from Cathy Smith


Smith, Cathy wrote:
It is Big Brother SNM Client 1.08d.  The server runs Windows Server 2003
R2.


Cathy


--- Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX    
-- 
Rich Smrcina
list Cathy Smith · Fri, 23 Oct 2009 16:10:03 -0700 ·
Thanks very much.  I'll give it a try.
signature


Cathy 

--- Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX  

-----Original Message-----

quoted from Rich Smrcina
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid] Sent: Friday, October 23, 2009 4:04 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Reprioritize an alert

You may need to check the readme for specifics, but in the client there is a way to 'ignore' specific message text from log monitoring.   I don't recall for sure, but it may be a ! directive in front of the
message text.


Smith, Cathy wrote:
It is Big Brother SNM Client 1.08d.  The server runs Windows Server
2003
R2.


Cathy


--- Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory user-332e187d7d6d@xymon.invalid XXX.XXX.XXXX    
-- 
Rich Smrcina
list T.J. Yang · Sat, 24 Oct 2009 06:39:04 -0500 ·
You can also see an example script at http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/HOWTO#How_do_I_clone_maintenance_records_from_one_xymon_to_the_other_one_.3F

T.J. Yang
quoted from Ralph Mitchell


Date: Fri, 23 Oct 2009 17:59:55 -0400
From: user-00a5e44c48c0@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] maint mode from command line

On Fri, Oct 23, 2009 at 4:16 PM, Hanrahan, Kevin <user-645bd845ecbd@xymon.invalid> wrote:


Hi,

Is there a way to issue a command to put a list of servers
into maint mode instead of having to select them from the GUI?

I would like to maybe automate this with a cron job
Take a look at the bb man page:
 http://www.xymon.com/hobbit/help/manpages/man1/bb.1.html

You'll find the syntax for both disable and enable status messages near the top.
Ralph Mitchell
 		 	   		  

Windows 7: Simplify your PC. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen1:102009
list Cathy Smith · Thu, 11 Feb 2010 10:38:41 -0800 ·
Can someone recommend directions for setting up an SMS server and integrating it with hobbit?  I'm a novice about this, so something that is written well would be appreciative.  There seems to be a lot on Google when I did a simple search.


Thanks.


Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory

Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid
list Galen Johnson · Thu, 11 Feb 2010 14:29:46 -0500 ·
There is an article in this month's Linux Journal for setting up Nagios/SMS that might be adaptable to Xymon.  I'm still working my way to it (just came in yesterday) so I don't know how specific it gets, yet.

=G=
quoted from Cathy Smith

From: Smith, Cathy [mailto:user-332e187d7d6d@xymon.invalid]
Sent: Thursday, February 11, 2010 1:39 PM
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] Setting up SMS server and hobbit

Can someone recommend directions for setting up an SMS server and integrating it with hobbit?  I'm a novice about this, so something that is written well would be appreciative.  There seems to be a lot on Google when I did a simple search.


Thanks.


Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid
list Cathy Smith · Thu, 11 Feb 2010 11:35:21 -0800 ·
Galan

That article is what prompted the request that I look at setting up hobbit with SMS.  I haven't had a chance to read it this morning.
signature


Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory

Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid


quoted from Galen Johnson
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Thursday, February 11, 2010 11:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Setting up SMS server and hobbit

There is an article in this month's Linux Journal for setting up Nagios/SMS that might be adaptable to Xymon.  I'm still working my way to it (just came in yesterday) so I don't know how specific it gets, yet.

=G=

From: Smith, Cathy [mailto:user-332e187d7d6d@xymon.invalid]
Sent: Thursday, February 11, 2010 1:39 PM
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] Setting up SMS server and hobbit

Can someone recommend directions for setting up an SMS server and integrating it with hobbit?  I'm a novice about this, so something that is written well would be appreciative.  There seems to be a lot on Google when I did a simple search.


Thanks.


Cathy

---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Phone:  XXX.XXX.XXXX
Fax:        XXX.XXX.XXXX
Email:     user-332e187d7d6d@xymon.invalid
list Stef Coene · Thu, 11 Feb 2010 20:55:20 +0100 ·
quoted from Cathy Smith
On Thursday 11 February 2010, Smith, Cathy wrote:
Can someone recommend directions for setting up an SMS server and
 integrating it with hobbit?  I'm a novice about this, so something that is
 written well would be appreciative.  There seems to be a lot on Google
 when I did a simple search.
We use gnokii and serial attached siemens m20 sms box.  I have 2 of them and they are rock solid.
gnokii uses a mysql database. so a simple insert in the outbox table is enough to send a sms.


Stef

PS: our monitor setup is much more complicated.  We use 2 SMS gateways and 2 dialers (asterisk software connected to a VoIP box) in 2 different countries.  Each customer has a monitor server that can connect to the dialers if there is an alert.  The dialer calls the system engineer and sends a sms.
list Buchan Milne · Fri, 12 Feb 2010 15:15:08 +0100 ·
Please consider quoting properly.
quoted from Cathy Smith

On Thursday, 11 February 2010 20:35:21 Smith, Cathy wrote:
Galan

That article is what prompted the request that I look at setting up hobbit
 with SMS.  I haven't had a chance to read it this morning.
The xymon part should be trivial, assuming your SMS software (which is surely 
covered in the article in question) can accept email, or can be driven by a 
command-line tool. Please see the hobbit-alerts.cfg man page, and search for 
"SMS".

If you get stuck, ask some specific technical questions.
quoted from Galen Johnson

[...]
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Thursday, February 11, 2010 11:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Setting up SMS server and hobbit

There is an article in this month's Linux Journal for setting up Nagios/SMS
 that might be adaptable to Xymon.  I'm still working my way to it (just
 came in yesterday) so I don't know how specific it gets, yet.

=G=

From: Smith, Cathy [mailto:user-332e187d7d6d@xymon.invalid]
Sent: Thursday, February 11, 2010 1:39 PM
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] Setting up SMS server and hobbit

Can someone recommend directions for setting up an SMS server and
 integrating it with hobbit?  I'm a novice about this, so something that is
 written well would be appreciative.  There seems to be a lot on Google
 when I did a simple search.
And none of them were of any assistance?

Regards,
Buchan