[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] No Subject On Mail Alerts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] No Subject On Mail Alerts
- From: "Christopher T. Beers" <ctbeers (at) syr.edu>
- Date: Sat, 05 Feb 2005 00:16:34 -0500
- References: <OF707E3C1C.06C7BDA2-ONCC256F9E.000B9663-CC256F9E.000DCCFA@zespri .com> <20050204063316.GA22456@hswn.dk>
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.