email notifications are not being delivered

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cbuesing
Posts: 7
Joined: Thu Apr 08, 2010 11:20 am

Re: email notifications are not being delivered

Post by cbuesing »

I'm not able to get the code to run without errors. I'm running 1.1H. I'm using putty and logged in as root. I'm not sure what I'm doing wrong here.

The 1st set of code returns this error.

patching file /usr/local/nagiosxi/cron/eventman.php
patch: **** malformed patch at line 8: //define("BACKEND",1);

And the second set of code returns this error.

patching file /usr/local/nagiosxi/cron/eventman.php
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file /usr/local/nagiosxi/cron/eventman.php.rej


Here is the contents of eventman.php.rej
***************
*** 9,15 ****
//define("BACKEND",1);

require_once(dirname(__FILE__).'/../html/config.inc.php');
- require_once(dirname(__FILE__).'/../html/includes/utils.inc.php');

$max_time=59;

--- 9,17 ----
//define("BACKEND",1);

require_once(dirname(__FILE__).'/../html/config.inc.php');
+ //require_once(dirname(__FILE__).'/../html/includes/utils.inc.php');
+ //require_once(dirname(__FILE__).'/../html/includes/components.inc.php');
+ require_once(dirname(__FILE__).'/../html/includes/common.inc.php');

$max_time=59;
pbernardi
Posts: 20
Joined: Thu Apr 08, 2010 11:57 am

Re: email notifications are not being delivered

Post by pbernardi »

I, too, am having this problem.

I am also getting those same errors when I try to apply the patch.

Any ideas? I just downloaded the VM yesterday and it says it is up to date.

thx
gary_ford
Posts: 52
Joined: Wed Mar 10, 2010 9:18 am

Re: email notifications are not being delivered

Post by gary_ford »

I have just tried to patch 1.1h and can confirm the patch doesnt work for 1.1h.

I can roll back to a ptached 1.1g though. I will stay where i am at the moment.. looking forward to 1.1J
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: email notifications are not being delivered

Post by mmestnik »

That's correct. This patch should have the HUNK failure on 1.1H :geek:
As for the malformed patch, that's a direct indication that you didn't paste the patch correctly... It was mangled by the forum software.

Please post comments about notification's failing in 1.1H on the following topic. This topic and patch is only applicable for users using 1.1G.
http://go.nagios.com/forum/256

Edit mmestnik: Forget this even, the bug in 1.1H can be corrected by changing nagiosadmin's contact template as described in the above URL.
qcmonitor
Posts: 18
Joined: Wed Feb 03, 2010 12:14 pm

Re: email notifications are not being delivered

Post by qcmonitor »

Hi,

I'm using 1.1G version, but also have the HUNK failure when trying to update the file using this patch.
I tried to manually modify the patch without success: The notification are not being delivered.
I'm in the same situation as I'm receiving email when I click on Send Test notifications.
But email was not delivered when a service or host is down and even if I click on send custom notification under the Advanced tab.

But I found a way to receive email.

Even if I choose the SMTP Mail method instead of Sendmail in the Manage Email Settings page (Configure -> System config), I needed to configure sendmail.
So I let the Mail Method option to SMTP. Then on the server, I modify the /etc/mail/sendmail.mc file and configure the line:
define(`SMART_HOST', `your.smtp.server')dnl
(by replacing your.smtp.server with my local smtp server dns name --- verify that your local smtp server is resolved by your DNS server with nslookup, normal and reverse resolution --- and removing the dnl # comment at the beginning of the line).
Run the m4 macro to apply the changes to the sendmail.rc file:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Restart the sendmail service:
# /etc/init.d/sendmail restart

All the notifications were immediately delivered.

Hope that helps.

Chris.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: email notifications are not being delivered

Post by mmestnik »

Upgrade from 1.1G to 1.1H and forget about this patch.
hopemonger
Posts: 1
Joined: Wed Jun 16, 2010 4:18 pm

email

Post by hopemonger »

I am using the NagiosXI VMware image. I can setup a number of clients and monitoring works great but the email notifications just never go out. Test emails work fine. Any help?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: email

Post by Box293 »

Try the steps in this post to help diagnose your email problem.

http://support.nagios.com/forum/viewtop ... p=347#p347
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jwalters
Posts: 32
Joined: Fri Dec 04, 2009 2:52 pm

Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped

Post by jwalters »

I'm experiencing this same error and problem and I'm on R1.2. In fact my notifications have never worked although the test is fine... Per tonyyarusso's fix, my eventman.php already has the solution in place.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped

Post by mmestnik »

See this topic for problems with nagiosadmin's email.Please provide more information about email problems.
Locked