Email / Download Report having issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email / Download Report having issues

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Email / Download Report having issues

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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.
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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):

Code: Select all

$cfg['old_browser_compat'] = 1;
If you don't find the line, just add it to the config, save, and exit. Let us know if this resolves the issue.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email / Download Report having issues

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email / Download Report having issues

Post by tgriep »

When you create a ticket, reference this post in it so we can refer back to the post.
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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
Locked