Page 1 of 1

Scheduled Report Issue

Posted: Fri Apr 03, 2020 12:34 pm
by vignesha
Hello Team,

We are currently facing issue in one of our instance, scheduled CSV format reports was working fine but in the received email only blank page is there without any data present inside, so when we tried manually to download the availability report it was working fine and able to see the data inside the excel sheet.

I have checked the httpd error and found below error, could you please help me to resolve this issue.
--2020-04-03 13:11:55-- http:// xx.xxx.xx.xxx /nagiosxi//reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=Network_Device&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&locale=en_US&mode=csv&csvtype=host&token=8763ff3123b2f2a037760d03452020e6dc5d84b6
Connecting to xx.xxx.xx.xxx:80... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2020-04-03 13:13:10 ERROR 503: Service Unavailable.

--2020-04-03 13:13:10-- http://xx.xxx.xx.xxx/nagiosxi//reports/ ... 0e57149427
Connecting to xx.xxx.xx.xxx:80... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2020-04-03 13:14:25 ERROR 503: Service Unavailable.

Re: Scheduled Report Issue

Posted: Fri Apr 03, 2020 2:39 pm
by jbrunkow
Can you please check if the Program URL is correct? You can find it if you navigate to the Admin section of Nagios XI ( using the bar on top ) > click System Settings under the System Config section on the left > you should then see the Program URL under General Program Settings on the System Settings page. It may also be helpful for us to know, are you using a proxy here?

We may also be able to pinpoint the problem by looking at your system profile. You can download the profile if you navigate to the Admin section > click System Profile on the left pane under System Config > and click Download Profile on that page. After you've downloaded the compressed file, send it to us in a private message and reply to this post to bring it up in our queue.

If we can't discern the issue by looking at either of those things, we might be able to by analyzing the blank report you got. Please send that to us as well.

Re: Scheduled Report Issue

Posted: Mon Apr 06, 2020 2:13 am
by vignesha
Hello,

We are not using any proxy details on General Program Settings, also i have attached the blank reports.






Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: Scheduled Report Issue

Posted: Mon Apr 06, 2020 2:03 pm
by ssax
Please PM one of us this file if you have it:

Code: Select all

/usr/local/nagiosxi/var/load_url.log
Do you have a proxy enabled in Admin > Proxy Configuration?

Do you have an /etc/wgetrc file? Please attach it.

Edit:

Run this command (and leave it running):

Code: Select all

tail -Fn0 /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/load_url.log
Then try to send the report manually, once it has finished (and it's blank) then please PM a copy of your profile as well as the FULL output from the still running tail command above.

Re: Scheduled Report Issue

Posted: Tue Apr 07, 2020 1:27 pm
by vignesha
Hi,
As requested, I have PM all the details personally.

Re: Scheduled Report Issue

Posted: Tue Apr 07, 2020 5:14 pm
by ssax
You have a proxy set in your /etc/wgetrc.

Try commenting out the proxy lines in your /etc/wgetrc, you may need to restart apache for the changes to pick up:

Comment out these ones:

Code: Select all

https_proxy
http_proxy
ftp_proxy

Code: Select all

service httpd restart
Then try the scheduled report again

Re: Scheduled Report Issue

Posted: Tue Apr 21, 2020 12:18 am
by vignesha
Hi Ssax,

Apologies for late reply,

We have highlighted this issue with Security Team and they have confirmed http is suppressed from there end, so we have comment the http one enabled https and it started working.

Many thanks for your support, we are good to close this thread.

Re: Scheduled Report Issue

Posted: Tue Apr 21, 2020 9:07 am
by scottwilkerson
vignesha wrote:Hi Ssax,

Apologies for late reply,

We have highlighted this issue with Security Team and they have confirmed http is suppressed from there end, so we have comment the http one enabled https and it started working.

Many thanks for your support, we are good to close this thread.
Great!

Closing thread