Page 2 of 3

Re: state history automatic report is not working properly

Posted: Tue Jul 30, 2019 8:39 am
by tgriep
What version of Nagios XI is the server running?

Try this and see if the reports works.

Edit the /etc/wgetrc file and add the following line to it. Add the server's IP address in the xxx.xxx.xxx.xxx location.

Code: Select all

no_proxy=localhost,127.0.0.0/8,xxx.xxx.xxx.xxx
Save the file.

Then login to the XI GUI and go to the Admin > System Settings menu.
Make sure the External URL is correct.

Then schedule the report and see if it runs.

Re: state history automatic report is not working properly

Posted: Wed Jul 31, 2019 1:54 am
by udaykumar
other formate such as .jpg/pdf i am able top upload except zip and tar/7z file formats are not able to upload.
We are running the nagiosXI version 5.5.7,
Exclusions are already given, i think that's y we are getting schedule page report. We are receiving the state report in our email box but that attachment has crashed error. showing. Find the attachment for state history report.

Re: state history automatic report is not working properly

Posted: Wed Jul 31, 2019 12:03 pm
by tgriep
There is a bug fix in XI version 5.5.10 that is directly related to the creation of reports in PDF format so I suggest to at least upgrade the server to 5.5.11.

This document describes how to manually upgrade an existing Nagios® XI™ installation with the latest updates and patches.
Upgrading your Nagios XI installation will ensure the highest security for your implementation and keep your monitoring environment running smoothly.
https://assets.nagios.com/downloads/nag ... ctions.pdf


Login to the XI GUI and delete the scheduled report and recreate it and see if you can manually run it and download the PDF file.

Login to the server in a root shell and look as this file

Code: Select all

/var/spool/cron/apache
You will see a line similar to the following (The report and username should be different).

Code: Select all

/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=MssorllQUqOI --username="nagiosadmin" 
Copy the line out of that file and run it so we can see the errors in a shell if there are any.

Re: state history automatic report is not working properly

Posted: Wed Jul 31, 2019 8:06 pm
by udaykumar
I don't think so nagios5.5.7 is having issue with state history report. I have worked on .5.4.0 where its worked fine.
If i send the logs to you hope we can resolve the issue. Let me know anyone of your email Id. so that i will send the logs to your inbox.
Please help with your emailId to send the logs. Otherwise I have few email address
'XXXXX' or 'XXXXXX', will you collect from them the logs i will send to them their.. So that its is easy to check the issue.

I will request them to send the logs to your inbox so that you will check the logs. Still i am not able to upload the 2MB file in this session.

Re: state history automatic report is not working properly

Posted: Thu Aug 01, 2019 12:26 pm
by ssax
You can send it here (ssax AT nagios.com) but note that we DO NOT work out of our direct email boxes, all support should be done through the forums or tickets to have the SLA adhered to, not through direct email.

You should really just rename the file extension and try to PM it to us but I'll keep an eye out for your email.

Re: state history automatic report is not working properly

Posted: Thu Aug 01, 2019 9:04 pm
by udaykumar
Hi Team,

I sent the logs. The same log file i am trying to upload in forum. Let me know is there any problem in that file. so that we will not produce same issue while uploading the file.

Re: state history automatic report is not working properly

Posted: Fri Aug 02, 2019 2:45 pm
by tgriep
I see that the server has SSL enabled to access it and that there is a setting that was missed.

Edit the /usr/local/nagiosxi/html/config.inc.php file and change the following from

Code: Select all

$cfg['use_https'] = false;
to

Code: Select all

$cfg['use_https'] = true;
Save the change and restart Apache by running

Code: Select all

service httpd restart
Login to the XI GUI and go to the Admin > System Settings menu and make sure the External URL: field has an https in the URL.
Save that change if needed.

Upgrade the XI server to version 5.5.11 by following this procedure.

Run the following as root.

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.11.tar.gz
tar xzf xi-5.5.11.tar.gz
cd /tmp/nagiosxi
./upgrade
Test to see if you can run the report and view the PDF file.

Re: state history automatic report is not working properly

Posted: Tue Aug 06, 2019 8:47 pm
by udaykumar
Hi Tgrip,

As of now we are not upgrading version. If the https having issue it should got give any scheduled page report, but we are getting the scheduled page report.
Please check once again help us on for only "schedule report" issue.
We are receiving the pdf state history report but the pdf not opening with history.
The same we have scheduled for scheduled page its working fine.
Find the attachment which i have downloaded the state history manually in pdf. Its working fine while downloading its not coming the same report in automatically.

I am considering and differentiating the scheduled page automatic generation report pdf and state history automatic generations report where as scheduled page is working and state history page is not working.

Re: state history automatic report is not working properly

Posted: Wed Aug 07, 2019 8:33 am
by tgriep
I have a question, do you know what this device is at the IP address 165.225.114.69?

Re: state history automatic report is not working properly

Posted: Wed Aug 07, 2019 9:09 pm
by udaykumar
Hi Team
Not that is not the one IP address which we running nagios device. I have observed that ip address not in monitoring. Do let me know if you need any more details.