Problem when updating from cacti version 1.2.25 to 1.2.27

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
oelagy
Posts: 4
Joined: Mon Jun 10, 2024 6:31 am

Problem when updating from cacti version 1.2.25 to 1.2.27

Post by oelagy »

Hello, I am new to cacti, I have a problem with my cacti, after updating from version 1.2.25 to 1.2.27, the graphics do not paint after the update. I have been checking what polled devices are active. The only thing is that the graph doesn't look good to me. :(


2024-06-10 10:49:40 - INSTALL: always: Repairing Automation Rules
2024-06-10 10:49:40 - INSTALL: always: Plantilla de automatización de asignación para la plantilla de dispositivo 'Net-SNMP Device'
2024-06-10 10:49:40 - INSTALL: always: Plantilla de automatización de asignación para la plantilla de dispositivo 'Windows Device'
2024-06-10 10:49:40 - INSTALL: always: Plantilla de automatización de asignación para la plantilla de dispositivo 'Cisco Router'
2024-06-10 10:49:40 - INSTALL: always: ProcesoUPGRADE finalizado para v1.2.27
2024-06-10 10:49:40 - INSTALL-SYNC: always: Found 0 poller(s) to sync
2024-06-10 10:49:40 - INSTALL-SYNC: always: Recolector(es) de datos no encontrados al intentar sincronizarción
2024-06-10 10:49:40 - INSTALL: always: La instalación se inició a las 2024-06-10 07:19:26, se completó el 2024-06-10 08:49:40
2024-06-10 12:05:29 - AUTH LOGIN: User 'admin' authenticated
2024-06-10 12:17:03 - AUTH LOGIN: User 'admin' authenticated
2024-06-10 12:41:58 - AUTH LOGIN: User 'admin' authenticated
2024-06-10 13:09:42 - AUTH LOGIN FAILED: Local Login Failed for user 'admin' from IP Address '192.168.20.52'.
2024-06-10 13:10:19 - AUTH LOGIN: User 'admin' authenticated
2024-06-10 13:12:20 - WEBUI NOTE: Poller Cache repopulated by user admin
2024-06-10 13:16:51 - ERROR PHP WARNING: file(/usr/share/cacti/CHANGELOG): failed to open stream: No such file or directory in file: /usr/share/cacti/utilities.php on line: 830
2024-06-10 13:16:51 - CMDPHP PHP ERROR WARNING Backtrace: (/utilities.php[80]:utilities_view_tech(), /utilities.php[830]:file(), CactiErrorHandler())
2024-06-10 13:16:51 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /usr/share/cacti/utilities.php on line: 832
2024-06-10 13:16:51 - CMDPHP PHP ERROR WARNING Backtrace: (/utilities.php[80]:utilities_view_tech(), /utilities.php[832]:CactiErrorHandler())
2024-06-10 13:16:54 - ERROR PHP WARNING: file(/usr/share/cacti/CHANGELOG): failed to open stream: No such file or directory in file: /usr/share/cacti/utilities.php on line: 830
2024-06-10 13:16:54 - CMDPHP PHP ERROR WARNING Backtrace: (/utilities.php[80]:utilities_view_tech(), /utilities.php[830]:file(), CactiErrorHandler())
2024-06-10 13:16:54 - ERROR PHP WARNING: Invalid argument supplied for foreach() in file: /usr/share/cacti/utilities.php on line: 832
2024-06-10 13:16:54 - CMDPHP PHP ERROR WARNING Backtrace: (/utilities.php[80]:utilities_view_tech(), /utilities.php[832]:CactiErrorHandler())
2024-06-10 17:10:42 - AUTH LOGIN: User 'admin' authenticated



https://ibb.co/TB1QD8v




Can someone help me with this problem: thank you very much
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by TheWitness »

How did you upgrade? The fact that the changelog is not found means that you messed up something like copied the data into the wrong folder.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
oelagy
Posts: 4
Joined: Mon Jun 10, 2024 6:31 am

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by oelagy »

hello,

After performing an update to the Centos7 system I automatically skip the cacti update. After following all the steps in the last window it showed me the permissions error for the log dictionary. so I have executed:
chown -R apache.apache /usr/share/cacti/log/

I still didn't finish the update steps and I was looking at a forum and I also had to disable selinux.

also add the following groups, usermod -g apache root; usermod -g root apache (I don't know if this affects anything??)

Thank you so much,
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by TheWitness »

I normally do something like:

Code: Select all

cd /var/www/html/Cacti
chown -R apache:apache *
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
oelagy
Posts: 4
Joined: Mon Jun 10, 2024 6:31 am

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by oelagy »

Hello,
The permissions are correct:

[root@urano html]# ls -la /usr/share/cacti/
total 2352
drwxr-xr-x. 11 root root 4096 jun 10 08:10 .
drwxr-xr-x. 103 root root 4096 jun 10 17:29 ..
-rw-r--r--. 1 apache apache 5669 may 12 21:29 about.php
-rw-r--r--. 1 apache apache 60883 may 12 21:29 aggregate_graphs.php
-rw-r--r--. 1 apache apache 25710 may 12 21:29 aggregate_templates.php
-rw-r--r--. 1 apache apache 16823 may 12 21:29 auth_changepassword.php
-rw-r--r--. 1 apache apache 15211 may 12 21:29 auth_login.php
-rw-r--r--. 1 apache apache 19161 may 12 21:29 auth_profile.php
-rw-r--r--. 1 apache apache 24203 may 12 21:29 automation_devices.php
-rw-r--r--. 1 apache apache 36742 may 12 21:29 automation_graph_rules.php
-rw-r--r--. 1 apache apache 42639 may 12 21:29 automation_networks.php
-rw-r--r--. 1 apache apache 31747 may 12 21:29 automation_snmp.php
-rw-r--r--. 1 apache apache 18785 may 12 21:29 automation_templates.php
-rw-r--r--. 1 apache apache 38723 may 12 21:29 automation_tree_rules.php
drwxr-xr-x. 3 root root 37 sep 23 2021 backups
lrwxrwxrwx. 1 root root 20 jun 10 08:09 cache -> /var/lib/cacti/cache
-rwxr-xr-x. 1 apache apache 7218 may 12 21:29 cactid.php
-rw-r--r--. 1 apache apache 29149 may 12 21:29 cdef.php
lrwxrwxrwx. 1 root root 18 jun 10 08:09 cli -> /var/lib/cacti/cli
-rw-r--r--. 1 apache apache 2227 may 12 21:29 clog.php
-rw-r--r--. 1 apache apache 2233 may 12 21:29 clog_user.php
-rwxr-xr-x. 1 apache apache 36016 may 12 21:29 cmd.php
-rw-r--r--. 1 apache apache 8686 may 12 21:29 cmd_realtime.php
-rw-r--r--. 1 apache apache 24350 may 12 21:29 color.php
-rw-r--r--. 1 apache apache 13259 may 12 21:29 color_templates_items.php
-rw-r--r--. 1 apache apache 24849 may 12 21:29 color_templates.php
-rw-r--r--. 1 apache apache 36453 may 12 21:29 data_debug.php
-rw-r--r--. 1 apache apache 32966 may 12 21:29 data_input.php
-rw-r--r--. 1 apache apache 51249 may 12 21:29 data_queries.php
-rw-r--r--. 1 apache apache 37372 may 12 21:29 data_source_profiles.php
-rw-r--r--. 1 apache apache 67636 may 12 21:29 data_sources.php
-rw-r--r--. 1 apache apache 48361 may 12 21:29 data_templates.php
drwxr-xr-x. 2 root root 130 jun 10 08:09 formats
-rw-r--r--. 1 apache apache 14319 may 12 21:29 gprint_presets.php
-rw-r--r--. 1 apache apache 6615 may 12 21:29 graph_image.php
-rw-r--r--. 1 apache apache 8889 may 12 21:29 graph_json.php
-rw-r--r--. 1 apache apache 23638 may 12 21:29 graph.php
-rw-r--r--. 1 apache apache 17520 may 12 21:29 graph_realtime.php
-rw-r--r--. 1 apache apache 26995 may 12 21:29 graphs_items.php
-rw-r--r--. 1 apache apache 36333 may 12 21:29 graphs_new.php
-rw-r--r--. 1 apache apache 90148 may 12 21:29 graphs.php
-rw-r--r--. 1 apache apache 9586 may 12 21:29 graph_templates_inputs.php
-rw-r--r--. 1 apache apache 30755 may 12 21:29 graph_templates_items.php
-rw-r--r--. 1 apache apache 41400 may 12 21:29 graph_templates.php
-rw-r--r--. 1 apache apache 32392 may 12 21:29 graph_view.php
-rw-r--r--. 1 apache apache 12466 may 12 21:29 graph_xport.php
-rw-r--r--. 1 apache apache 4340 may 12 21:29 help.php
-rw-r--r--. 1 apache apache 69397 may 12 21:29 host.php
-rw-r--r--. 1 apache apache 32934 may 12 21:29 host_templates.php
drwxr-xr-x. 2 root root 4096 jun 10 08:09 images
drwxr-xr-x. 8 root root 4096 jun 10 08:09 include
-rw-r--r--. 1 apache apache 5721 may 12 21:29 index.php
drwxr-xr-x. 4 root root 235 jun 10 08:09 install
drwxr-xr-x. 2 root root 4096 jun 10 08:09 lib
-rw-r--r--. 1 apache apache 3662 may 12 21:29 link.php
-rw-r--r--. 1 apache apache 21899 may 12 21:29 links.php
drwxr-xr-x. 4 root root 92 jun 10 08:09 locales
lrwxrwxrwx. 1 apache apache 15 jun 10 08:09 log -> /var/log/cacti/
-rw-r--r--. 1 apache apache 3862 may 12 21:29 logout.php
-rw-r--r--. 1 apache apache 38351 may 12 21:29 managers.php
drwxr-xr-x. 2 root root 107 jun 10 08:09 mibs
-rw-r--r--. 1 apache apache 30823 may 12 21:29 package_import.php
-rw-r--r--. 1 apache apache 3410 may 12 21:29 permission_denied.php
drwxr-xr-x. 7 root root 97 jun 10 08:09 plugins
-rw-r--r--. 1 apache apache 28356 may 12 21:29 plugins.php
-rwxr-xr-x. 1 apache apache 38625 may 12 21:29 poller_automation.php
-rwxr-xr-x. 1 apache apache 43767 may 12 21:29 poller_boost.php
-rwxr-xr-x. 1 apache apache 13208 may 12 21:29 poller_commands.php
-rwxr-xr-x. 1 apache apache 11637 may 12 21:29 poller_dsstats.php
-rwxr-xr-x. 1 apache apache 22110 may 12 21:29 poller_maintenance.php
-rwxr-xr-x. 1 apache apache 40177 may 12 21:29 poller.php
-rwxr-xr-x. 1 apache apache 9959 may 12 21:29 poller_realtime.php
-rwxr-xr-x. 1 apache apache 8830 may 12 21:29 poller_recovery.php
-rwxr-xr-x. 1 apache apache 5722 may 12 21:29 poller_reports.php
-rwxr-xr-x. 1 apache apache 8459 may 12 21:29 poller_rrdcheck.php
-rw-r--r--. 1 apache apache 39399 may 12 21:29 pollers.php
-rwxr-xr-x. 1 apache apache 8200 may 12 21:29 poller_spikekill.php
-rw-r--r--. 1 apache apache 14793 may 12 21:29 remote_agent.php
-rw-r--r--. 1 apache apache 5510 may 12 21:29 reports_admin.php
-rw-r--r--. 1 apache apache 5411 may 12 21:29 reports_user.php
lrwxrwxrwx. 1 root root 23 jun 10 08:09 resource -> /var/lib/cacti/resource
lrwxrwxrwx. 1 root root 18 jun 10 08:09 rra -> /var/lib/cacti/rra
-rw-r--r--. 1 apache apache 9748 may 12 21:29 rrdcheck.php
-rw-r--r--. 1 apache apache 20183 may 12 21:29 rrdcleaner.php
lrwxrwxrwx. 1 root root 22 jun 10 08:09 scripts -> /var/lib/cacti/scripts
-rw-r--r--. 1 apache apache 14769 may 12 21:29 script_server.php
-rw-r--r--. 1 apache apache 1728 may 12 21:29 service_check.php
-rw-r--r--. 1 apache apache 45091 may 12 21:29 settings.php
-rw-r--r--. 1 apache apache 21306 may 12 21:29 sites.php
-rw-r--r--. 1 apache apache 3749 may 12 21:29 snmpagent_mibcachechild.php
-rw-r--r--. 1 apache apache 2436 may 12 21:29 snmpagent_mibcache.php
-rwxr-xr-x. 1 apache apache 5532 may 12 21:29 snmpagent_persist.php
-rw-r--r--. 1 apache apache 3987 may 12 21:29 spikekill.php
-rw-r--r--. 1 apache apache 6597 may 12 21:29 templates_export.php
-rw-r--r--. 1 apache apache 15979 may 12 21:29 templates_import.php
-rw-r--r--. 1 apache apache 69099 may 12 21:29 tree.php
-rw-r--r--. 1 apache apache 100287 may 12 21:29 user_admin.php
-rw-r--r--. 1 apache apache 30460 may 12 21:29 user_domains.php
-rw-r--r--. 1 apache apache 89786 may 12 21:29 user_group_admin.php
-rw-r--r--. 1 apache apache 114678 may 12 21:29 utilities.php
-rw-r--r--. 1 apache apache 29080 may 12 21:29 vdef.php


What can I do to get my cactus back? with the previous version or with this one

thank you
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by TheWitness »

Did you install both from rpm/package? What's in your Cacti log? If you installed from package, have you opened a ticket with the package provider?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
oelagy
Posts: 4
Joined: Mon Jun 10, 2024 6:31 am

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by oelagy »

Yes correct, I have installed both packages automatically, when performing the update:

Plugins loaded:fastestmirror
ID | Command line | Day and time | Action(s) | Modify
-------------------------------------------------- -----------------------------
51 | install nano | 2024-06-11 14:00 | Install | 1
49 | update | 2024-06-10 08:07 | E, I, U | 39 EE


These are the update logs:

2024-06-10 10:44:47 - INSTALL: always: About to import package #1 'ACME.xml.gz'.
2024-06-10 10:44:51 - INSTALL: always: Import of package #1 'ACME.xml.gz' into profile '1' was successful
2024-06-10 10:44:51 - INSTALL: always: About to import package #2 'AKCP_Device.xml.gz'.
2024-06-10 10:44:54 - INSTALL: always: Import of package #2 'AKCP_Device.xml.gz' into profile '1' succeeded
2024-06-10 10:44:54 - INSTALL: always: About to import package #3 'Apache_Webserver.xml.gz'.
2024-06-10 10:44:58 - INSTALL: always: Import of package #3 'Apache_Webserver.xml.gz' into profile '1' succeeded
2024-06-10 10:44:58 - INSTALL: always: About to import package #4 'APC_InfraStruXure_InRow_CRAC.xml.gz'.
2024-06-10 10:45:07 - INSTALL: always: Import of package #4 'APC_InfraStruXure_InRow_CRAC.xml.gz' into profile '1' was successful
2024-06-10 10:45:07 - INSTALL: always: About to import package #5 'APC_InfraStruXure_PDU.xml.gz'.
2024-06-10 10:45:14 - INSTALL: always: Import of package #5 'APC_InfraStruXure_PDU.xml.gz' into profile '1' was successful
2024-06-10 10:45:14 - INSTALL: always: About to import package #6 'Aruba_Instant_AP_Cluster.xml.gz'.
2024-06-10 10:45:16 - INSTALL: always: Import of package #6 'Aruba_Instant_AP_Cluster.xml.gz' into profile '1' was successful
2024-06-10 10:45:17 - INSTALL: always: About to import package #7 'Aruba_OSCX_switch_6x00.xml.gz'.
2024-06-10 10:45:26 - INSTALL: always: Import of package #7 'Aruba_OSCX_switch_6x00.xml.gz' into profile '1' was successful
2024-06-10 10:45:26 - INSTALL: always: About to import package #8 'Aruba_Wireless_Controller.xml.gz'.
2024-06-10 10:45:44 - INSTALL: always: Import of package #8 'Aruba_Wireless_Controller.xml.gz' into profile '1' was successful
2024-06-10 10:45:44 - INSTALL: always: About to import package #9 'ArubaOS_switch.xml.gz'.
2024-06-10 10:45:53 - INSTALL: always: Import of package #9 'ArubaOS_switch.xml.gz' into profile '1' was successful
2024-06-10 10:45:53 - INSTALL: always: About to import package #10 'BayTech_PDU.xml.gz'.
2024-06-10 10:46:11 - INSTALL: always: Import of package #10 'BayTech_PDU.xml.gz' into profile '1' was successful
2024-06-10 10:46:11 - INSTALL: always: About to import package #11 'Cacti_Stats.xml.gz'.
2024-06-10 10:46:24 - INSTALL: always: Import of package #11 'Cacti_Stats.xml.gz' into profile '1' was successful
2024-06-10 10:46:24 - INSTALL: always: About to import package #12 'Cisco_Router.xml.gz'.
2024-06-10 10:46:34 - INSTALL: always: Import of package #12 'Cisco_Router.xml.gz' into profile '1' was successful
2024-06-10 10:46:34 - INSTALL: always: About to import package #13 'Citrix_NetScaler_VPX.xml.gz'.
2024-06-10 10:47:09 - INSTALL: always: Import of package #13 'Citrix_NetScaler_VPX.xml.gz' into profile '1' was successful
2024-06-10 10:47:09 - INSTALL: always: About to import package #14 'Clearpass_policy_manager.xml.gz'.
2024-06-10 10:47:18 - INSTALL: always: Import of package #14 'Clearpass_policy_manager.xml.gz' into profile '1' was successful
2024-06-10 10:47:18 - INSTALL: always: About to import package #15 'ESXi_Device.xml.gz'.
2024-06-10 10:47:29 - INSTALL: always: Import of package #15 'ESXi_Device.xml.gz' into profile '1' succeeded
2024-06-10 10:47:29 - INSTALL: always: About to import package #16 'Fortigate.xml.gz'.
2024-06-10 10:47:40 - INSTALL: always: Import of package #16 'Fortigate.xml.gz' into profile '1' was successful
2024-06-10 10:47:40 - INSTALL: always: About to import package #17 'Generic_SNMP_Device.xml.gz'.
2024-06-10 10:47:48 - INSTALL: always: Import of package #17 'Generic_SNMP_Device.xml.gz' into profile '1' was successful
2024-06-10 10:47:48 - INSTALL: always: About to import package #18 'HPE_iLO.xml.gz'.
2024-06-10 10:47:59 - INSTALL: always: Import of package #18 'HPE_iLO.xml.gz' into profile '1' succeeded
2024-06-10 10:48:00 - INSTALL: always: About to import package #19 'Local_Linux_Machine.xml.gz'.
2024-06-10 10:48:02 - INSTALL: always: Import of package #19 'Local_Linux_Machine.xml.gz' in profile '1' was done with
Enviar comentarios
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem when updating from cacti version 1.2.25 to 1.2.27

Post by TheWitness »

So essentially your chron tab or your cacti service are not running that's your solution get them running.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests