Cacti 1.2.17 is not graphing

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

Moderators: Developers, Moderators

velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear all,
I installed a fresh copy of 1.2.17 on an Ubuntu Linux server. My cacti not graphing and I am seeing these errors on the logs. In fact, I am using SPINE which I had already installed successfully so I am wondering why I am getting CMD as poller in my log. The roller_boost.php is own by the www-data which is the owner of the cacti folder. Please can you help?

2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_3_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_2_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_4_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_1_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0157 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-05-28 08:30:36 - SYSTEM STATS: Time:2.2877 Method:spine Processes:1 Threads:1 Hosts:26 HostsPerProcess:26 DataSources:2 RRDsProcessed:0
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_3_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_2_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_4_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_1_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti 1.2.17 is not graphing

Post by macan »

velbon17006 wrote: Fri May 28, 2021 8:34 pm Dear all,
I installed a fresh copy of 1.2.17 on an Ubuntu Linux server. My cacti not graphing and I am seeing these errors on the logs. In fact, I am using SPINE which I had already installed successfully so I am wondering why I am getting CMD as poller in my log. The roller_boost.php is own by the www-data which is the owner of the cacti folder. Please can you help?

2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_3_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_2_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_4_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:30:37 - ERROR PHP WARNING: unlink(modern_lgi_1_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:30:37 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0157 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
2021-05-28 08:30:36 - SYSTEM STATS: Time:2.2877 Method:spine Processes:1 Threads:1 Hosts:26 HostsPerProcess:26 DataSources:2 RRDsProcessed:0
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_3_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_2_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_4_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti/poller_boost.php on line: 1114
2021-05-28 08:29:37 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_boost.php[209]:boost_purge_cached_png_files(), /poller_boost.php[1114]:unlink(), CactiErrorHandler())
2021-05-28 08:29:37 - ERROR PHP WARNING: unlink(modern_lgi_1_rrai_0_tsi_7_height_200_width_700.png): Permission denied in file: /var/www/html/cacti
Please show
ls -al /var/www/html/cacti/cache
ls -al /var/www/html/cacti/cache | head

It seems that boost folder has incorrect rights. Add write rights for web server and for the user who is running poller to this directory. For example I have in my installation:
drwxrwxr-x 2 cacti www 1333248 28 5 10:59 boost. (your web server user is www-data).
Let the Cacti grow!
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

gerald@ict:~$ ls -al /var/www/html/cacti/cache/
total 28
drwxr-xr-x 6 www-data www-data 4096 May 26 15:23 .
drwxr-xr-x 18 www-data www-data 4096 May 26 16:31 ..
drwxr-xr-x 2 www-data www-data 4096 May 28 07:51 boost
-rw-r--r-- 1 www-data www-data 40 May 26 15:23 index.php
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 mibcache
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 realtime
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 spikekill

gerald@ict:~$ ls -al /var/www/html/cacti/cache | head
total 28
drwxr-xr-x 6 www-data www-data 4096 May 26 15:23 .
drwxr-xr-x 18 www-data www-data 4096 May 26 16:31 ..
drwxr-xr-x 2 www-data www-data 4096 May 28 07:51 boost
-rw-r--r-- 1 www-data www-data 40 May 26 15:23 index.php
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 mibcache
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 realtime
drwxr-xr-x 2 www-data www-data 4096 May 26 16:30 spikekill
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

I notice that if i tried to change owner of the directory:
gerald@ict:$ sudo chown cacti:www-data /var/www/html/cacti
chown: invalid user: ‘cacti:www-data’

But if I do:
gerald@ict:$ mysql -u cacti -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 6246
Server version: 10.5.10-MariaDB-0ubuntu0.21.04.1 Ubuntu 21.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

This means cacti user exist in the cacti database but not in the Linux server. Is this issue why it poller is not working except I ran it manually?
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear all,
Please can someone help me with this issue.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti 1.2.17 is not graphing

Post by cigamit »

Your misconstruing linux users vs mysql users, which are completely different.

The first thing I would do is go into Cacti, and goto Console > Settings > Performance > Enable Image Caching and disable it and see if that resolves your issue. Otherwise you are going to have to figure out your permission issue.
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear Cigamit,
I tried the steps you sent but nothing happenings . I am not receiving any errors now but it is still not graphing.
Attachments
Screen Shot 2021-06-03 at 2.48.17 PM.png
Screen Shot 2021-06-03 at 2.48.17 PM.png (235.53 KiB) Viewed 3990 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti 1.2.17 is not graphing

Post by cigamit »

Your not giving us much to go off of. Try the Data Source Troubleshooter (under Troubleshooting on the Console). Run a Check on one of the data sources giving you trouble.
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear Cigamit,
Please find the attached result as instructed.
Attachments
Screen Shot 2021-06-04 at 7.12.53 AM.png
Screen Shot 2021-06-04 at 7.12.53 AM.png (307.01 KiB) Viewed 3952 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.2.17 is not graphing

Post by netniV »

If you pick a single graph and then run it in realtime, does that work?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear netNiv,
It doesn't work and the graph is showing permanent "-nan"
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear all,

Debugging one of the graphs;

RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-60' \
--pango-markup \
--title='Firewall - Traffic - ECOWAN' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2021-06-06 10\:41\:19 To 2021-06-07 10\:40\:19\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 Cacti®' \
DEF:a='/var/www/html/cacti/rra/9/54.rrd':'traffic_in':MAX \
DEF:b='/var/www/html/cacti/rra/9/54.rrd':'traffic_in':AVERAGE \
DEF:c='/var/www/html/cacti/rra/9/54.rrd':'traffic_out':MAX \
DEF:d='/var/www/html/cacti/rra/9/54.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefb='b,8,*' \
CDEF:cdeff='c,8,*' \
CDEF:cdefg='d,8,*' \
LINE1:cdefa#00CF00FF: \
AREA:cdefb#00CF007F:'Inbound ' \
GPRINT:cdefb:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefb:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefb:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdeff#002A97FF: \
AREA:cdefg#002A977F:'Outbound' \
GPRINT:cdefg:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefg:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefg:MAX:'Maximum\:%8.2lf %s\n'

RRDtool Command lengths = 1405 charaters.

RRDtool Says:

OK
Attachments
Screen Shot 2021-06-07 at 10.45.06 AM.png
Screen Shot 2021-06-07 at 10.45.06 AM.png (618.99 KiB) Viewed 3769 times
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear all,
Please help me with solution.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti 1.2.17 is not graphing

Post by macan »

velbon17006 wrote: Mon Jun 07, 2021 10:36 pm Dear all,
Please help me with solution.
All graphs have -Nan? Cacti stats graph or other than traffic graphs are broken too?

2021-05-28 08:30:36 - SYSTEM STATS: Time:2.2877 Method:spine Processes:1 Threads:1 Hosts:26 HostsPerProcess:26 DataSources:2 RRDsProcessed:0
Method is spine. But only two Datasources? That's quite a few.

Try to switch to cmd poller instead of spine. Enable one device debug and show cacti debug messages from log.
Let the Cacti grow!
velbon17006
Posts: 29
Joined: Mon Jun 12, 2017 6:38 am

Re: Cacti 1.2.17 is not graphing

Post by velbon17006 »

Dear Macan,
I had been working for it so long now that some of the graphs are working now but the others are not working. I will try to do as you say and send you the log file.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests