Notifications by e-mail

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Thu Apr 3 00:29:26 CEST 2003


Hugo, I urge you to reconsider the path I think you're heading down.  Don't
try to manage the queued messages directly.  Let sendmail do it for you.  Or
Postfix.  Or nullmailer.

jc


> -----Original Message-----
> From: Lonny Selinger [mailto:lonny at bangtherockstogether.net]
> Sent: Wednesday, April 02, 2003 2:26 PM
> To: hugo.rebello at dhl.com
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Notifications by e-mail
> 
> 
> Well technically your system will sotre it where ever you 
> spool to (/var/spool
> /var/mail/spool /spool ... I've seen it all over although 
> /var/ is the most common
> ...  so something like /var/spool/mail or if you use postfix 
> ;)  /var/spool/postfix)
> 
> Somewhere in there
> 
> --
> Lonny
> 
> > OK, I understand.
> > So, Do you know where the Nagios storage the notification 
> that will be sended,
> > when I start the MTA service ?
> >
> > Thanks,
> > Hugo
> > -----Original Message-----
> > From: Lonny Selinger [mailto:lonny at bangtherockstogether.net]
> > Sent: quarta-feira, 2 de abril de 2003 17:00
> > To: hugo.rebello at dhl.com
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] Notifications by e-mail
> >
> >
> > Becasue if there is no agent bound to port 25 you can't 
> send mail anywhere ;) You
> > need something to handle the requests and deliver them to 
> their target ... *mail*
> > alone does not do this. It might do local injects for you, 
> but if you need to send
> > the messages beyhond the local machine they wont have 
> anything to get them there,
> > more then likely they will just queue up until an MTA is 
> started and *then* send
> > them.
> >
> > --
> > Lonny
> >
> >> I don't have problem in use the "mail command", I just 
> can't start the
> > sendmail
> >> service.
> >> Why when I use "mail command" I need running the sendmail service ?
> >>
> >> Thanks,
> >> Hugo
> >>
> >> -----Original Message-----
> >> From: Lonny Selinger [mailto:lonny at bangtherockstogether.net]
> >> Sent: quarta-feira, 2 de abril de 2003 16:33
> >> To: hugo.rebello at dhl.com
> >> Cc: nagios-users at lists.sourceforge.net
> >> Subject: RE: [Nagios-users] Notifications by e-mail
> >>
> >>
> >>> The company don't permit to use another MTA (anyone) in 
> the internal
> >> network. If I
> >>> want notify the administrators using Nagios, I must use the MTA of
> >> company.
> >>> On Nagios, exist some option for it ? Redirect the 
> notification for
> >> another MTA ?
> >>>
> >>> Thank you.
> >>> Hugo
> >>
> >> Then I'd suggest the original option ... redefine the 
> command for notifications
> >> through email. The original is simply:
> >>
> >> define command {
> >> command_name                   notify-by-email
> >> command_line                   /bin/echo -e "***** Nagios 1.0
> >> *****\n\nNotification
> >> Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHo
> >> st: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> > $SERVICESTATE$\n\nDate/Time:
> >> $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "**
> >> $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is 
> $SERVICESTATE$ **"
> >> $CONTACTEMAIL$
> >> }
> >>
> >> the command this is actually using is /bin/mail but you 
> could pipe it to
> > whatever
> >> you need in order to deliver the mail properly.
> >>
> >> --
> >> Lonny
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb: 
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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