Notify-by-email on Solaris 8 doesn't populate the subject

Peter Gutmann peter.gutmann at db.com
Fri Mar 26 18:26:56 CET 2004


As part of the continuing BSD / Systems V split that is ongoing in 
Solaris. There is an alternate BSD centric version of the mail called 
mailx that supports the  missing -s flag

----
Peter Gutmann
Peter.Gutmann at db.com





"Narayanasamy, Sundar" <sundar.narayanasamy at medtronic.com>
Sent by: nagios-users-admin at lists.sourceforge.net
03/26/2004 12:03 PM

 
        To:     "Phil Costelloe" <philc at foundation-it.com>, 
<nagios-users at lists.sourceforge.net>
        cc: 
        Subject:        RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't populate the 
subject


I am using the standard mail that comes with Solaris 8. On my box, it 
still sends the mail but with no subject. When I did 'man mail', I 
couldn't figure it out.

Do I have any other option?

Sundar



-----Original Message-----
From: Phil Costelloe [mailto:philc at foundation-it.com]
Sent: Friday, March 26, 2004 9:14 AM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Notify-by-email on Solaris 8 doesn't
populate the subject


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$         } 

There isn't a -s option to the standard mail program on Solaris 8, in
fact that command (generically - printf "body" | mail -s "subject"
someuser) errors rather than sending a mail when I try it. Is mail the
standard Sun version?

Phil


-------------------------------------------------------
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=ick
_______________________________________________
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





-------------------------------------------------------
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