Nagios Notifications

Joe Rhett jrhett at isite.net
Fri Jan 30 08:54:40 CET 2004


On Thu, Jan 29, 2004 at 10:24:09AM -0800, Ron Huff wrote:
> Would someone send me a simple, 'command_line' for the checkcommands.cfg
> file that uses sendmail...the sample configs just invoke 'printf' ...I just 
> need a little boost over this hurdle, rather than spending days digging thru 
> sendmail docs...

The printf commands are piped to /usr/bin/mail

Let me guess -- are you using Solaris?  If so, pipe to /usr/bin/mailx
instead.  The printf()s will work fine.  Just fix the part that you are
piping it to.

If you're still confused, send me a command line that you use to send mail
(subject and sender and all) and I'll give you back a line for the
misccommands.cfg.

FYI: /usr/bin|lib/sendmail isn't what you want to invoke to send mail.  You
want to use a front-end program like "mail" or "mailx" or something so that
you can customize headers and all that noise.  They invoke sendmail for you.


-- 
Joe Rhett                                                      Chief Geek
JRhett at Isite.Net                                      Isite Services, Inc.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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