Nagios doesn't send any notification
Marc Powell
marc at ena.com
Fri Sep 25 14:09:39 CEST 2009
On Sep 24, 2009, at 10:19 PM, Reynier Pérez Mira wrote:
> Hi every:
> I have installed and configured Nagios 3.2.0. For now I'm only check
> to
> servers. I want to receive e-mails when some of the services or server
> fail. For this I wrote this in the file commands.cfg under
> /usr/local/nagios/etc
>
> define command{
> command_name host-notify-by-email
> command_line /usr/bin/mail -b "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$
> \nState:
> $HOSTS$
> }
> So, where is the problem?
> Regards and thanks in advance
You aren't using the mail command properly. Specifically, you're not
telling it what address to deliver the message to. Why aren't you
using the notification commands in the included sample config files? I
encourage you to those command definitions until you become more
familiar with Nagios.
--
Marc
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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