Notify-by-email on Solaris 8 doesn't populate the subject
McWhirter,Julia
julia.mcwhirter at superh.com
Tue Mar 30 10:42:58 CEST 2004
To do this either manually edit the misccommands.cfg and change all mail
entries to mailx or use the --with-mail switch with configure. I just
edited the cfg file works well now.
Regards
Julia McWhirter
IT Manager
SuperH (UK) Ltd
First Floor
Network House
2410 Aztec West
Almondbury
Bristol
BS32 4QX
Tel : 01454 465600
Tel (Direct) : 01454 465661
Tel (Mobile) : 07979 913494
Fax : 01454 465601
Email : julia.mcwhirter at superh.com
www : www.superh.com
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Matt
Pounsett
Sent: Monday, March 29, 2004 9:54 PM
To: Narayanasamy, Sundar
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Notify-by-email on Solaris 8 doesn't
populate the subject
On Fri, 26 Mar 2004, Narayanasamy, Sundar wrote:
> Hello,
>
> Whenever I get a warning or error notification from my Nagios
installation on my Solaris box, it comes with empty subject line. How do
I fix it?
>
> This is what I have
>
> # 'notify-by-email' command definition
> define command{
> command_name notify-by-email
> command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVIC
> EDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTP
> UT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
> }
>
> Any help is appreciated.
To get standard "mail" behavior on Solaris, use "mailx".
--
Matt Pounsett CIRA - Canadian Internet Registration
Authority
Technical Support Programmer 350 Sparks Street, Suite
1110
matt.pounsett at cira.ca Ottawa, Ontario,
Canada
613.237.5335 ext. 231
http://www.cira.ca
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list