Xymon Mailing List Archive search

remote/commandline Acknowledge Alerts

6 messages in this thread

list Martin Flemming · Fri, 23 Jan 2009 15:08:25 +0100 (CET) ·
Hi !

I've got some colleagues who don't want
to use the Webinterface to disable/enable Alerts or
send Acknowledge Alerts for 30 or 50 machines at once .....

so, is there any chance to do that,
  remote ( with wget or curl .. maybe ..)
or per commandline on the hobbitserver ?

thanks & cheers,


        Martin
list Henrik Størner · Wed, 28 Jan 2009 11:15:05 +0000 (UTC) ·
quoted from Martin Flemming
In <user-d2d0d8f40a62@xymon.invalid> user-f286aaa49a76@xymon.invalid writes:
I've got some colleagues who don't want
to use the Webinterface to disable/enable Alerts or
send Acknowledge Alerts for 30 or 50 machines at once .....
Do you have "--no-pin" on the CGI_ACK_OPTS setting in hobbitcgi.cfg ?
That would let them ack multiple alerts from one webpage.
quoted from Martin Flemming
so, is there any chance to do that,
 remote ( with wget or curl .. maybe ..)
or per commandline on the hobbitserver ?
You can send an ack with the "bb" tool

  bb IP.OF.HOBBIT.SERVER "hobbitdack 123 60 PSU replacement henrik"

would send an ack for the event with ID 123, valid for 
60 minuter. The text for the ack is the remainder of the command.
But you need to know the ID for each event (it's included in
the alert e-mail).

There's also the hobbit-mailack utility, which lets them send
ack's via e-mail.


Henrik
list Martin Flemming · Thu, 5 Feb 2009 08:44:32 +0100 (CET) ·
Thanks, Henrik !

indeed, that works (of course :-) ) , and have never tested before 
(sorry), and i talked with my mailmaster about the ack's via e-mail,
and will tested it the next days ...

By the way, is there also the possibility to disable/enable Alarms
from remote site like the hobbit-enadis.cgi it does ?


thanks & cheers,

 	martin
quoted from Henrik Størner

On Wed, 28 Jan 2009, Henrik Størner wrote:
In <user-d2d0d8f40a62@xymon.invalid> user-f286aaa49a76@xymon.invalid writes:
I've got some colleagues who don't want
to use the Webinterface to disable/enable Alerts or
send Acknowledge Alerts for 30 or 50 machines at once .....
Do you have "--no-pin" on the CGI_ACK_OPTS setting in hobbitcgi.cfg ?
That would let them ack multiple alerts from one webpage.
so, is there any chance to do that,
 remote ( with wget or curl .. maybe ..)
or per commandline on the hobbitserver ?
You can send an ack with the "bb" tool

 bb IP.OF.HOBBIT.SERVER "hobbitdack 123 60 PSU replacement henrik"

would send an ack for the event with ID 123, valid for
60 minuter. The text for the ack is the remainder of the command.
But you need to know the ID for each event (it's included in
the alert e-mail).

There's also the hobbit-mailack utility, which lets them send
ack's via e-mail.


Henrik

list Gavin Leonard · Wed, 11 Mar 2009 15:36:00 -0600 ·
Are these tools already installed with the hobbit installation?

-Gavin
quoted from Martin Flemming

-----Original Message-----
From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Wednesday, January 28, 2009 4:15 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] remote/commandline Acknowledge Alerts

In <user-d2d0d8f40a62@xymon.invalid> user-f286aaa49a76@xymon.invalid writes:
I've got some colleagues who don't want
to use the Webinterface to disable/enable Alerts or
send Acknowledge Alerts for 30 or 50 machines at once .....
Do you have "--no-pin" on the CGI_ACK_OPTS setting in hobbitcgi.cfg ?
That would let them ack multiple alerts from one webpage.
so, is there any chance to do that,
 remote ( with wget or curl .. maybe ..)
or per commandline on the hobbitserver ?
You can send an ack with the "bb" tool

  bb IP.OF.HOBBIT.SERVER "hobbitdack 123 60 PSU replacement henrik"

would send an ack for the event with ID 123, valid for 
60 minuter. The text for the ack is the remainder of the command.
But you need to know the ID for each event (it's included in
the alert e-mail).

There's also the hobbit-mailack utility, which lets them send
ack's via e-mail.


Henrik
list Gavin Leonard · Tue, 17 Mar 2009 16:55:25 -0600 ·
I would like to do this via my mobile phone.. I have a touch pro wm 6.1.. would I just send a txt message to the server formatted as Henrik suggested? More info on this would be very helpful as I am on the road often and would love to be able to acknowledge an alert from my phone..

-Gavin
quoted from Gavin Leonard

-----Original Message-----
From: Gavin Leonard [mailto:user-d65663809eb4@xymon.invalid] 
Sent: Wednesday, March 11, 2009 3:36 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] remote/commandline Acknowledge Alerts

Are these tools already installed with the hobbit installation?

-Gavin

-----Original Message-----
From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Wednesday, January 28, 2009 4:15 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] remote/commandline Acknowledge Alerts

In <user-d2d0d8f40a62@xymon.invalid> user-f286aaa49a76@xymon.invalid writes:
I've got some colleagues who don't want
to use the Webinterface to disable/enable Alerts or
send Acknowledge Alerts for 30 or 50 machines at once .....
Do you have "--no-pin" on the CGI_ACK_OPTS setting in hobbitcgi.cfg ?
That would let them ack multiple alerts from one webpage.
so, is there any chance to do that,
 remote ( with wget or curl .. maybe ..)
or per commandline on the hobbitserver ?
You can send an ack with the "bb" tool

  bb IP.OF.HOBBIT.SERVER "hobbitdack 123 60 PSU replacement henrik"

would send an ack for the event with ID 123, valid for 
60 minuter. The text for the ack is the remainder of the command.
But you need to know the ID for each event (it's included in
the alert e-mail).

There's also the hobbit-mailack utility, which lets them send
ack's via e-mail.


Henrik
list Phil Wild · Thu, 19 Mar 2009 00:44:54 +0900 ·
2009/3/18 Gavin Leonard <user-d65663809eb4@xymon.invalid>
quoted from Gavin Leonard
I would like to do this via my mobile phone.. I have a touch pro wm 6.1..
would I just send a txt message to the server formatted as Henrik suggested?
More info on this would be very helpful as I am on the road often and would
love to be able to acknowledge an alert from my phone..

You must send an email message to the server to use the inbuilt tools. If by
text, you mean an sms, you would need a customised script that is executed
upon receiving an sms. The script would either use the bb command to ack the
alert (hobbitdack...) or would need to munge the sms into a format that
could then be passed to the mail-ack script....

Cheers

Phil