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: 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 ' \
GPRINTLAST:'Current\:%4.2lf' \
GPRINTAVERAGE:'Average\:%4.2lf' \
GPRINTMAX:'Maximum\:%4.2lf\n' \
AREA:b#EA8F007F:'5 Minute Average ':STACK \
GPRINTLAST:'Current\:%4.2lf' \
GPRINTAVERAGE:'Average\:%4.2lf' \
GPRINTMAX:'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
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
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!