Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

Hello,
I had my cacti working with 0.8.7i, pooling 70 devices, and graph all OK.

But I decide I need plugins, so I download the 0.8.7i-PIA, move the old cacti to cacti.old
unzip the new version, rename the directory to cacti, copy the RRA,Log and config.php
adapt the config.php for the plug arch
insert all info I can find on cacti.sql into the DB (plugin_config, plugin_hooks, plugin_realms, plugin_db_change

So now my cacti is still working fine, but I can't see the plugins option under user management,
so I think something is wrong, how can I find what and how to fix it ?

So far I have downloaded the mactrack plugin.

any help is welcome.
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
cigamit
Developer
Posts: 3372
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by cigamit »

Check your realm permissions, to make sure you have access to the Plugin Management page.
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

cigamit wrote:Check your realm permissions, to make sure you have access to the Plugin Management page.

Sorry I don't understand can you explain a little bit more:
Which realm ?
How can I check ?

If you talk about the right on the user management part, well that's my problem I don't see plugin Management
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
cigamit
Developer
Posts: 3372
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by cigamit »

When you were grabbing stuff out of the cacti.sql, did you happen to grab the 2 inserts for plugin_hooks?

Run this SQL query.
SELECT * FROM `plugin_hooks`;
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

yes I did:
mysql> SELECT * FROM `plugin_hooks`;
+----+----------+----------------------+------+------------------------------+--------+
| id | name | hook | file | function | status |
+----+----------+----------------------+------+------------------------------+--------+
| 1 | internal | config_arrays | | plugin_c
onfig_arrays | 1 |
| 2 | internal | draw_navigation_text | | p
lugin_draw_navigation_text | 1 |
+----+----------+----------------------+------+------------------------------+--------+
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
wdennis
Posts: 10
Joined: Tue Dec 02, 2008 5:11 pm
Location: Princeton, NJ

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by wdennis »

Having the same issue, different path to get there however... see post http://forums.cacti.net/viewtopic.php?f=21&t=46061 for details.

Thanks,
Will
wdennis
Posts: 10
Joined: Tue Dec 02, 2008 5:11 pm
Location: Princeton, NJ

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by wdennis »

Look in User Management at the user's Realm Perm's, and see if "Plugin Management" is unchecked -- if so, just check the checkbox and save. This worked for me...
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

I don't see the plugin management under the user setting. that's th whole point !!
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

So the problem is on the Database, here is what I've done to find that:

Drop the actual cacti DB (after 3 different backup )
Create a empty DB
insert the script cacti.sql ( mysql -p cacti < cacti.sql)

then I can see the plugin management for every user, but then I loose all my device.

I try to do some export with PhpMyAdmin but I can't find the right way to export the data and import it again without loosing the plugin management option.

Anyone have a good information how I can dump my DB, create a new working one then import my data, without broking the plugin management option ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 714
Joined: Wed Dec 07, 2011 9:19 am

Re: Help upgrade from 0.8.7i to 0.8.7i-PIA on debian

Post by Rno »

Ok I find the problem !!!

On the table plugin_hooks, there was a new line after the first letter (cut and past of the plugin part of the script cacti.sql) and that where causing cacti not be able to interpret the function of the 2 entry

Removing the new line solve my problem
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests