How do you send an ACK with Delay through the email in Hobbit?
Should I need to use BB commands? Does it generate any ACK Code that I can associate with BB command to delay?
Thanks for the help
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
On Fri, Feb 11, 2005 at 02:00:04PM -0500, Asif Iqbal wrote:
How do you send an ACK with Delay through the email in Hobbit?
Should I need to use BB commands? Does it generate any ACK Code that I can associate with BB command to delay?
Alerts do include an ACK code, also in Hobbit. I haven't tried it, but since the BB ack protocol is also supported in Hobbit, the BB ack-by-mail script should work fine in Hobbit.
If that fails, then it is pretty simple - you need some sort of e.g. procmail script that calls the "bb" tool like this:
bb ip.of.hobbit.server "hobbitdack ACKCODE MINUTES TEXT"
Regards, Henrik
On Fri, Feb 11, 2005 at 10:24:37PM, Henrik Stoerner wrote:
On Fri, Feb 11, 2005 at 02:00:04PM -0500, Asif Iqbal wrote:
How do you send an ACK with Delay through the email in Hobbit?
Should I need to use BB commands? Does it generate any ACK Code that I can associate with BB command to delay?
Alerts do include an ACK code, also in Hobbit. I haven't tried it, but since the BB ack protocol is also supported in Hobbit, the BB ack-by-mail script should work fine in Hobbit.
If that fails, then it is pretty simple - you need some sort of e.g. procmail script that calls the "bb" tool like this:
bb ip.of.hobbit.server "hobbitdack ACKCODE MINUTES TEXT"
Is there a way to retrieve an alert based on the ACKCODE? In Bigbrother 1.9c I was using the following script "findhostsvc.sh ACKCODE"--that I received from the bigbrother mailing list--to get the details. (I know it is not always reliable but it worked for me)
$ cat findhostsvc.sh
#!/bin/sh
BBHOME=/export/home/bbro/bb
ackcode=$1
cd $BBHOME/tmp
np_file=grep $ackcode np_* 2>/dev/null
set bogus echo $np_file
shift # get rid of bogus
$2 has host.service combination
hostsvc=$2 echo $hostsvc
Thanks for any suggestion on this.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
On Sat, Feb 12, 2005 at 08:23:26PM -0500, Asif Iqbal wrote:
Is there a way to retrieve an alert based on the ACKCODE?
[snip BB script that picks out hostname+service for an ack code]
I hope you don't mind my asking: Why ?
The only way you can get the ack-code is via an alert-message that already includes the host+service name.
So I'd like to know what you're using this for, because I have a suspicion that you're really trying to do something that ought to be done in another way.
Regards, Henrik
On Sun, Feb 13, 2005 at 08:30:23AM, Henrik Stoerner wrote:
On Sat, Feb 12, 2005 at 08:23:26PM -0500, Asif Iqbal wrote:
Is there a way to retrieve an alert based on the ACKCODE?
[snip BB script that picks out hostname+service for an ack code]
I hope you don't mind my asking: Why ?
This way I can keep the delay script simple. I do not have to parse the host.service info from the subject or body of the message. Plus with skytel it looses the subject. So I just look for the [12345] code in the email and just use that as a reference to pick up the host.service
Thanks
The only way you can get the ack-code is via an alert-message that already includes the host+service name.
So I'd like to know what you're using this for, because I have a suspicion that you're really trying to do something that ought to be done in another way.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
On Sun, Feb 13, 2005 at 11:09:21AM -0500, Asif Iqbal wrote:
On Sun, Feb 13, 2005 at 08:30:23AM, Henrik Stoerner wrote:
On Sat, Feb 12, 2005 at 08:23:26PM -0500, Asif Iqbal wrote:
Is there a way to retrieve an alert based on the ACKCODE?
[snip BB script that picks out hostname+service for an ack code]
I hope you don't mind my asking: Why ?
This way I can keep the delay script simple. I do not have to parse the host.service info from the subject or body of the message. Plus with skytel it looses the subject. So I just look for the [12345] code in the email and just use that as a reference to pick up the host.service
Well, I still don't understand what you're using it for - what does your "delay" script do ?
But there is a way of doing what you want. Send a "hobbitdboard" request to the server, and look for the output to contain the ack-code in field 11 (separated by '|' chars). Like the following awk-script does (substitute "12345" with the ack-code you want):
~hobbit/server/bin/bb 127.0.0.1 "hobbitdboard" |
awk -F '|' '$11 == "12345" {print $1 " " $2 }'
Regards, Henrik
On Fri, Feb 11, 2005 at 10:24:37PM, Henrik Stoerner wrote:
On Fri, Feb 11, 2005 at 02:00:04PM -0500, Asif Iqbal wrote:
How do you send an ACK with Delay through the email in Hobbit?
Should I need to use BB commands? Does it generate any ACK Code that I can associate with BB command to delay?
Alerts do include an ACK code, also in Hobbit. I haven't tried it, but since the BB ack protocol is also supported in Hobbit, the BB ack-by-mail script should work fine in Hobbit.
If that fails, then it is pretty simple - you need some sort of e.g. procmail script that calls the "bb" tool like this:
bb ip.of.hobbit.server "hobbitdack ACKCODE MINUTES TEXT"
Is the ACKCODE same for all recipients? I know in bigbrother it was different for different reciepent so you can either delay it for all OR delay it for specific reciepient
Thanks
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
On Sun, Feb 13, 2005 at 09:07:33PM, Asif Iqbal wrote:
On Fri, Feb 11, 2005 at 10:24:37PM, Henrik Stoerner wrote:
On Fri, Feb 11, 2005 at 02:00:04PM -0500, Asif Iqbal wrote:
How do you send an ACK with Delay through the email in Hobbit?
Should I need to use BB commands? Does it generate any ACK Code that I can associate with BB command to delay?
Alerts do include an ACK code, also in Hobbit. I haven't tried it, but since the BB ack protocol is also supported in Hobbit, the BB ack-by-mail script should work fine in Hobbit.
If that fails, then it is pretty simple - you need some sort of e.g. procmail script that calls the "bb" tool like this:
bb ip.of.hobbit.server "hobbitdack ACKCODE MINUTES TEXT"
Is the ACKCODE same for all recipients? I know in bigbrother it was
Looks like they are. I guess may be adding separate cookie code for separate reciepient in next release ?! :P
Thanks
different for different reciepent so you can either delay it for all OR delay it for specific reciepient
Thanks
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "...it said: Install Windows XP or better...so I installed Solaris..."
On Sun, Feb 13, 2005 at 09:07:33PM -0500, Asif Iqbal wrote:
Is the ACKCODE same for all recipients? I know in bigbrother it was different for different reciepent so you can either delay it for all OR delay it for specific reciepient
They are the same for all recipients.
Henrik
participants (2)
-
henrik@hswn.dk
-
iqbala-hobbit@qwestip.net