PIA 2.9 Beta

Support for the Plugin Architecture

Moderators: Developers, Moderators

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

PIA 2.9 Beta

Post by TheWitness »

All,

I've been working through several issues with PIA 2.8 in conjunction with Cacti 0.8.7g. Here is a 'beta' of PIA 2.9.

I am still working through a 5 minute crontab with a 1 minute poller interval problem with some users, which from my perspective is resolved, but for some, likely PHP specific, reason is not for that user.

If you are using a 5 minute poller interval, this patch is stable.

TheWitness
Attachments
pia2.9-beta1.tgz
(175.35 KiB) Downloaded 1568 times
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?
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

For those who are using PIA 2.8 + 0.8.7g, where can we see which are the solved issues?
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is a ChangeLog:
-bug: PIA 1.x Plugins Can't Be Updated to PIA 2.x Versions
-bug#0001802: Plugins That Do Not Contain Keys Generate Errors
-bug#0001815: 1-minute with 5-minute crontab broken
-compat: Remove some deprecated calls
-compat: Sync with 0.8.7g patches
-feature: New Reskin Optional Setting
TheWitness
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

is there a patch available that patches a pia 2.8 to 2.9? I did some changes to the files to customize cacti and do not want to do it again (and also applied some patches from plugins...)

Torsten
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have not been too good at making patches in the past. Maybe Linegod can help us here. I'll PM him.

TheWitness
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?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

As soon as I get a little time here, I'll generate a patch.

Might have to wait til tonight.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

I went through the files and applied the changed lines manually:
I get an empty browser page as I click on the tabs graphs, nmidpdf, thold,manage. Camm, Mactrack are working.

The URL shows:
https://10.X.XX9/cacti/plugins/manage/m ... forceids=0

I reverted back to old structure in " top_header.php ":

Code: Select all

> <?php } elseif ($oper_mode == OPER_MODE_NOTABS) { api_plugin_hook_function('print_top_header'); } ?>
>         <tr style="height:2px;" bgcolor="#87B59E" class="noprint">
---
<         <tr height="5" bgcolor="#87B59E" class="noprint">
Now the allpages are displayed correct

Torsten
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Thanks for the note on this one.
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?
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

torstentfk wrote:I went through the files and applied the changed lines manually:
I get an empty browser page as I click on the tabs graphs, nmidpdf, thold,manage. Camm, Mactrack are working.

The URL shows:
https://10.X.XX9/cacti/plugins/manage/m ... forceids=0

I reverted back to old structure in " top_header.php ":

Code: Select all

> <?php } elseif ($oper_mode == OPER_MODE_NOTABS) { api_plugin_hook_function('print_top_header'); } ?>
>         <tr style="height:2px;" bgcolor="#87B59E" class="noprint">
---
<         <tr height="5" bgcolor="#87B59E" class="noprint">
Now the allpages are displayed correct

Torsten
I think you missed global_constants.php. Check it out.
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

checked - not missed, all changes applied.
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

See, it's working perfectly in my dev environment. So, we have to find out which plugin jacked it up.

TheWitness
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?
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The issue above was end user error in merging the PIA beta with their environment. However, there have been two 'minor' issues reported with the new beta. These will be addressed in release.

TheWitness
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?
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

TheWitness wrote:The issue above was end user error in merging the PIA beta with their environment. However, there have been two 'minor' issues reported with the new beta. These will be addressed in release.

TheWitness
A tip for us that also get the blank index.php page. Check your permissions! Default permissions in this pia2.9beta is 700, for me, they were supposed to be 644.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

problem with new PA + 0.87g

Post by zorrosam »

Hi,

i have a problem with the last PA 2.8 and also the new beta 2.9.

On the PA 2.4 ver in production on my server there was a variable that i have to set :

/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/

$config['url_path'] = '/cacti/';


this variable permit me to show correctly the plugin when i selected it in my cacti.

In the new ver this setting is disappear ... and for this reason all the paths are wrong and all the tables are not linked.

What can i do?

pleae help me

zorro
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In 2.9, the is a variable in config.php called $url_path. Set it there. You should not have to modify global.php for anything any longer.

Look at the attached config.php.dist.

TheWitness
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 0 guests