Page 2 of 3
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 2:08 pm
by rkane
At this point I can't send the email any longer (see above error). One of the old emails that went out, the PDF was zero bytes so the forum won't let me attach it.
tgriep wrote:Is the PDF file from the email larger than zero bytes?
If so, can you attach it to the post so we can view the contents of it?
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 2:13 pm
by tgriep
One more thing, you need to delete the old scheduled reports and recreate them so they will recreate them with the changes URL.
Let us know it that works or not.
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 2:15 pm
by rkane
Doesn't work, I'm manually attempting to email myself a report and getting the error.
tgriep wrote:One more thing, you need to delete the old scheduled reports and recreate them so they will recreate them with the changes URL.
Let us know it that works or not.
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 3:47 pm
by benjaminsmith
It looks like you are using NTLM authentication, and that is causing the error. This is not supported by the current version of Nagios XI. However, our developer has made some changes to the mail client script to try and resolve your issue. Please make a backup of your system or take a VM snapshot and try the following:
1. Insert file (ntlm.sasl_client.php) in the extras directory (you may need to make the extras folder):
/usr/local/nagiosxi/html/includes/phpmailer/extras/
2. Make sure php mcrypt is installed:
yum install php-mcrypt
3. Try sending email
Let us know if this resolves the issue.
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 3:58 pm
by rkane
I do not believe that to be correct. Something in this discussion thread has broken my ability to even send the report email. As far as I'm aware we have not touched anything in the authentication side of things. Before I go tearing things up can we please confirm where the NTLM conclusion came from? What, exactly, about the previous suggested fixes for the bad PDF file has resulted in the current email send errors? How was it working a day ago with NTLM (which I do not believe is the case) and now it does not work, what was changed?
Honestly - I feel like we're just throwing things at the wall to see what sticks. At this point, I'm not going to go make major changes just to see if it might help...can't afford to bring the whole system down. How can we, at a minimum, get back to where we were before suggestions started being posted here?
benjaminsmith wrote:It looks like you are using NTLM authentication, and that is causing the error. This is not supported by the current version of Nagios XI. However, our developer has made some changes to the mail client script to try and resolve your issue. Please make a backup of your system or take a VM snapshot and try the following:
1. Insert file (ntlm.sasl_client.php) in the extras directory (you may need to make the extras folder):
/usr/local/nagiosxi/html/includes/phpmailer/extras/
2. Make sure php mcrypt is installed:
yum install php-mcrypt
3. Try sending email
Let us know if this resolves the issue.
Re: Email / Download Report having issues
Posted: Tue Oct 09, 2018 4:00 pm
by rkane
This is where we made a wrong turn, we've never recovered from the errors this post induced. Let's fix that first please and then we can go back to trying to debug the original issue
benjaminsmith wrote:Hi,
We recently upgraded jQuery, and have a a known issue regarding PDF reports (i.e. data not being populated in the PDF).
Let's try reverting back to the previous version of jQuery.
Open the /usr/local/nagiosxi/html/config.inc.php file in a text editor, find the section below:
Code: Select all
// Old browser compatability with jQuery
// - Turn this on to set jQuery to use 1.x instead of 3.x
// - Security fixes are available in 3.x and is the default version but is not compatible with IE 8
and change this line:
Code: Select all
// $cfg['old_browser_compat'] = 1;
to this (simply uncomment the line):
If you don't find the line, just add it to the config, save, and exit. Let us know if this resolves the issue.
Re: Email / Download Report having issues
Posted: Wed Oct 10, 2018 9:46 am
by tgriep
The NTLM Authenication issue, we found in the Apache Error Log.
Code: Select all
PHP Fatal error: require_once(): Failed opening required 'extras/ntlm_sasl_client.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php on line 487
The PHPMailer that is used to send the emails, gets the Authenication information from the SMTP server and it thinks it needs NTLM.
There may be some other issue that happened at the same time but that is where we found the error.
How about we do this.
If you go to the following link and create a Support Ticket
https://support.nagios.com/kb/article/s ... e-444.html
We can setup a remote session so we can get direct access to the Nagios server so we can troubleshoot this live.
Would this work for you?
Re: Email / Download Report having issues
Posted: Wed Oct 10, 2018 3:14 pm
by rkane
Strange, nothing has changed on the email side of our environment. I'd feel a lot more comfortable doing a live session, will open a support ticket.
tgriep wrote:The NTLM Authenication issue, we found in the Apache Error Log.
Code: Select all
PHP Fatal error: require_once(): Failed opening required 'extras/ntlm_sasl_client.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php on line 487
The PHPMailer that is used to send the emails, gets the Authenication information from the SMTP server and it thinks it needs NTLM.
There may be some other issue that happened at the same time but that is where we found the error.
How about we do this.
If you go to the following link and create a Support Ticket
https://support.nagios.com/kb/article/s ... e-444.html
We can setup a remote session so we can get direct access to the Nagios server so we can troubleshoot this live.
Would this work for you?
Re: Email / Download Report having issues
Posted: Wed Oct 10, 2018 3:23 pm
by tgriep
When you create a ticket, reference this post in it so we can refer back to the post.
Thanks
Re: Email / Download Report having issues
Posted: Wed Oct 10, 2018 3:28 pm
by rkane
tgriep wrote:When you create a ticket, reference this post in it so we can refer back to the post.
Thanks
Done, ticket info:
Emailing Reports - Corrupt PDF / Cannot Email #911097