Graphs appearing blank on Cacti 1.2.20

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
getkdb
Posts: 2
Joined: Mon Jul 04, 2022 9:11 am

Graphs appearing blank on Cacti 1.2.20

Post by getkdb »

Good day,

I am trying to get some assistance with my cacti instance. I have a server on RHEL 8 with Cacti. See details below.

Cacti version: 1.2.20
PHP version: 7.5
Database: MariaDB
OS: Red Hat Enterprise Linux release 8.5 (Ootpa)

For some reason all my graphs including local linux machine are all blank with NAN values. See example below:
Blank Load Average graph
Blank Load Average graph
2022-07-04 10_25_39-Blank Load graph.png (109.85 KiB) Viewed 556 times
I have checked the snmp walk logs and confirmed that the it is successfully working and updating.

Graph Debugging
Additionally I have enabled debugging on the graphs and RRDtool appears to be updating successfully. See graph debugging for the graph above.


RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup \
--title='Local Linux Machine - Load Average' \
--vertical-label='run que length' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--units-exponent=0 \
--tabwidth '40' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
COMMENT:"From 2022-07-03 10\:29\:04 To 2022-07-04 10\:24\:04\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border $rrdborder --font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_1min':AVERAGE \
DEF:b='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_5min':AVERAGE \
DEF:c='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_15min':AVERAGE \
DEF:d='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_1min':MAX \
DEF:e='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_5min':MAX \
DEF:f='/usr/share/cacti/rra/local_linux_machine_load_1min_2.rrd':'load_15min':MAX \
CDEF:cdefbc='TIME,1656944884,GT,a,a,UN,0,a,IF,IF,TIME,1656944884,GT,b,b,UN,0,b,IF,IF,TIME,1656944884,GT,c,c,UN,0,c,IF,IF,+,+' \
AREA:a#EACC007F:'1 Minute Average ' \
GPRINT:a:LAST:'Current\:%4.2lf' \
GPRINT:a:AVERAGE:'Average\:%4.2lf' \
GPRINT:a:MAX:'Maximum\:%4.2lf\n' \
AREA:b#EA8F007F:'5 Minute Average ':STACK \
GPRINT:b:LAST:'Current\:%4.2lf' \
GPRINT:b:AVERAGE:'Average\:%4.2lf' \
GPRINT:b:MAX:'Maximum\:%4.2lf\n' \
AREA:c#FF00007F:'15 Minute Average':STACK \
GPRINT:c:LAST:'Current\:%4.2lf' \
GPRINT:c:AVERAGE:'Average\:%4.2lf' \
GPRINT:c:MAX:'Maximum\:%4.2lf\n' \
LINE1:cdefbc#000000FF:'\n' \
LINE1:d#EACC00FF: \
LINE1.00:e#EA8F00FF::STACK \
LINE1.00:f#FF0000FF::STACK

RRDtool Command lengths = 1966 charaters.

RRDtool Says:

OK


Check RRD File Ownership
Below is a snippet of the permissions for the rra folder:

Code: Select all

 ls -l ../../usr/share/cacti/rra/
total 265040
-rw-r--r--. 1 apache apache 1967912 Jun 15 16:51 local_linux_machine_load_1min_2.rrd
-rw-r--r--. 1 apache apache  657432 Jun 15 16:51 local_linux_machine_mem_buffers_4.rrd
-rw-r--r--. 1 apache apache  657432 Jun 15 16:51 local_linux_machine_mem_swap_5.rrd
-rw-r--r--. 1 apache apache  657432 Jun 15 16:51 local_linux_machine_proc_1.rrd
-rw-r--r--. 1 apache apache  657432 Jun 15 16:51 local_linux_machine_users_3.rrd
Check RRD File Numbers
ds[proc] .min and .max see to be OK

Code: Select all

rrdtool info local_linux_machine_proc_1.rrd | grep ds
ds[proc].index = 0
ds[proc].type = "GAUGE"
ds[proc].minimal_heartbeat = 600
ds[proc].min = 0.0000000000e+00
ds[proc].max = NaN
ds[proc].last_ds = "353"
ds[proc].value = NaN
ds[proc].unknown_sec = 3
Cronjob

Code: Select all

 
 sudo vi /etc/cron.d/cacti
 */5 * * * *    apache  usr/bin/php  usr/share/cacti/poller.php > /dev/null 2>&1
 


I used the following method to install the cacti instance: https://www.tecmint.com/install-cacti-n ... os-fedora/


Can someone assist me in helping to figure out how i can get the graphs to populate please? Not sure what I may be doing wrong.


Thanks!
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graphs appearing blank on Cacti 1.2.20

Post by Osiris »

Why not use the cactid service? You failed to show the cacti.log output. If running spine, make sure it's actually working by running standalone.

The fact that the rrdfiles has not been updated in a few weeks is a dead giveaway. Also, try and reindex the devices. Cacti will stop monitoring a data source if it's index disappears, becomes orphaned.
Before history, there was a paradise, now dust.
getkdb
Posts: 2
Joined: Mon Jul 04, 2022 9:11 am

Re: Graphs appearing blank on Cacti 1.2.20

Post by getkdb »

Hi Osiris,

Thank you for the response. Following your guidance and after some tethering I found the issue.

The issue was the 'apache' user which I created for the Cron job was not passing the PAM Access. As such I needed to allow access for the cron job. Since then the poller is working and graphs are being updated.

Resolution for my issue can be found at: https://support.oneidentity.com/safegua ... ess-module


Thanks again for the guidance!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests