problem with web interface

Samba Samba at guidemail.com
Mon May 3 20:19:41 CEST 2004


You have 

enable_notifications=1

in the nagios.cfg file?


Does the web interface show it sending the notifications ?

-----Original Message-----
From: K. Shantanu [mailto:shantanu-nagios at bjjhumit.com]
Sent: Monday, May 03, 2004 1:13 PM
To: Samba; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] problem with web interface


* Samba <Samba at guidemail.com> [040503 11:08]:
> Check the file misccommands.cfg
> 
> In there you specify how Nagios generates and sends the e-mail.  Get it
> working through command line first then get Nagios to do it.

Well, I checked it, it is,
define command{
        command_name    host-notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time:
$DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!"
$CONTACTEMAIL$
        }

It is pretty awkward command to test by command line. But, I can do,

echo test | /bin/mail -s "test" shantanu at example.net

and it works properly.

You have any other idea for the same?

With regards,
Shantanu
   
This message and accompanying documents are covered by the Electronic
Communications Privacy Act, 18 U.S.C. §§ 2510-2521, and contains information
intended for the specified individual(s) only. This information is
confidential. If you are not the intended recipient or an agent responsible
for delivering it to the intended recipient, you are hereby notified that
you have received this document in error and that any review, dissemination,
copying, or the taking of any action based on the contents of this
information is strictly prohibited. If you have received this communication
in error, please notify us immediately by e-mail, and delete the original
message.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
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