nagios and sendmail

Tony Earnshaw tonye at billy.demon.nl
Sat Jun 4 01:25:28 CEST 2005


fre, 03.06.2005 kl. 23.13 skrev Edward Ford:

> I am still unable to send email from nagios to myself.. Any ideas would be
> appreciated. I am using :::

> # 'notify-by-email' command definition
> > define command{
> >          
> >         command_line    echo "Message" | mail -s "subject"
> email at domain.com
>          }
> This is what I have put into the misccommands.cfg for notify-by-email.

This is all wrong. What do you have in contacts.cfg?

Like I have:

define  contact {
        contact_name                    nagios-admin
        alias                           Nagios Admin
        host_notification_period        24x7
        service_notification_period     24x7
        host_notification_options       d,r
        service_notification_options    w,u,c,r
        host_notification_commands      host-notify-by-email
        service_notification_commands   notify-by-email
        email                           nagios-admin at tru.leerlingen
}

And in my smtp aliases file I have nagios-admin points to me. So I get
mail for nagios-admin.

misccommands.cfg does noppies for me, nohow. Forget it.

--Tonni

-- 
mail: tonye at billy.demon.nl
http://www.billy.demon.nl




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
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