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

Phil Costelloe philc at foundation-it.com
Mon Mar 29 12:10:29 CEST 2004


Paul L. Allen wrote:
> Phil Costelloe writes:
> 
>> 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
> 
> One way around it is to use sendmail (which may not actually
> be sendmail underneath but a sendmail-alike wrapper around
> the real MTA). Use -oi if you want to specify a different
> sender than the process is running on (in which case you need
> to add sender and recipient headers to your printf; use -t so
> a stray dot doesn't cause trouble; add a subject header to your
> printf. 
> 
> That's assuming that Solaris 8 has sendmail or a
> sendmail-alike wrapper around the real MTA - most distros do
> because most CGIs that send mail are written to call
> sendmail.  Then again, Sun are notorious for doing things
> differently from everyone else.

[/usr/lib/]sendmail is the default MTA on Solaris 8 - current version
seems to be 8.11.7p1+Sun.

But if mailx can provide the functionality that Nagios needs (which I
believe it can for most installations) then I think it's probably better
to stick with that.

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