Page 1 of 1

RRD Performance Graphs not populating.

Posted: Tue Oct 06, 2020 7:17 am
by danniiffxi
Hello

I recently moved over to CentOS 7 from CentOS 6 and I have only just noticed that the performance graphs are no longer working. I have tried the usual fixes. for instance if graphs ever stopped on our CentOS 6 this following code used to fix the issue.

Code: Select all

service rrdcached stop
rm -f /usr/local/nagiosxi/rrdcache/*
service rrdcached start
However since moving to CentOS 7 i get this when trying to restart the rrd service.

Code: Select all

[root@nagxi01 nagiosxi]# systemctl restart rrdcached.service
Failed to restart rrdcached.service: Unit not found.
I even checked to see if RRD was installed, which it is.

Code: Select all

[root@nagxi01 nagiosxi]# yum install rrdtool
Loaded plugins: fastestmirror
Determining fastest mirrors
Package matching rrdtool-1.4.8-9.el7.x86_64 already installed. Checking for update.
Nothing to do
Perfdata is still populating, here is an example of what i see in the Advanced tab on GUI

Code: Select all

Performance Data:	'C: free'=1.99717G;2;0.8789;0;29.99039 'C: free %'=7%;7;3;0;100
No files in the rrdcache folder

Code: Select all

[root@nagxi01 rrdcache]# ls -l
total 0
There is file movement in the Perfdata spool folder

Code: Select all

[root@nagxi01 nagiosxi]# ls /usr/local/nagios/var/spool/perfdata/ | wc -l
8
[root@nagxi01 nagiosxi]# ls /usr/local/nagios/var/spool/perfdata/ | wc -l
6
Yet I get nothing on the actual graphs
Image

As you can see from this screenshot, nothing appear to be wrong.
Image

This info may also help.

Code: Select all

[root@nagxi01 ~]# tail -25 /usr/local/nagios/var/perfdata.log
2020-10-06 16:52:16 [8002] [2] Template is check_xi_host_ping.php
2020-10-06 16:52:16 [8002] [2] data2rrd called
2020-10-06 16:52:16 [8002] [2] RRDs::update --daemon=unix:/var/rrdtool/rrdcached/rrdcached.sock /usr/local/nagios/share/perfdata/HANS02-01/_HOST_.rrd 1601999531:0.159:0:0.299:0.107
2020-10-06 16:52:16 [8002] [1] RRDs::update ERROR Unable to connect to rrdcached: No such file or directory
2020-10-06 16:52:16 [8002] [2] Processing Line 239
2020-10-06 16:52:16 [8002] [2] Datatype set to 'HOSTPERFDATA'
2020-10-06 16:52:16 [8002] [1] Found Performance Data for CORP03 / _HOST_ (rta=0.133ms;3000.000;6000.000;0; pl=0%;80;100;0;100 rtmax=0.258ms;;;; rtmin=0.084ms;;;;)
2020-10-06 16:52:16 [8002] [2] No Custom Template found for check_xi_host_ping (/usr/local/nagios/etc/pnp/check_commands/check_xi_host_ping.cfg)
2020-10-06 16:52:16 [8002] [2] RRD Datatype is GAUGE
2020-10-06 16:52:16 [8002] [2] Template is check_xi_host_ping.php
2020-10-06 16:52:16 [8002] [2] No Custom Template found for check_xi_host_ping (/usr/local/nagios/etc/pnp/check_commands/check_xi_host_ping.cfg)
2020-10-06 16:52:16 [8002] [2] RRD Datatype is GAUGE
2020-10-06 16:52:16 [8002] [2] Template is check_xi_host_ping.php
2020-10-06 16:52:16 [8002] [2] No Custom Template found for check_xi_host_ping (/usr/local/nagios/etc/pnp/check_commands/check_xi_host_ping.cfg)
2020-10-06 16:52:16 [8002] [2] RRD Datatype is GAUGE
2020-10-06 16:52:16 [8002] [2] Template is check_xi_host_ping.php
2020-10-06 16:52:16 [8002] [2] No Custom Template found for check_xi_host_ping (/usr/local/nagios/etc/pnp/check_commands/check_xi_host_ping.cfg)
2020-10-06 16:52:16 [8002] [2] RRD Datatype is GAUGE
2020-10-06 16:52:16 [8002] [2] Template is check_xi_host_ping.php
2020-10-06 16:52:16 [8002] [2] data2rrd called
2020-10-06 16:52:16 [8002] [2] RRDs::update --daemon=unix:/var/rrdtool/rrdcached/rrdcached.sock /usr/local/nagios/share/perfdata/CORP03/_HOST_.rrd 1601999531:0.133:0:0.258:0.084
2020-10-06 16:52:16 [8002] [1] RRDs::update ERROR Unable to connect to rrdcached: No such file or directory
2020-10-06 16:52:16 [8002] [1] 239 Lines processed
2020-10-06 16:52:16 [8002] [1] /usr/local/nagios/var/spool/perfdata//host-perfdata.1601999531-PID-8002 deleted
2020-10-06 16:52:16 [8002] [1] PNP exiting (runtime 0.184933s) ...

Code: Select all

[root@nagxi01 ~]# tail -25 /usr/local/nagios/var/npcd.log
[10-06-2020 16:53:10] NPCD: File 'service-perfdata.1561995007-PID-8830' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:10] NPCD: No more files to process... waiting for 6 seconds
[10-06-2020 16:53:16] NPCD: File 'host-perfdata.1561995007-PID-8829' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: File 'host-perfdata.1561995210-PID-7554' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: File 'host-perfdata.1561995225-PID-7546' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: File 'host-perfdata.1561995271-PID-7555' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: File 'host-perfdata.1561995292-PID-7549' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: File 'service-perfdata.1561995007-PID-8830' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:16] NPCD: No more files to process... waiting for 6 seconds
[10-06-2020 16:53:22] NPCD: File 'host-perfdata.1561995007-PID-8829' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: File 'host-perfdata.1561995210-PID-7554' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: File 'host-perfdata.1561995225-PID-7546' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: File 'host-perfdata.1561995271-PID-7555' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: File 'host-perfdata.1561995292-PID-7549' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: File 'service-perfdata.1561995007-PID-8830' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:22] NPCD: Processing file 'host-perfdata.1601999591'
[10-06-2020 16:53:22] NPCD: Processing file 'service-perfdata.1601999592'
[10-06-2020 16:53:22] NPCD: No more files to process... waiting for 6 seconds
[10-06-2020 16:53:28] NPCD: File 'host-perfdata.1561995007-PID-8829' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: File 'host-perfdata.1561995210-PID-7554' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: File 'host-perfdata.1561995225-PID-7546' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: File 'host-perfdata.1561995271-PID-7555' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: File 'host-perfdata.1561995292-PID-7549' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: File 'service-perfdata.1561995007-PID-8830' is an already in process PNP file. Leaving it untouched.
[10-06-2020 16:53:28] NPCD: No more files to process... waiting for 6 seconds
At risk of solving my own issue, do you advise that I follow this guide? bearing mind that RRD was working jut fine before I migrated from Centos 6 to 7

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

As when i check this part

Code: Select all

Verifying The Setup
The rrdcached configuration options are defined in the /etc/sysconfig/rrdcached file on RHEL,
CentOS, and Oracle Linux systems. On Debian and Ubuntu, they are defined in the
/etc/default/rrdcached file. 
I get this reply

Code: Select all

[root@nagxi01 var]# cd /etc/sysconfig/rrdcached
-bash: cd: /etc/sysconfig/rrdcached: No such file or directory
You have new mail in /var/spool/mail/root

Re: RRD Performance Graphs not populating.

Posted: Tue Oct 06, 2020 12:59 pm
by danniiffxi
Yep that fixed it. you can lock this one please.

Thanks for the help *he says sarcastically* lol

Re: RRD Performance Graphs not populating.

Posted: Tue Oct 06, 2020 4:19 pm
by benjaminsmith
Hi,
Yep that fixed it. you can lock this one please.
Glad we could help ;)

We'll mark this one as solved.

Thanks!
Benjamin