Not able to send Nagios xi Report to email
Not able to send Nagios xi Report to email
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.
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
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):
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:
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
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.logPlease 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 SUPPORTIf the profile script fails, please include the ENTIRE output.
Re: Not able to send Nagios xi Report to email
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.
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
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.
Code: Select all
nmap -p443,25 10.194.11.23Re: Not able to send Nagios xi Report to email
Also, (see previous message), I don't see any files attached, please re-attach.
Re: Not able to send Nagios xi Report to email
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.
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.
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.You do not have the required permissions to view the files attached to this post.
Re: Not able to send Nagios xi Report to email
What do you have set for Admin > Manage Email Settings?
You will likely need to exclude the proxy from the localhost (internal) queries:
Do you have it setup in Admin > Proxy Configuration?
Analyzing the profile now.
You will likely need to exclude the proxy from the localhost (internal) queries:
Code: Select all
https://support.nagios.com/kb/article.php?id=147Analyzing the profile now.
Re: Not able to send Nagios xi Report to email
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
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!
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!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Not able to send Nagios xi Report to email
Great!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!
Locking thread