Not able to send Nagios xi Report to email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Not able to send Nagios xi Report to email

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to send Nagios xi Report to email

Post 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.
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Re: Not able to send Nagios xi Report to email

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to send Nagios xi Report to email

Post by ssax »

Please send the output of this:

Code: Select all

nmap -p443,25 10.194.11.23
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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to send Nagios xi Report to email

Post by ssax »

Also, (see previous message), I don't see any files attached, please re-attach.
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Re: Not able to send Nagios xi Report to email

Post 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.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to send Nagios xi Report to email

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to send Nagios xi Report to email

Post 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.
anilgupta
Posts: 102
Joined: Fri Mar 01, 2019 8:35 am

Re: Not able to send Nagios xi Report to email

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked