Problems with old plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

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

Problems with old plugin

Post by isnochys »

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: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

How did you get PIA 1.x working on Cacti 0.87b?? :o
Weathermap 0.98a 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

Post by isnochys »

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

Post by isnochys »

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:

Post by lead »

is the version have update?



___________________________
my website
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests