On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Enjoy
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
Sweet thank you. I looked at the bb-mailack.sh but my shell scripting knowledge is still a work in progess.
On Sat, 19 Feb 2005 13:46:50 -0500, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Enjoy
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Sat, Feb 19, 2005 at 01:51:49PM, kevin grady wrote:
Sweet thank you. I looked at the bb-mailack.sh but my shell scripting knowledge is still a work in progess.
Two small things I forgot to mention
I added this at the beginning of the script
[ -f /export/home/hobbit/server/etc/hobbitserver.cfg ] || exit 99 . /export/home/hobbit/server/etc/hobbitserver.cfg
Also I removed all references to BBDISPLAY. BBPAGE is what all I needed anyway. If you want to use BBDISPLAY you need to define it to the right IP address, either inside your script OR hobbitserver.cfg file.
Thanks
On Sat, 19 Feb 2005 13:46:50 -0500, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Enjoy
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
On Sat, Feb 19, 2005 at 01:46:50PM -0500, Asif Iqbal wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Actually, it should work even without this change. The "ack ack_event" command is recognized by hobbitd. I didn't see any reason why I should break existing scripts, when it was so simple to just make it work.
Regards, Henrik
When I reply to an alert, I get a message stating that bb-mailack.sh can not find bbdef.sh. Is there an equivelent file for hobbit? This is a clean install of hobbit 4.0RC2 no bb.
Thanks
On Sat, 19 Feb 2005 22:36:06 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Sat, Feb 19, 2005 at 01:46:50PM -0500, Asif Iqbal wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Actually, it should work even without this change. The "ack ack_event" command is recognized by hobbitd. I didn't see any reason why I should break existing scripts, when it was so simple to just make it work.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Feb 22, 2005 at 02:10:14PM, kevin grady wrote:
When I reply to an alert, I get a message stating that bb-mailack.sh can not find bbdef.sh. Is there an equivelent file for hobbit? This is a clean install of hobbit 4.0RC2 no bb.
I would recommend to put this at the beginning of your script
[ -f /export/home/hobbit/server/etc/hobbitserver.cfg ] || exit 99 . /export/home/hobbit/server/etc/hobbitserver.cfg
And get rid of this
if [ -d "$BBHOME" ] then . $BBHOME/etc/bbdef.sh
And the corresponding "else" and "fi"
Thanks
On Sat, 19 Feb 2005 22:36:06 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Sat, Feb 19, 2005 at 01:46:50PM -0500, Asif Iqbal wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Actually, it should work even without this change. The "ack ack_event" command is recognized by hobbitd. I didn't see any reason why I should break existing scripts, when it was so simple to just make it work.
Regards, Henrik
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
Ok, no more error messages. Now when I reply to an alert, the message gets sent and processed (it's no longer in /var/spool/mail/hobbit) and that's. No indication that the alert has been acknowledged and the hobbit logs are empty (well not empty, but they don't have any messages corresponding to the issue). Any pointers greatly appreciated.
On Tue, 22 Feb 2005 14:16:37 -0500, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
On Tue, Feb 22, 2005 at 02:10:14PM, kevin grady wrote:
When I reply to an alert, I get a message stating that bb-mailack.sh can not find bbdef.sh. Is there an equivelent file for hobbit? This is a clean install of hobbit 4.0RC2 no bb.
I would recommend to put this at the beginning of your script
[ -f /export/home/hobbit/server/etc/hobbitserver.cfg ] || exit 99 . /export/home/hobbit/server/etc/hobbitserver.cfg
And get rid of this
if [ -d "$BBHOME" ] then . $BBHOME/etc/bbdef.sh
And the corresponding "else" and "fi"
Thanks
On Sat, 19 Feb 2005 22:36:06 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Sat, Feb 19, 2005 at 01:46:50PM -0500, Asif Iqbal wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Actually, it should work even without this change. The "ack ack_event" command is recognized by hobbitd. I didn't see any reason why I should break existing scripts, when it was so simple to just make it work.
Regards, Henrik
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Ok, I eliminated the shell script and attempted to ack the alert via command line. I entered the following:
./bb 10.3.2.229 "hobbitdack 378435 30 blah"
No errors. Nothing in the acklog. Any help is appreciated.
On Tue, 22 Feb 2005 16:17:46 -0500, kevin grady <kevin.grady at gmail.com> wrote:
Ok, no more error messages. Now when I reply to an alert, the message gets sent and processed (it's no longer in /var/spool/mail/hobbit) and that's. No indication that the alert has been acknowledged and the hobbit logs are empty (well not empty, but they don't have any messages corresponding to the issue). Any pointers greatly appreciated.
On Tue, 22 Feb 2005 14:16:37 -0500, Asif Iqbal <iqbala-hobbit at qwestip.net> wrote:
On Tue, Feb 22, 2005 at 02:10:14PM, kevin grady wrote:
When I reply to an alert, I get a message stating that bb-mailack.sh can not find bbdef.sh. Is there an equivelent file for hobbit? This is a clean install of hobbit 4.0RC2 no bb.
I would recommend to put this at the beginning of your script
[ -f /export/home/hobbit/server/etc/hobbitserver.cfg ] || exit 99 . /export/home/hobbit/server/etc/hobbitserver.cfg
And get rid of this
if [ -d "$BBHOME" ] then . $BBHOME/etc/bbdef.sh
And the corresponding "else" and "fi"
Thanks
On Sat, 19 Feb 2005 22:36:06 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Sat, Feb 19, 2005 at 01:46:50PM -0500, Asif Iqbal wrote:
On Sat, Feb 19, 2005 at 10:54:30AM, Kevin Grady wrote:
Does hobbit support acks through email? Thanks
I am using it. You should be able to use the same shell script that was in Bigbrother.
The only thing different is the following line in shell script
Bigbrother: $BB $BBPAGE "ack ack_event ${ACKCODE} ${DELAY} ${MESSAGE}"
Hobbit: $BB $BBPAGE "hobbitdack ${ACKCODE} ${DELAY} ${MESSAGE}"
Actually, it should work even without this change. The "ack ack_event" command is recognized by hobbitd. I didn't see any reason why I should break existing scripts, when it was so simple to just make it work.
Regards, Henrik
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Feb 22, 2005 at 04:47:33PM -0500, kevin grady wrote:
Ok, I eliminated the shell script and attempted to ack the alert via command line. I entered the following:
./bb 10.3.2.229 "hobbitdack 378435 30 blah"
No errors. Nothing in the acklog. Any help is appreciated.
There was another report about this a day or two ago. The "hobbitdack" command is broken in RC2, the "ack ack_event" does work (maint.pl uses it).
RC3 should be available in a few minutes time.
Henrik
Ok, using ack ack_event on the command line works. Acks through bb-mailack.sh still result in the message being consumed, but no sign of the acknowledgement in acklogs on or in the display
On Tue, 22 Feb 2005 23:24:52 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Tue, Feb 22, 2005 at 04:47:33PM -0500, kevin grady wrote:
Ok, I eliminated the shell script and attempted to ack the alert via command line. I entered the following:
./bb 10.3.2.229 "hobbitdack 378435 30 blah"
No errors. Nothing in the acklog. Any help is appreciated.
There was another report about this a day or two ago. The "hobbitdack" command is broken in RC2, the "ack ack_event" does work (maint.pl uses it).
RC3 should be available in a few minutes time.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
The bb-mailack.sh is using ack ack_event
On Tue, 22 Feb 2005 17:33:28 -0500, kevin grady <kevin.grady at gmail.com> wrote:
Ok, using ack ack_event on the command line works. Acks through bb-mailack.sh still result in the message being consumed, but no sign of the acknowledgement in acklogs on or in the display
On Tue, 22 Feb 2005 23:24:52 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Tue, Feb 22, 2005 at 04:47:33PM -0500, kevin grady wrote:
Ok, I eliminated the shell script and attempted to ack the alert via command line. I entered the following:
./bb 10.3.2.229 "hobbitdack 378435 30 blah"
No errors. Nothing in the acklog. Any help is appreciated.
There was another report about this a day or two ago. The "hobbitdack" command is broken in RC2, the "ack ack_event" does work (maint.pl uses it).
RC3 should be available in a few minutes time.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
So looking at the format of bb alert messages the subject line is:
!BB - 2827410! prodsqlclstr1.prod.smartbargains.com.sql-server - 999010100001240
Where in hobbit without bb the subject line format is:
BB [770509] vicious.smartbargains.com:ftp is RED
Is there a way to modify the subject line format in hobbit to match bb the bb format or does bb-mailack.sh need some mods for this to work?
Thanks
On Tue, 22 Feb 2005 17:33:50 -0500, kevin grady <kevin.grady at gmail.com> wrote:
The bb-mailack.sh is using ack ack_event
On Tue, 22 Feb 2005 17:33:28 -0500, kevin grady <kevin.grady at gmail.com> wrote:
Ok, using ack ack_event on the command line works. Acks through bb-mailack.sh still result in the message being consumed, but no sign of the acknowledgement in acklogs on or in the display
On Tue, 22 Feb 2005 23:24:52 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Tue, Feb 22, 2005 at 04:47:33PM -0500, kevin grady wrote:
Ok, I eliminated the shell script and attempted to ack the alert via command line. I entered the following:
./bb 10.3.2.229 "hobbitdack 378435 30 blah"
No errors. Nothing in the acklog. Any help is appreciated.
There was another report about this a day or two ago. The "hobbitdack" command is broken in RC2, the "ack ack_event" does work (maint.pl uses it).
RC3 should be available in a few minutes time.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Feb 22, 2005 at 05:43:22PM -0500, kevin grady wrote:
So looking at the format of bb alert messages the subject line is:
!BB - 2827410! prodsqlclstr1.prod.smartbargains.com.sql-server - 999010100001240
Where in hobbit without bb the subject line format is:
BB [770509] vicious.smartbargains.com:ftp is RED
Is there a way to modify the subject line format in hobbit to match bb the bb format or does bb-mailack.sh need some mods for this to work?
It shouldn't matter. bb-mailack does some processing to filter out the "fluff" in a mail message, and picks up all of the data it needs from the subject line - regardless of whether it is in BB or Hobbit format.
I'd start the troubleshooting by adding a line or two to echo the data bb-mailack sends to Hobbit. Just before the line $BB $BBPAGE "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" could you add this: echo "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" >>/tmp/mailack.log
Then do a couple of mail-ack's and check out what's in the log file. My first suspicion is that the ack-number is wrong, since that will mean that Hobbit silently discards the ack-message.
Henrik
Ok, after walking away for a while I apologize for wasting people's time. I was missing defs for SED, AWK, etc.
Works like a champ now
On Wed, 23 Feb 2005 00:02:57 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Tue, Feb 22, 2005 at 05:43:22PM -0500, kevin grady wrote:
So looking at the format of bb alert messages the subject line is:
!BB - 2827410! prodsqlclstr1.prod.smartbargains.com.sql-server - 999010100001240
Where in hobbit without bb the subject line format is:
BB [770509] vicious.smartbargains.com:ftp is RED
Is there a way to modify the subject line format in hobbit to match bb the bb format or does bb-mailack.sh need some mods for this to work?
It shouldn't matter. bb-mailack does some processing to filter out the "fluff" in a mail message, and picks up all of the data it needs from the subject line - regardless of whether it is in BB or Hobbit format.
I'd start the troubleshooting by adding a line or two to echo the data bb-mailack sends to Hobbit. Just before the line $BB $BBPAGE "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" could you add this: echo "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" >>/tmp/mailack.log
Then do a couple of mail-ack's and check out what's in the log file. My first suspicion is that the ack-number is wrong, since that will mean that Hobbit silently discards the ack-message.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Well to make a small contribution back to hobbit, attached is a modified version of bb-mailack.sh that assumes you are using RC3 (I removed the settings for AWK, etc.) Also, sets BBDISPLAYS to BBDISP, BBPAGERS to BBPAGE (you'll need to change this if you have multiple displays or pagers). One other mod is when you ack by email, the message in the acknowledgement will read: email ack from [user's name] Duration [delay] min
Also, included are the changes suggested by Asif and Henrik in this thread. This script still uses ack ack_event as I did not have a chance to test with hobbitdack.
There are 2 places you will need to change the path if your home is not /usr/local/hobbit.
I'll add comments soon. If this is not the proper method of distributing mods for hobbit please let me know what is and I'll adhere to it.
Thanks and great software.
On Tue, 22 Feb 2005 22:37:33 -0500, kevin grady <kevin.grady at gmail.com> wrote:
Ok, after walking away for a while I apologize for wasting people's time. I was missing defs for SED, AWK, etc.
Works like a champ now
On Wed, 23 Feb 2005 00:02:57 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Tue, Feb 22, 2005 at 05:43:22PM -0500, kevin grady wrote:
So looking at the format of bb alert messages the subject line is:
!BB - 2827410! prodsqlclstr1.prod.smartbargains.com.sql-server - 999010100001240
Where in hobbit without bb the subject line format is:
BB [770509] vicious.smartbargains.com:ftp is RED
Is there a way to modify the subject line format in hobbit to match bb the bb format or does bb-mailack.sh need some mods for this to work?
It shouldn't matter. bb-mailack does some processing to filter out the "fluff" in a mail message, and picks up all of the data it needs from the subject line - regardless of whether it is in BB or Hobbit format.
I'd start the troubleshooting by adding a line or two to echo the data bb-mailack sends to Hobbit. Just before the line $BB $BBPAGE "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" could you add this: echo "ack ack_event ${NUMBER} ${DELAY} ${MESSAGE}" >>/tmp/mailack.log
Then do a couple of mail-ack's and check out what's in the log file. My first suspicion is that the ack-number is wrong, since that will mean that Hobbit silently discards the ack-message.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Feb 23, 2005 at 08:25:51AM -0500, kevin grady wrote:
Well to make a small contribution back to hobbit, attached is a modified version of bb-mailack.sh that assumes you are using RC3
I'm sorry, but I cannot accept this contribution. The script is clearly copyrighted:
(c) Copyright Quest Software, Inc. 1997-2003 All rights reserved.
Including it in Hobbit would be a violation of Quest's copyright.
Regards, Henrik
Yeah I guess I should have read the copyright. My apologies.
On Wed, 23 Feb 2005 16:04:38 +0100, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Feb 23, 2005 at 08:25:51AM -0500, kevin grady wrote:
Well to make a small contribution back to hobbit, attached is a modified version of bb-mailack.sh that assumes you are using RC3
I'm sorry, but I cannot accept this contribution. The script is clearly copyrighted:
(c) Copyright Quest Software, Inc. 1997-2003 All rights reserved.
Including it in Hobbit would be a violation of Quest's copyright.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Feb 23, 2005 at 04:04:38PM +0100, Henrik Stoerner wrote:
On Wed, Feb 23, 2005 at 08:25:51AM -0500, kevin grady wrote:
Well to make a small contribution back to hobbit, attached is a modified version of bb-mailack.sh that assumes you are using RC3
I'm sorry, but I cannot accept this contribution. [copyright issues]
Since it seems that the bb-mailack.sh script is quite popular, I went ahead and came up with a Hobbit re-implementation of that concept. So there will be a hobbit-mailack tool included in the next release.
Henrik
participants (3)
-
henrik@hswn.dk
-
iqbala-hobbit@qwestip.net
-
kevin.grady@gmail.com