The email alerts I get from my hobbit user have no subject line.
This makes it tricky to get a quick idea of what's up - I obviously have to open every email to see the service and color.
Is it possible to get the subject as per BB? I guess I could change over from MAIL to SCRIPT and format it myself, but I'd thought I'd ask what everyone else was up to first :-)
Cheers, Andy.
#####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
On Fri, Feb 04, 2005 at 03:30:45PM +1300, Andy France wrote:
The email alerts I get from my hobbit user have no subject line.
Well, mine do :-)
What system is this on - Linux, Solaris, BSD or ... ? What command is used to send mail on your system ? What's the MAIL setting in your hobbitserver.cfg file ?
Try this. Login as the hobbit user, cd to the server/ directory and run this command:
$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test osiris.hswn.dk cpu Matching host:service:page 'osiris.hswn.dk:cpu:' against rule line 109:Failed (hostname not in include list) Matching host:service:page 'osiris.hswn.dk:cpu:' against rule line 112:Matched *** Match with 'HOST=!pto.linuxbog.dk,!router1.aab11.dk,!router2.aab11.dk EXSERVICE=dnsinfo,tes' *** Matching host:service:page 'osiris.hswn.dk:cpu:' against rule line 113:Matched *** Match with 'MAIL henrik at hswn.dk REPEAT=15 RECOVERED COLORS=!purple' *** Mail alert with command 'mail -s "BB [12345] osiris.hswn.dk:cpu is RED" henrik at hswn.dk'
(Obviously, you should use one of your own hostnames).
The command that is used to send mail is shown in the line beginning with "Mail alert with command" - it should include a subject, so if it doesn't when the mail shows up in your mailbox, you may have to use a different MAIL setting on your system.
Henrik
I always thought that is how it was supposed to be and that the SMS or shorter messages just made it smaller and had a subject. Guess I should have tried it.
Solaris the mail command does not accept -s but mailx does. I changed it in hobbitserver.cfg to mailx and everything works fine.
[hobbit at darwin ~/server]$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test helpme.syr.edu cpu Matching host:service:page 'helpme.syr.edu:cpu:' against rule line 108:Matched *** Match with 'HOST=%.*' *** Matching host:service:page 'helpme.syr.edu:cpu:' against rule line 109:Matched *** Match with 'MAIL ctbeers at syr.edu RECOVERED' *** Mail alert with command 'mail -s "BB [12345] helpme.syr.edu:cpu is RED" ctbeers at syr.edu'[hobbit at darwin ~/server]$ mail --help mail: illegal option -- - mail: illegal option -- l mail: Usage: [-ehpPqr] [-f file] [-x debuglevel] or [-tw] [-m message_type] [-T file] [-x debuglevel] persons or [-x debuglevel]
-- Christopher T. Beers Lead UNIX Architect - System Infrastructure Services (SIS) Syracuse University | 250 Machinery Hall | Syracuse, NY 13244 (315) 443-4103 Office | (315) 443-1621 Fax | p-ctbeers at syr.edu Pager
--On February 4, 2005 7:33:16 AM +0100 Henrik Stoerner <henrik at hswn.dk> wrote:
| The command that is used to send mail is shown in the line beginning | with "Mail alert with command" - it should include a subject, so if it | doesn't when the mail shows up in your mailbox, you may have to use a | different MAIL setting on your system.
"Henrik Stoerner" wrote on 04/02/2005 19:33
The email alerts I get from my hobbit user have no subject line.
Well, mine do :-)
Yay! ;-)
What system is this on - Linux, Solaris, BSD or ... ?
SunOS zpnz-mtm-bb01 5.9 Generic_117172-05 i86pc i386 i86pc
What command is used to send mail on your system ? What's the MAIL setting in your hobbitserver.cfg file ?
MAIL="mail"
Try this. Login as the hobbit user, cd to the server/ directory and run this command:
$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test osiris.hswn.dk cpu
<SNIP>
The command that is used to send mail is shown in the line beginning with "Mail alert with command" - it should include a subject, so if it doesn't when the mail shows up in your mailbox, you may have to use a different MAIL setting on your system.
"Christopher T. Beers" wrote on 05/02/2005 18:16:34:
I always thought that is how it was supposed to be and that the SMS or shorter messages just made it smaller and had a subject. Guess I should have tried it.
Solaris the mail command does not accept -s but mailx does. I changed it in hobbitserver.cfg to mailx and everything works fine.
<SNIP>
Thanks Henrik and Chris - I am indeed running Solaris 9 x86 and changing the "MAIL=" directive in hobbitserver.cfg did the trick. Any chance the configure script can be updated to do this by default on Solaris?
Henrik - when I ran the test I got the following errors:
bash-3.00$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test zd2sv1 vmio 2005-02-07 09:31:17 Unknown option '--test' 2005-02-07 09:31:17 Unknown option 'zd2sv1' 2005-02-07 09:31:17 Unknown option 'vmio'
I am, however, still running B6 rather than RC1 as I didn't get any reply about my conn/fping problems after I upgraded :-) I'd link to the message but the February archives don't seem to be up yet. The subject was "Re: [hobbit] Hobbit 4.0-RC1 available - conn errors" and it was sent 03/02/2005 04:24 GMT.
Thanks and regards, Andy.
#####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
Hi Andy,
On Mon, Feb 07, 2005 at 09:58:37AM +1300, Andy France wrote:
Thanks Henrik and Chris - I am indeed running Solaris 9 x86 and changing the "MAIL=" directive in hobbitserver.cfg did the trick. Any chance the configure script can be updated to do this by default on Solaris?
Perhaps, yes.
I am, however, still running B6 rather than RC1 as I didn't get any reply about my conn/fping problems after I upgraded :-)
The errors from the hobbitd_larrd --test is due to you running beta-6.
As for the "conn" errors you got, I just posted a reply a couple of minutes ago. I don't see what would cause this, so I need some debugging output.
I'd link to the message but the February archives don't seem to be up yet.
Argh ... mhonarc is not behaving like I want it to. Will look at it.
Henrik
mail on Solaris including Solaris 9, doesn't include the -s flag. Look at the man page, you would want to set MAIL to mailx:
MAIL=mailx
man mail man mailx
David Gore (v965-3670) Enhanced Technology Support (ETS) Network Management Systems (NMS) IMPACT Transport Team Lead - SCSA, SCNA Page: 1-800-PAG-eMCI pin 1406090 Vnet: 965-3676
Andy France wrote:
"Henrik Stoerner" wrote on 04/02/2005 19:33
The email alerts I get from my hobbit user have no subject line.
Well, mine do :-)
Yay! ;-)
What system is this on - Linux, Solaris, BSD or ... ?
SunOS zpnz-mtm-bb01 5.9 Generic_117172-05 i86pc i386 i86pc
What command is used to send mail on your system ? What's the MAIL setting in your hobbitserver.cfg file ?
MAIL="mail"
Try this. Login as the hobbit user, cd to the server/ directory and run this command:
$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test
osiris.hswn.dk cpu
<SNIP>
The command that is used to send mail is shown in the line beginning with "Mail alert with command" - it should include a subject, so if it doesn't when the mail shows up in your mailbox, you may have to use a different MAIL setting on your system.
"Christopher T. Beers" wrote on 05/02/2005 18:16:34:
I always thought that is how it was supposed to be and that the SMS or shorter messages just made it smaller and had a subject. Guess I should have tried it.
Solaris the mail command does not accept -s but mailx does. I changed it in hobbitserver.cfg to mailx and everything works fine.
<SNIP>
Thanks Henrik and Chris - I am indeed running Solaris 9 x86 and changing the "MAIL=" directive in hobbitserver.cfg did the trick. Any chance the configure script can be updated to do this by default on Solaris?
Henrik - when I ran the test I got the following errors:
bash-3.00$ ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --test zd2sv1 vmio 2005-02-07 09:31:17 Unknown option '--test' 2005-02-07 09:31:17 Unknown option 'zd2sv1' 2005-02-07 09:31:17 Unknown option 'vmio'
I am, however, still running B6 rather than RC1 as I didn't get any reply about my conn/fping problems after I upgraded :-) I'd link to the message but the February archives don't seem to be up yet. The subject was "Re: [hobbit] Hobbit 4.0-RC1 available - conn errors" and it was sent 03/02/2005 04:24 GMT.
Thanks and regards, Andy.
#####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (4)
-
Andy@zespri.com
-
ctbeers@syr.edu
-
David.Gore@mci.com
-
henrik@hswn.dk