Page 1 of 1

blank graphs report on email

Posted: Wed Mar 17, 2021 1:58 am
by sacom01
hi team,
in Home -> performance Graphs, the report show in screen ok but when we send it on email, full blank graphs.
Report file size is 35KB. No error log found in /var/log/httpd/error_log file.

Re: blank graphs report on email

Posted: Wed Mar 17, 2021 3:47 pm
by lmiltchev
Try the two different options available under the Performance Settings page (Admin > System Config > Performance Settings > PDF/JPG Exporting):

1. Use patched jQuery 1.x to render PDF/JPG reports = selected
2. Use patched jQuery 1.x to render PDF/JPG reports = not selected (check-box is cleared)

When you use the second option, increase the Default Delay value, and click on Updated Settings. You may try different values, depending on the size of your report.

Let us know if this helped.

Re: blank graphs report on email

Posted: Wed Mar 17, 2021 10:10 pm
by sacom01
hi lmiltchev,
i think option 2 work fine, but have another problem. When i set Schedule page for send the mail. it's not stable, some time show all graphs, sometime show blank. The error report have file size smaller than the normal report. pls see the pictures.
If i use One time report and send immediately, it will fine, no error.

Error_log show like this when i set/edit a report schedule:

[Thu Mar 18 10:04:20.890948 2021] [:error] [pid 2456] [client 192.168.xxx.x:56855] PHP Warning: file_put_contents(/usr/local/nagiosxi/var/scheduledreporting.log): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/scheduledreporting/scheduledreporting.inc.php on line 727, referer: http://192.168.xxx.xx/nagiosxi/includes ... a41df4b361
[Thu Mar 18 10:04:20.904669 2021] [:error] [pid 2456] [client 192.168.xxx.x:56855] PHP Warning: file_put_contents(/usr/local/nagiosxi/var/scheduledreporting.log): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/scheduledreporting/scheduledreporting.inc.php on line 727, referer: http://192.168.xxx.xx/nagiosxi/includes ... a41df4b361
[Thu Mar 18 10:04:36.056382 2021] [:error] [pid 1476] [client 192.168.xxx.x:56878] PHP Warning: file_put_contents(/usr/local/nagiosxi/var/scheduledreporting.log): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/scheduledreporting/scheduledreporting.inc.php on line 727, referer: http://192.168.xxx.xx/nagiosxi/includes ... a41df4b361
[Thu Mar 18 10:04:36.069693 2021] [:error] [pid 1476] [client 192.168.xxx.x:56878] PHP Warning: file_put_contents(/usr/local/nagiosxi/var/scheduledreporting.log): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/scheduledreporting/scheduledreporting.inc.php on line 727, referer: http://192.168.xxx.xx/nagiosxi/includes ... a41df4b361

[root@nagiosxi01 var]#less scheduledreporting.log
Daily report

You can directly access this report at:
http://192.168.xxx.xx/nagiosxi/?xiwindo ... 6column%3D

Access Nagios XI at:
http://192.168.xxx.xx/nagiosxi/
)

[Thu, 18 Mar 2021 10:31:03 +0700] EMAIL: Array
(
[to] => [email protected]
[subject] => nagiosls02 Performance Graphs
[attachment] => Array
(
[0] => Array
(
[0] => /usr/local/nagiosxi/tmp/scheduledreport-hangltt-k9th3ciSGOLc-1616038261-nagiosls02 Performance Graphs.pdf
[1] => 1616038261-nagiosls02 Performance Graphs.pdf
)

)

[message] => This scheduled report was automatically generated by Nagios XI and sent to you as requested by hangltt.

nagiosls02 Performance Graphs

You can directly access this report at:
http://192.168.xxx.xx/nagiosxi/?xiwindo ... 6column%3D

Access Nagios XI at:
http://192.168.xxx.xx/nagiosxi/
)

[Thu, 18 Mar 2021 10:31:18 +0700] DEBUG: [03-18-2021 10:31:03] Message sent! (method=smtp;host=192.168.xx.xxx;port=25;security=none), Referer: includes/components/scheduledreporting > Scheduled Report
[Thu, 18 Mar 2021 10:31:18 +0700] DEBUG: [03-18-2021 10:31:02] Message sent! (method=smtp;host=192.168.xx.xxx;port=25;security=none), Referer: includes/components/scheduledreporting > Scheduled Report


I have tried change the permission of files but not effect :

[root@nagiosxi01 scheduledreporting]# ls -l | grep schedule
-rwxrwxrwx. 1 nagios nagios 26100 Mar 4 17:53 scheduledreporting.inc.php

[root@nagiosxi01 var]# ls -l scheduledreporting.log
-rwxrwxrwx. 1 nagios nagios 8649 Mar 18 10:23 scheduledreporting.log

Re: blank graphs report on email

Posted: Thu Mar 18, 2021 9:53 am
by lmiltchev
This is very strange. Have you tried increasing the Default Delay value even more to see if this is going to help?

We will try to recreate the issue in house and get back to you. Meanwhile, can you run the following commands and show the output?

Code: Select all

ls -lad /usr/local/nagiosxi /usr/local/nagiosxi/var
grep nag /etc/group
chage -l apache

Re: blank graphs report on email

Posted: Thu Mar 18, 2021 9:10 pm
by sacom01
i have already changed Default Delay from 300 to 500 and 700 but not effect.

[hangltt@nagiosxi01 ~]$ ls -lad /usr/local/nagiosxi /usr/local/nagiosxi/var
drwxr-xr-x. 10 root nagios 4096 Feb 19 21:08 /usr/local/nagiosxi
drwxrwxr-x. 7 nagios nagios 4096 Mar 19 09:05 /usr/local/nagiosxi/var

[hangltt@nagiosxi01 ~]$ grep nag /etc/group
nagcmd:x:1000:nagios,apache
nagios:x:1001:nagios,snmptt,apache

[hangltt@nagiosxi01 ~]$ chage -l apache
Last password change : Feb 19, 2021
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1

Re: blank graphs report on email

Posted: Fri Mar 19, 2021 8:49 am
by lmiltchev
The permissions look fine. I don't see any issues with them.
i have already changed Default Delay from 300 to 500 and 700 but not effect.
Try increasing the value higher, e.g. 5000 or even more.

Also, increase your resource limits in the php.ini file (if you haven't done this already):

https://support.nagios.com/kb/article/n ... e-611.html

If this is not helping, please open a support ticket via our support center here:

https://support.nagios.com/tickets/

and include your latest profile (Admin > System Config > System Profile > Download Profile).

Re: blank graphs report on email

Posted: Mon Mar 22, 2021 8:58 pm
by sacom01
Try increasing the value higher, e.g. 5000 or even more. --> not effect as well bro. I sent a ticket already.

Pls help me a second question :
Can we set Performance Graphs work on Host Group? We have more than 300 servers and we can not read 300 email for all hosts.
I need it work on host group, and it have all services inside this.

Re: blank graphs report on email

Posted: Tue Mar 23, 2021 2:05 pm
by lmiltchev
A support ticket has been open via our Support Center. We will continue our communication via our ticketing system. I am locking this topic.