no graphs after upgrade ubuntu server and new cacti 1.2.27

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

Moderators: Developers, Moderators

Post Reply
miraaj
Posts: 5
Joined: Thu Aug 22, 2024 5:13 pm

no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by miraaj »

Hope u r doing well
I installed an ubuntu server and upgrade it to 24.04 and installed on it cacti 1.27. with php 7.0, apache, and mariadb every thing works fine .But when I imported the old mysql database and rrd file, I got a new webpage to reset cacti and went through it smoothly but at the end , I have old graphs but the guy is not pulling new graphs, it s empty.

before importing old things it was pulling graphs on my test devices I added.
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by cigamit »

Any errors in the cacti log? Most likely its a permission issue on the rra folder and it can't create the new rrd files. You can attempt to use the Troubleshooter built in to Cacti. You will find it under Console > Troubleshooting > Data Sources.
miraaj
Posts: 5
Joined: Thu Aug 22, 2024 5:13 pm

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by miraaj »

below what is displayed in the cacti log
2024/08/23 08:30:40 - REPORTS generate_report, Problems sending Report 'MPLS QoS Video'. Problem with e-mail Subsystem Error is 'Could not instantiate mail function.'
2024/08/23 08:30:40 - CMDPHP WARNING Backtrace: (/poller_reports.php[160]:generate_report(), /lib/reports.php[591]:mailer(), /lib/functions.php[5099]:cacti_debug_backtrace())
2024/08/23 08:30:40 - MAILER WARNING: Mail failed via PHP Mail() Function from 'NMU <unvmc-fts-operations@un.org>', to 'amizero@un.org', cc '', bcc '', and took 0.01 seconds, Subject 'Cacti Report - QoS - Regions - Video Class', Error: Could not instantiate mail function.
2024/08/23 08:30:27 - REPORTS generate_report, Problems sending Report 'MPLS QoS Parent'. Problem with e-mail Subsystem Error is 'Could not instantiate mail function.'
2024/08/23 08:30:27 - CMDPHP WARNING Backtrace: (/poller_reports.php[160]:generate_report(), /lib/reports.php[591]:mailer(), /lib/functions.php[5099]:cacti_debug_backtrace())
2024/08/23 08:30:27 - MAILER WARNING: Mail failed via PHP Mail() Function from 'NMU <unvmc-fts-operations@un.org>', to 'amizero@un.org', cc '', bcc '', and took 0.01 seconds, Subject 'Cacti Report - QoS - Regions - Parent Class', Error: Could not instantiate mail function.
2024/08/23 08:30:14 - REPORTS generate_report, Problems sending Report 'MPLS LAN IPSLA'. Problem with e-mail Subsystem Error is 'Could not instantiate mail function.'
2024/08/23 08:30:14 - CMDPHP WARNING Backtrace: (/poller_reports.php[160]:generate_report(), /lib/reports.php[591]:mailer(), /lib/functions.php[5099]:cacti_debug_backtrace())
2024/08/23 08:30:14 - MAILER WARNING: Mail failed via PHP Mail() Function from 'NMU <unvmc-fts-operations@un.org>', to 'amizero@un.org', cc '', bcc '', and took 0.01 seconds, Subject 'Cacti Report - SLA', Error: Could not instantiate mail function.
2024/08/23 08:30:01 - SYSTEM MAINT STATS: Time:0.01
2024/08/23 08:30:00 - POLLER: Poller[1] PID[290700] WARNING: You have 13 Devices with bad SNMP Indexes. Devices: Device[2], Device[3], Device[4], Device[6], Device[8], Device[14], Device[19], Device[71], Device[110], Device[112], Device[113], Device[114], Device[115] totalling 107 Data Sources. Please Either Re-Index, Delete or Disable these Data Sources.
2024/08/23 08:30:00 - SYSTEM STATS: Time:299.1216 Method:cmd.php Processes:10 Threads:1 Hosts:92 HostsPerProcess:10 DataSources:3153 RRDsProcessed:0
2024/08/23 08:30:00 - SYSTEM WARNING: Primary Admin account does not have an email address! Unable to send administrative Email.
2024/08/23 08:30:00 - POLLER: Poller[1] PID[290700] Maximum runtime of 298 seconds exceeded. Exiting.
2024/08/23 08:26:46 - SYSTEM REPORTS STATS: Time:105.9229 Reports:11
miraaj
Posts: 5
Joined: Thu Aug 22, 2024 5:13 pm

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by miraaj »

when checking the graphs in debugging mode I am getting the errors below :
PRINT:a:AVERAGE:'Min\:%8.2lf ms' \
GPRINT:b:AVERAGE:'Avg\:%8.2lf ms' \
GPRINT:c:MAX:'Max\:%8.2lf ms' \
GPRINT:e:AVERAGE:'Dev\:%8.2lf ms\n' \
COMMENT:'Avg Latency\:' \
GPRINT:a:AVERAGE:'Min\:%8.2lf ms' \
GPRINT:b:AVERAGE:'Avg\:%8.2lf ms' \
GPRINT:c:MAX:'Max\:%8.2lf ms' \
GPRINT:e:AVERAGE:'Dev\:%8.2lf ms\n' \
LINE1:b#00BD27FF:
RRDtool Command lengths = 3145 characters.
RRDtool Says:
Fontconfig error: No writable cache directories
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by macan »

You have more problems:
1) Fontconfig error: No writable cache directories - check /path/to/cacti/cache/* permissions. Webserver needs write permisssion here.

2) SYSTEM WARNING: Primary Admin account does not have an email address - set correct email address in configuration -> users -> admin. You have be notified about problems

3) SYSTEM STATS: Time:299.1216 - your poller doesn't finish on time. Check forums, it has been here many times
Let the Cacti grow!
miraaj
Posts: 5
Joined: Thu Aug 22, 2024 5:13 pm

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by miraaj »

thk u dear for ur support below the permission in /cache, but still graphs are empty and still I have the same error in debug mode.

/var/www/html/cacti/cache$ ls -l
total 20
drwxr-xr-x 2 root www-data 4096 Aug 22 15:31 boost
-rw-r--r-- 1 root www-data 1586 Aug 21 11:20 index.php
drwxr-xr-x 2 root www-data 4096 Aug 22 15:31 mibcache
drwxr-xr-x 2 root www-data 4096 Aug 22 15:31 realtime
drwxr-xr-x 2 root www-data 4096 Aug 22 15:31 spikekill
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by macan »

show few SYSTEM STATS lines from cacti log
Let the Cacti grow!
miraaj
Posts: 5
Joined: Thu Aug 22, 2024 5:13 pm

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by miraaj »

2024/08/27 11:05:01 - SYSTEM MAINT STATS: Time:0.01
2024/08/27 11:05:01 - POLLER: Poller[1] PID[33443] WARNING: You have 13 Devices with bad SNMP Indexes. Devices: Device[2], Device[3], Device[4], Device[6], Device[8], Device[14], Device[19], Device[71], Device[110], Device[112], Device[113], Device[114], Device[115] totalling 107 Data Sources. Please Either Re-Index, Delete or Disable these Data Sources.
2024/08/27 11:05:01 - SYSTEM STATS: Time:299.2207 Method:cmd.php Processes:10 Threads:1 Hosts:92 HostsPerProcess:10 DataSources:1167 RRDsProcessed:0
2024/08/27 11:05:01 - CMDPHP WARNING Backtrace: (/poller.php[789]:admin_email(), /lib/functions.php[4705]:send_mail(), /lib/functions.php[4744]:mailer(), /lib/functions.php[5099]:cacti_debug_backtrace())
2024/08/27 11:05:01 - MAILER WARNING: Mail failed via PHP Mail() Function from 'NMU <unvmc-fts-operations@un.org>', to 'Administrator <amizero@un.org>', cc '', bcc '', and took 0.00 seconds, Subject 'Cacti System Warning', Error: Could not instantiate mail function.
2024/08/27 11:05:01 - POLLER: Poller[1] PID[33443] Maximum runtime of 298 seconds exceeded. Exiting.
2024/08/27 11:01:47 - SYSTEM REPORTS STATS: Time:105.3527 Reports:11
2024/08/27 11:01:47 - REPORTS generate_report, Problems sending Report 'MPLS Loss 1 week average'. Problem with e-mail Subsystem Error is 'Could not instantiate mail function.'
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: no graphs after upgrade ubuntu server and new cacti 1.2.27

Post by macan »

more errors:
1) SYSTEM STATS: Time:299.1216 - your poller doesn't finish on time. Check forums, it has been here many times. Until you fix this, all the graphs won't work
2) problem with email - set email correctly in Concole -> COnfiguration -> settings -> Mail/Reporting/DNS
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests