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;
email notifications are not being delivered
Re: email notifications are not being delivered
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
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
Re: email notifications are not being delivered
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
I can roll back to a ptached 1.1g though. I will stay where i am at the moment.. looking forward to 1.1J
Re: email notifications are not being delivered
That's correct. This patch should have the HUNK failure on 1.1H
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.
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.
Re: email notifications are not being delivered
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.
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.
Re: email notifications are not being delivered
Upgrade from 1.1G to 1.1H and forget about this patch.
-
hopemonger
- Posts: 1
- Joined: Wed Jun 16, 2010 4:18 pm
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?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: email
Try the steps in this post to help diagnose your email problem.
http://support.nagios.com/forum/viewtop ... p=347#p347
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.
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
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.
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
See this topic for problems with nagiosadmin's email.Please provide more information about email problems.