cacti does not show graphs

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

Moderators: Developers, Moderators

zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

cacti does not show graphs

Post by zapeador »

Hello, reinstall an operating system and some graphs do not work for me and others do, especially one of the ones I need is this one and it does not show data
I show you here the debug in case anyone sees an error

Code: Select all

Comando RRDtool:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-60' \
--pango-markup  \
--title='TITAN_5 - Memory Usage' \
--vertical-label='bytes' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--tabwidth '40' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2022-01-31 15\:52\:22 To 2022-02-01 15\:51\:22\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 1 --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 Zapi' \
DEF:a='/var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd':'mem_total':AVERAGE \
DEF:b='/var/www/html/cacti-1.2.16/rra/titan_5_mem_buffers_4913.rrd':'mem_buffers':AVERAGE \
DEF:c='/var/www/html/cacti-1.2.16/rra/titan_5_mem_cache_4914.rrd':'mem_cache':AVERAGE \
DEF:d='/var/www/html/cacti-1.2.16/rra/titan_5_mem_free_4915.rrd':'mem_free':AVERAGE \
DEF:e='/var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd':'mem_total':MAX \
DEF:f='/var/www/html/cacti-1.2.16/rra/titan_5_mem_buffers_4913.rrd':'mem_buffers':MAX \
DEF:g='/var/www/html/cacti-1.2.16/rra/titan_5_mem_cache_4914.rrd':'mem_cache':MAX \
DEF:h='/var/www/html/cacti-1.2.16/rra/titan_5_mem_free_4915.rrd':'mem_free':MAX \
CDEF:cdefa='a,1024,*' \
CDEF:cdefe='b,1024,*' \
CDEF:cdefi='c,1024,*' \
CDEF:cdefbc='d,1024,*' \
CDEF:cdefbg='e,1024,*' \
CDEF:cdefbh='f,1024,*' \
CDEF:cdefbi='g,1024,*' \
CDEF:cdefbj='h,1024,*' \
AREA:cdefa#15317E7F:'Memory Total  '  \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefe#FF57007F:'Memory Buffers'  \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefi#FFC73B7F:'Cache Memory  ':STACK \
GPRINT:cdefi:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefi:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefi:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefbc#8F005C7F:'Memory Free   ':STACK \
GPRINT:cdefbc:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefbc:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefbc:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefbg#151B8DFF:  \
LINE1:cdefbh#FF5700FF:  \
LINE1.00:cdefbi#FFC73BFF::STACK \
LINE1.00:cdefbj#8F005CFF::STACK
RRDtool Command lengths = 2373 charaters.
RRDtool dice:
OK
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

any idea where to look
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

is rrd file updated? Try this:
rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd
Are there actual data?
Let the Cacti grow!
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

macan wrote: Thu Feb 03, 2022 4:57 am is rrd file updated? Try this:
rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd
Are there actual data?
yes, there is real data, any risk in that command?
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

macan wrote: Thu Feb 03, 2022 4:57 am is rrd file updated? Try this:
rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd
Are there actual data?
execute the command but it does not make any changes, the graphs from the web are still empty
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

any idea where to go? I don't know if it's a matter of lis mib or rrd....
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

zapeador wrote: Thu Feb 03, 2022 10:30 am
macan wrote: Thu Feb 03, 2022 4:57 am is rrd file updated? Try this:
rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd
Are there actual data?
execute the command but it does not make any changes, the graphs from the web are still empty
Please show output of that command
Let the Cacti grow!
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

macan wrote: Mon Feb 07, 2022 2:41 am
zapeador wrote: Thu Feb 03, 2022 10:30 am
macan wrote: Thu Feb 03, 2022 4:57 am is rrd file updated? Try this:
rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd
Are there actual data?
execute the command but it does not make any changes, the graphs from the web are still empty
Please show output of that command
Sorry for the late reply but I was sick and couldn't check my email

here I pass the output of the command, after the last lines everything is repeated the same so I have cut it



rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd | more
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
<version>0003</version>
<step>300</step> <!-- Seconds -->
<lastupdate>1644826566</lastupdate> <!-- 2022-02-14 09:16:06 CET -->

<ds>
<name> mem_total </name>
<type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>0.0000000000e+00</min>
<max>NaN</max>

<!-- PDP Status -->
<last_ds>U</last_ds>
<value>NaN</value>
<unknown_sec> 66 </unknown_sec>
</ds>

<!-- Round Robin Archives -->
<rra>
<cf>AVERAGE</cf>
<pdp_per_row>1</pdp_per_row> <!-- 300 seconds -->

<params>
<xff>5.0000000000e-01</xff>
</params>
<cdp_prep>
<ds>
<primary_value>NaN</primary_value>
<secondary_value>NaN</secondary_value>
<value>NaN</value>
<unknown_datapoints>0</unknown_datapoints>
</ds>
</cdp_prep>
<database>
<!-- 2022-02-12 07:20:00 CET / 1644646800 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:25:00 CET / 1644647100 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:30:00 CET / 1644647400 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:35:00 CET / 1644647700 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:40:00 CET / 1644648000 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:45:00 CET / 1644648300 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:50:00 CET / 1644648600 --> <row><v>NaN</v></row>
<!-- 2022-02-12 07:55:00 CET / 1644648900 --> <row><v>NaN</v></row>
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

You haven't actual data. Try to enable debug device and post part of cacti log with debug
Let the Cacti grow!
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

macan wrote: Mon Feb 14, 2022 3:28 am You haven't actual data. Try to enable debug device and post part of cacti log with debug
Sorry for my lack of knowledge, how do I activate the debug?
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

management->device->choose device->right upper corner
Let the Cacti grow!
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

I already activated so in the graphical interface but it seems to me that the same thing comes out...

rrdtool dump /var/www/html/cacti-1.2.16/rra/titan_5_mem_total_4916.rrd | more
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
<version>0003</version>
<step>300</step> <!-- Seconds -->
<lastupdate>1644938767</lastupdate> <!-- 2022-02-15 16:26:07 CET -->

<ds>
<name> mem_total </name>
<type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>0.0000000000e+00</min>
<max>NaN</max>

<!-- PDP Status -->
<last_ds>U</last_ds>
<value>NaN</value>
<unknown_sec> 67 </unknown_sec>
</ds>

<!-- Round Robin Archives -->
<rra>
<cf>AVERAGE</cf>
<pdp_per_row>1</pdp_per_row> <!-- 300 seconds -->

<params>
<xff>5.0000000000e-01</xff>
</params>
<cdp_prep>
<ds>
<primary_value>NaN</primary_value>
<secondary_value>NaN</secondary_value>
<value>NaN</value>
<unknown_datapoints>0</unknown_datapoints>
</ds>
</cdp_prep>
<database>
<!-- 2022-02-13 14:30:00 CET / 1644759000 --> <row><v>NaN</v></row>
<!-- 2022-02-13 14:35:00 CET / 1644759300 --> <row><v>NaN</v></row>
<!-- 2022-02-13 14:40:00 CET / 1644759600 --> <row><v>NaN</v></row>
<!-- 2022-02-13 14:45:00 CET / 1644759900 --> <row><v>NaN</v></row>
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

Debug information are stored in log. We need relevant part of log.
Let the Cacti grow!
zapeador
Posts: 32
Joined: Fri Jan 14, 2022 10:13 am

Re: cacti does not show graphs

Post by zapeador »

macan wrote: Wed Feb 16, 2022 2:45 am Debug information are stored in log. We need relevant part of log.
And what can I look for to be relevant information? because in the log found in /var/www/html/cacti/log in the file cacti.log cat cacti.log | grep titan which is from the machine that I want information but it does not give me results

Any suggestion to provide more information?

Thanks
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti does not show graphs

Post by macan »

Your device has any ID, https:// cacti_url/host.php?action=edit&id=44

You can search in log:
grep "Device\[44\]" /var/www/html/cacti/log

Past here debug messages from one poller cycle
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests