Problems with old plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Moderators, Developers

Post Reply
Author
Message
isnochys
Posts: 8
Joined: Thu Dec 06, 2007 8:38 am

Problems with old plugin

#1 Post by isnochys » Fri Jan 23, 2009 5:22 am

Hi

I've written some plugins for cacti087b, plugin architecture pre 2.x.
Trying to install those plugins fails on PA 2.0.
It won't even show up under "Utilities" or in User Management / Real Permission.
I copied "setup.php" from a working plugin and changed parts fitting my plugin.
But nothing.
Are there any other changes made?

User avatar
Howie
Cacti Guru User
Posts: 5343
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

#2 Post by Howie » Fri Jan 23, 2009 5:35 am

How did you get PIA 1.x working on Cacti 0.87b?? :o
Weathermap 0.98 is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

isnochys
Posts: 8
Joined: Thu Dec 06, 2007 8:38 am

#3 Post by isnochys » Fri Jan 23, 2009 7:13 am

sorry, my mistake...
0.8.7a is the old version.

hmm, I see..
but the plugin should be visible under "utilities":
(setup.php)

Code: Select all

function licconf_config_arrays () {
        global $user_auth_realms, $user_auth_realm_filenames, $menu;
        $user_auth_realms[77]='Configure Licenses';
        $user_auth_realm_filenames['licconf.php'] = 77;
        $temp = $menu["Utilities"]['logout.php'];
        unset($menu["Utilities"]['logout.php']);
        $menu["Utilities"]['plugins/licconf.php'] = "LicConfig";
        $menu["Utilities"]['logout.php'] = $temp;
}
or should the realm number >100?

isnochys
Posts: 8
Joined: Thu Dec 06, 2007 8:38 am

#4 Post by isnochys » Tue Jan 27, 2009 3:22 am

Problem solved.

Just installed v0.8.7c and PA 2.2

Now it's working again..

lead
Posts: 3
Joined: Mon Feb 23, 2009 1:56 am
Contact:

#5 Post by lead » Mon Apr 20, 2009 9:58 pm

is the version have update?



___________________________
my website

Post Reply