Page 1 of 2
Graphs in Availability reports are too narow in web and pdf
Posted: Mon Dec 06, 2021 3:41 pm
by DonForigua
Hi i have the next issue
The graph view is too narrow in web and pdf, and the data at legend has a ...
Greetings
Re: Graphs in Availability reports are too narow in web and
Posted: Tue Dec 07, 2021 1:07 pm
by pbroste
Hello
@DonForiqua
Thanks for reaching out on this issue, understand that both the web and pdf availability reports are displaying narrow width. I take it that this condition is the same with a different browser? Also is it all graphs or a particular graph with stats that display narrow width?
Let find out from the Apache logs the width and height on the Availability Report:
Code: Select all
grep -Eir 'availability.php' /var/log/httpd/* | less -SR
Looking for on the line:
..........age+Host+Availability&subtitle=All+Hosts&data=42.866%2C48.567%2C8.567&export=0&height=286.467&width=400 HTTP/1.1" 1053
Please let us know the results and other details,
Perry
Re: Graphs in Availability reports are too narow in web and
Posted: Tue Dec 07, 2021 2:02 pm
by DonForigua
Hi dear pbroste
Here the exit
Code: Select all
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:29:01 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7c
32fd&dashtype=servicedata&startdate=&enddate=&reportperiod=last24hours&title=Average+Service+Availability&subtitle=All+Services&data=77.03643651295%2C6.7455987225381%2C10.487647715308%2C5.7
232983084158&export=0&height=286.466334&width=400.000334 HTTP/1.1" 1109
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:34:00 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7a
7f0f&dashtype=hostdata&startdate=&enddate=&reportperiod=last24hours&title=Average+Host+Availability&subtitle=All+Hosts&data=86.843854545455%2C13.156145454545%2C0&export=0&height=286.466334&
width=400.000334 HTTP/1.1" 1059
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:34:01 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7c
32fd&dashtype=servicedata&startdate=&enddate=&reportperiod=last24hours&title=Average+Service+Availability&subtitle=All+Services&data=77.03643651295%2C6.7455987225381%2C10.487647715308%2C5.7
232983084158&export=0&height=286.466334&width=400.000334 HTTP/1.1" 1109
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:39:00 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7a
7f0f&dashtype=hostdata&startdate=&enddate=&reportperiod=last24hours&title=Average+Host+Availability&subtitle=All+Hosts&data=86.843854545455%2C13.156145454545%2C0&export=0&height=286.466334&
width=400.000334 HTTP/1.1" 1059
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:39:01 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7c
32fd&dashtype=servicedata&startdate=&enddate=&reportperiod=last24hours&title=Average+Service+Availability&subtitle=All+Services&data=77.03643651295%2C6.7455987225381%2C10.487647715308%2C5.7
232983084158&export=0&height=286.466334&width=400.000334 HTTP/1.1" 1109
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:44:00 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7a
7f0f&dashtype=hostdata&startdate=&enddate=&reportperiod=last24hours&title=Average+Host+Availability&subtitle=All+Hosts&data=86.843854545455%2C13.156145454545%2C0&export=0&height=286.466334&
width=400.000334 HTTP/1.1" 1059
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:44:01 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7c
32fd&dashtype=servicedata&startdate=&enddate=&reportperiod=last24hours&title=Average+Service+Availability&subtitle=All+Services&data=77.03643651295%2C6.7455987225381%2C10.487647715308%2C5.7
232983084158&export=0&height=286.466334&width=400.000334 HTTP/1.1" 1109
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:49:00 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7a
7f0f&dashtype=hostdata&startdate=&enddate=&reportperiod=last24hours&title=Average+Host+Availability&subtitle=All+Hosts&data=86.843854545455%2C13.156145454545%2C0&export=0&height=286.466334&
width=400.000334 HTTP/1.1" 1059
/var/log/httpd/ssl_request_log-20211205:[04/Dec/2021:20:49:01 -0500] 186.28.165.236 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/reports/availability.php?mode=getchart&divId=61ac08f7c
32fd&dashtype=servicedata&startdate=&enddate=&reportperiod=last24hours&title=Average+Service+Availability&subtitle=All+Services&data=77.03643651295%2C6.7455987225381%2C10.487647715308%2C5.7
232983084158&export=0&height=286.466334&width=400.000334 HTTP/1.1" 1109
Re: Graphs in Availability reports are too narow in web and
Posted: Tue Dec 07, 2021 2:08 pm
by DonForigua
Hi
For example the perf data has been cut by a suspensive dots ...
Re: Graphs in Availability reports are too narow in web and
Posted: Tue Dec 07, 2021 2:25 pm
by DonForigua
Hi
Another detail is when the pdf has page break, the graph has been cutting in two parts
Re: Graphs in Availability reports are too narow in web and
Posted: Wed Dec 08, 2021 10:01 am
by pbroste
Hello
@DonForiqua
Let's take a look at your System Profile so we can see what is going on.
To send us your system profile.
- Login to the Nagios XI GUI using a web browser.
- Click the "Admin" > "System Profile" Menu
- Click the "Download Profile" button
- Save the profile.zip file and send via Private Message
Thanks,
Perry
Re: Graphs in Availability reports are too narow in web and
Posted: Fri Dec 10, 2021 8:20 am
by DonForigua
Greetings
I sent the profile.
Re: Graphs in Availability reports are too narow in web and
Posted: Fri Dec 10, 2021 5:28 pm
by pbroste
Hello
@DonForiqua
Thanks for sending over the System Profile, 'rrdcached' errors are appearing in the '/var/log/messages' and want to have you verify the status:
Code: Select all
systemctl status rrdcached #review the status
Also restart the 'npcd.service as well:
Code: Select all
systemctl restart npcd #review the status
Then watch the '/var/log/messages' to verify if receive further log messages on 'rrdcached'.
Let's also find out what version 'rrdcached' and 'rddtool'
Please let us the results, on what you find on the given commands, also want to circle back and find out when did this happen and what if any changes to the environment were made?
Thanks,
Perry
Re: Graphs in Availability reports are too narow in web and
Posted: Mon Dec 13, 2021 8:43 am
by DonForigua
Hi
The exit of first command
Code: Select all
● rrdcached.service - LSB: start and stop rrdtool caching daemon
Loaded: loaded (/etc/rc.d/init.d/rrdcached; bad; vendor preset: disabled)
Active: active (running) since Thu 2021-10-21 22:50:30 -05; 1 months 21 days ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/rrdcached.service
└─3971 /usr/bin/rrdcached -p /var/rrdtool/rrdcached/rrdcached.pid -s nagios -m 0660 -l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -w 9...
Dec 13 07:50:30 napoles.telmexla.net.co rrdcached[3971]: started new journal /tmp/rrd.journal.1639399830.297481
Dec 13 07:50:30 napoles.telmexla.net.co rrdcached[3971]: removing old journal /tmp/rrd.journal.1639392630.297563
Dec 13 07:50:30 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/HCU0015_HCU0015/Di...399086)
Dec 13 07:59:25 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/WFM0667_SDPTPINS06...399626)
Dec 13 07:59:55 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICAC...399473)
Dec 13 08:10:19 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/HCU0015_HCU0015/Di...400041)
Dec 13 08:17:06 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/WFM0667_SDPTPINS06...400699)
Dec 13 08:19:54 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICAC...400682)
Dec 13 08:29:37 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/HCU0015_HCU0015/Di...401468)
Dec 13 08:35:30 napoles.telmexla.net.co rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/WFM0667_SDPTPINS06...401766)
Hint: Some lines were ellipsized, use -l to show in full.
second
Code: Select all
● npcd.service - SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/
Loaded: loaded (/etc/rc.d/init.d/npcd; bad; vendor preset: disabled)
Active: active (running) since Mon 2021-12-13 08:37:31 -05; 14s ago
Docs: man:systemd-sysv-generator(8)
Process: 25060 ExecStop=/etc/rc.d/init.d/npcd stop (code=exited, status=0/SUCCESS)
Process: 25080 ExecStart=/etc/rc.d/init.d/npcd start (code=exited, status=0/SUCCESS)
Main PID: 25085 (npcd)
CGroup: /system.slice/npcd.service
└─25085 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
Dec 13 08:37:31 napoles.telmexla.net.co systemd[1]: Starting SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/...
Dec 13 08:37:31 napoles.telmexla.net.co npcd[25080]: NPCD started.
Dec 13 08:37:31 napoles.telmexla.net.co systemd[1]: Failed to parse PID from file /usr/local/nagiosxi/var/subsys/npcd.pid: Invalid argument
Dec 13 08:37:31 napoles.telmexla.net.co systemd[1]: Started SYSV: Visit the Website at http://sourceforge.net/projects/pnp4nagios/.
3th after restart
Code: Select all
Dec 13 08:40:12 napoles rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd: expected 4 data source readings (got 2) from 1639401871)
4th
Code: Select all
RRDCacheD 1.4.4
Copyright (C) 2008,2009 Florian octo Forster and Kevin Brintnall
5th
thx for your help
Re: Graphs in Availability reports are too narow in web and
Posted: Mon Dec 13, 2021 6:50 pm
by ssax
The sizing of them is because of how it is written, the cutoffs are because of wkthmltopdf and the way it renders the pages.
There isn't currently a way to change them, we would need to submit a feature request to development to have them change the way it currently works.
For this one:
Code: Select all
vDec 13 08:40:12 napoles rrdcached[3971]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd: expected 4 data source readings (got 2) from 1639401871)
It's saying that this file expected 4 data sources but only received 2:
Code: Select all
/usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd
You can rename the file and it should recreate the RRD with the proper number of metrics on it on the next check and start graphing shortly thereafter (about 5 to 15 minutes):
Code: Select all
mv /usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd /usr/local/nagios/share/perfdata/BRI0037_SVRAPLICACIONES/_HOST_.rrd.old