Page 1 of 1
Not able to send Nagios xi Report to email
Posted: Thu Oct 31, 2019 4:48 pm
by anilgupta
Team,
I am trying to send reports through email.
I am not receiving the report also it is not throwing any error message.
Please suggest as how should this be troubleshooted.
Re: Not able to send Nagios xi Report to email
Posted: Thu Oct 31, 2019 4:51 pm
by ssax
Please run through these KB articles for troubleshooting:
https://support.nagios.com/kb/article/n ... s-829.html
https://support.nagios.com/kb/article/n ... g-742.html
Additionally, please run this tail command (and leave it running):
Code: Select all
tail -F /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/eventman.log /usr/local/nagiosxi/var/scheduledreporting.log
Then force the report to be sent and send me the full output of the tail command once it's completed.
Please send me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile and upload it to the ticket by clicking the "choose item" link at the bottom of the menu. Make sure to wait until the file is finished uploading before clicking the Post Reply button.
If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh SUPPORT
Then send me the resulting
/usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
Re: Not able to send Nagios xi Report to email
Posted: Thu Oct 31, 2019 5:59 pm
by anilgupta
Please find attached the requested files.
clearly, it is timing out, not sure why
--2019-10-31 18:25:02-- (try:20)
https://intra.dev.eiamreporting.cac.gov ... 3f47aa04d8
Connecting to intra.dev.eiamreporting.cac.gov.on.ca (intra.dev.eiamreporting.cac.gov.on.ca)|10.194.11.23|:443... failed: Connection timed out.
Retrying.
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 12:04 pm
by ssax
Please send the output of this:
What is
10.194.11.23 exactly? What is it's function? Is it a mail server? If so, it shouldn't be 443 in my general experience but technically can be anything.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 12:05 pm
by ssax
Also, (see previous message), I don't see any files attached, please re-attach.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 4:22 pm
by anilgupta
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
logfile.txt
Nagios_Reports.png
Please note that "10.194.11.23" is proxy server which is listening to port 443. The server where Nagios has been deployed is 10.194.78.206.
I have observed that the Nagios Dashboard is responsive. However, after clicking on "Send" button on "Email Report" page, the page sticks and crashes. I have attaching the page for your reference.
Code: Select all
[/[2019-11-01 16:42.16] ~
[guptaa2.on34c02621424] ➤ telnet 10.194.11.23 443
Trying 10.194.11.23...
Connected to 10.194.11.23.
Escape character is '^]'.
telnet>
exit
exit();
Connection closed by foreign host.
✘
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-11-01 16:42.35] ~
[guptaa2.on34c02621424] ➤ nslookup intra.dev.eiamreporting.cac.gov.on.ca
Name: intra.dev.eiamreporting.cac.gov.on.ca
Address 1: 10.194.11.23 intra.dev.eiamreporting.cac.gov.on.ca
✔
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-11-01 16:42.41] ~
[guptaa2.on34c02621424] ➤ telnet 10.194.11.23 25
Trying 10.194.11.23...
telnet: Unable to connect to remote host: Operation not permitted
✘
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-11-01 16:42.56] ~
code]
I don't have nmap installed so ran telnet command to show that 443 port is running on the proxy server.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 4:29 pm
by ssax
What do you have set for
Admin > Manage Email Settings?
You will likely need to exclude the proxy from the localhost (internal) queries:
Code: Select all
https://support.nagios.com/kb/article.php?id=147
Do you have it setup in
Admin > Proxy Configuration?
Analyzing the profile now.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 4:31 pm
by ssax
Yep, please follow that guide and configure the exclude as that's what is required. What you need to do is EXCLUDE all internal calls to itself from going through the proxy, you wouldn't want it to go through the proxy.
Re: Not able to send Nagios xi Report to email
Posted: Fri Nov 01, 2019 6:24 pm
by anilgupta
Thanks for the response!
Nagios was using "SMTP", I changed it to "sendmail" which fixed the issue.
now I can send the report through email.
Thanks a lot for the support!
Have great weekend!
Re: Not able to send Nagios xi Report to email
Posted: Mon Nov 04, 2019 7:34 am
by scottwilkerson
anilgupta wrote:Thanks for the response!
Nagios was using "SMTP", I changed it to "sendmail" which fixed the issue.
now I can send the report through email.
Thanks a lot for the support!
Have great weekend!
Great!
Locking thread