Notification Problem


#1

I have two contacts set up to receive notifications when servers go down. Those are delivered ok but I get a extra bonus.

In my email postmaster account I get this:

MAILER-DAEMON@mail.domain.com failure notice

Hi. This is the qmail-send program at mail.domain.com
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.

<** PROBLEM alert - Cusomter Email/POP3 is CRITICAL **@mail.domain.com>:
Sorry, no mailbox here by that name. (#5.1.1)

— Below this line is a copy of the message.

Return-Path: root@mail.domain.com
Received: (qmail 932 invoked by uid 511); 12 May 2005 12:28:20 -0500
Date: 12 May 2005 12:28:20 -0500
Message-ID: 20050512172820.931.qmail@mail.domain.com
From: root@mail.domain.com
Cc: recipient list not shown: ;

Notification Type: PROBLEM

Service: POP3
Host: Cusomter Email
Address: 65.5.8x.x
State: CRITICAL

Date/Time: Thu May 12 12:28:20 CDT 2005

Add-Info:

Edited ]


#2

I suppose you changed the email address…
Any way check that the **@mail.domain.com address exists AND that the domain is NOT defined as an inbound domain on the nagios server, in this case it would try a local delivery and not having the mailbox return an error.

Luca


#3

This is still a problem. It is trying to send a email to the host

<Host DOWN for wickenburg_router!@mail.cpsi.org>:
Sorry, no mailbox here by that name. (#5.1.1)

wickenburn_router is in the host file. This is not in the contact list


#4

You have messed up your .cfg file.
This is the definition in misccommands.cfg
define command{
command_name notify-by-email
command_line /usr/bin/printf “%b” “***** Nagios ***\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $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$ }

As you can see, the person that the email will be sent to is $CONTACTEMAIL$

Contacts.cfg has the definced contacts and there respective email address’. Hostgroups.cfg has the host group that the host belongs in.

Double check your syntax in misccommands.cfg and try to send yourself an email by command line, by using the same syntax.