Generating Reports
Re: Generating Reports
Go to Admin > Manage Components, and click on "Check for Updates", then "Install Updates". You should be able to install the newest version of the Metrics component (1.3.4). Try adding a new report under the new Metrics component to see if this is going to fix your issue. We will keep the thread open until we hear back from you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Generating Reports
Upgrade completed. Current version is now Nagios XI 5.6.9. However, we still encounter an issue with setting up a schedule report using "Metrics" it still resets to 4 hours. In addition to that, while we run a test mail with attachment with the metrics reports, it seems it stuck/unable to receive and we are getting this error in logs.lmiltchev wrote:Go to Admin > Manage Components, and click on "Check for Updates", then "Install Updates". You should be able to install the newest version of the Metrics component (1.3.4). Try adding a new report under the new Metrics component to see if this is going to fix your issue. We will keep the thread open until we hear back from you.
Code: Select all
[12-27-2019 23:31:59] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-27-2019 23:33:10] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
[12-27-2019 23:33:21] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtp.sendgrid.net;port=587;smtpauth=true;security=tls), Referer: includes/components/xicore/xicore.inc.php > Event Handler Notification Email
Code: Select all
-rwxrwxr-- 1 nagios nagios 1475361 Dec 17 16:05 scheduledreport-nagiosadmin-rj7LrbtjP9bA-1576511883-Storage - Executive Summary Report - test.pdf
-rwxrwxr-- 1 nagios nagios 1469305 Dec 17 17:00 scheduledreport-nagiosadmin-rj7LrbtjP9bA-1576512301-Storage - Executive Summary Report - test.pdf
-rwxrwxr-- 1 nagios nagios 369853 Dec 17 22:24 scheduledreport-nagiosadmin-cYfqSgMRDoAJ-1576592673-CPU - Executive Summary Report - Test.pdf
-rwxrwxr-- 1 nagios nagios 509254 Dec 17 22:30 scheduledreport-nagiosadmin-cYfqSgMRDoAJ-1576593031-CPU - Executive Summary Report - Test.pdf
-rwxrwxr-- 1 nagios nagios 509256 Dec 17 22:31 scheduledreport-nagiosadmin-cYfqSgMRDoAJ-1576593062-CPU - Executive Summary Report - Test.pdf
-rwxrwxr-- 1 nagios nagios 0 Dec 27 22:46 upgrade.log
-rw-r--r-- 1 apache nagios 0 Dec 27 22:50 scheduledreport-nagiosadmin-dh9rRuXZ6uNA-1577458153-CPU - Executive Summary Report - Test.pdf
-rw-r--r-- 1 apache nagios 0 Dec 27 23:15 scheduledreport-nagiosadmin-dh9rRuXZ6uNA-1577459659-CPU - Executive Summary Report - Test.pdf
-rw-r--r-- 1 apache nagios 0 Dec 27 23:32 scheduledreport-nagiosadmin-SmnhH3WNJFCV-1577460722-test - dashboard.pdf
Re: Generating Reports
So, it seems you upgraded Nagios XI to version 5.6.9. This is fine, but I actually asked you to upgrade the Metrics component to version 1.3.4 by going to:Upgrade completed. Current version is now Nagios XI 5.6.9. However, we still encounter an issue with setting up a schedule report using "Metrics" it still resets to 4 hours.
Admin > Manage Components > Check for Updates > Install Updates
Can you verify that you are using the latest version of Metrics component?
After upgrading the Metrics component, add one of the metrics graph with a time period set to "Last Month" to a dashboard. Then, go to this dashbaord, and schedule the page. Use a report name that you haven't used before. Email this report and see if the graph shows last month as intended.
Note: Issues with notifications and wrong time periods in reports are unrelated. I would recommend that you troubleshoot notifications by following the steps, outlined in the KB article below:
https://support.nagios.com/kb/article/n ... ms-36.html
If you are still unable to fix the issue, please start a new thread on the forum as this is a different problem.
I don't know why this happened by it doesn't necessarily mean it's a problem. The apache user is added to the nagios group on your system, isn't it? What is the output of the command below?It seems the mode and group was changed. Kindly advise the next step.
Code: Select all
grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Generating Reports
Metrics Upgrade Completed. Metrics Component Version is now 1.3.4, and it seems working now. Thanks.
I checked the notification and email setting and it they are enabled and correct. I just run a test mail but I am unable to received it. Kindly advised the next step.
grep nag /etc/group
Code: Select all
[root@sgisgnagtstrm01 var]# grep nag /etc/group
nagios:x:1001:nagios,apache,snmptt
nagcmd:x:1002:nagios,apache,snmptt
Re: Generating Reports
That looks like an issue with your mail provider.451 Authentication failed: Maximum credits exceeded
Code: Select all
451 `Authentication failed: Maximum credits exceeded` There is a credit limit of emails per day enforced in error. [Contact support](https://support.sendgrid.com/hc/en-us) to remove that limit.
Code: Select all
https://sendgrid.com/docs/for-developers/sending-email/smtp-errors-and-troubleshooting/
-
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Generating Reports
Hello,
Looks like it's working now. We're able to generate and received the reports.
Thanks for the help.
Looks like it's working now. We're able to generate and received the reports.
Thanks for the help.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Generating Reports
Great!tssnagiosadmin wrote:Hello,
Looks like it's working now. We're able to generate and received the reports.
Thanks for the help.
Locking thread