cacti cycle plugin not working/showing

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
sharingan08
Posts: 5
Joined: Wed Jul 07, 2010 4:31 am

cacti cycle plugin not working/showing

Post by sharingan08 »

I recently installed cycle 0.7 which i got from http://cactiusers.org/downloads/ but i don't see any tabs and it's not showing in usermanagement > realm permissions nor listed under plugins management.

I tried installing Login Mod - v1.0 and Update - v0.4 and both worked fine. I already added at config.php the $plugins[] = 'cycle';
under $plugins = array() with $url_path = "/cacti/";

I'm using Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8

What could it be that i'm missing? :(

Code: Select all

[Wed Jul 14 12:26:25 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:26:26 2010] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Wed Jul 14 12:26:26 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:26:26 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:26:30 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:30 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:30 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:30 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:32 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:32 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:26:35 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:26:35 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:26:37 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:26:37 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:26:40 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:26:40 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:26:42 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:26:42 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:26:44 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/user_admin.php
[Wed Jul 14 12:26:44 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/user_admin.php
[Wed Jul 14 12:26:47 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:26:47 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:26:52 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=graph_perms_edit&id=1
[Wed Jul 14 12:26:52 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=graph_perms_edit&id=1
[Wed Jul 14 12:27:14 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:27:14 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:27:15 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:27:15 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/user_admin.php?action=user_edit&tab=user_realms_edit&id=1
[Wed Jul 14 12:27:18 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/graph_view.php?action=tree&tree_id=3&leaf_id=10&select_first=true
[Wed Jul 14 12:27:18 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/graph_view.php?action=tree&tree_id=3&leaf_id=10&select_first=true
[Wed Jul 14 12:28:59 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:28:59 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/index.php
[Wed Jul 14 12:29:03 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:29:03 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:29:06 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php?tab=authentication
[Wed Jul 14 12:29:06 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php?tab=authentication
[Wed Jul 14 12:29:08 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php?tab=export
[Wed Jul 14 12:29:08 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php?tab=export
[Wed Jul 14 12:29:11 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:29:11 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:29:13 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php?tab=export
[Wed Jul 14 12:29:13 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php?tab=export
[Wed Jul 14 12:29:15 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:29:15 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:30:16 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46
[Wed Jul 14 12:30:16 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101
[Wed Jul 14 12:31:08 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:31:08 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php
[Wed Jul 14 12:31:12 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:12 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:17 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:31:17 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:31:19 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:19 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:19 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:19 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:20 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:20 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:20 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:20 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/utilities.php?action=view_logfile
[Wed Jul 14 12:31:22 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:31:22 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/plugins.php
[Wed Jul 14 12:31:24 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:31:24 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php
[Wed Jul 14 12:31:27 2010] [error] [client 10.101.1.97] PHP Notice:  Undefined variable: config in /var/www/html/cacti/include/config.php on line 46, referer: http://10.101.4.24/cacti/settings.php?tab=export
[Wed Jul 14 12:31:27 2010] [error] [client 10.101.1.97] PHP Notice:  Constant URL_PATH already defined in /var/www/html/cacti/include/global.php on line 101, referer: http://10.101.4.24/cacti/settings.php?tab=export
[/code]
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Take a look at this thread: http://forums.cacti.net/viewtopic.php?p=194191

PIA was restructured for 2.8.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
sharingan08
Posts: 5
Joined: Wed Jul 07, 2010 4:31 am

Post by sharingan08 »

hi linegod, i tried ommiting from config.php:

/*
$url_path = '/cacti/';
define('URL_PATH', $url_path);
*/

and apache logs no errors. However, still no signs of cycle plugin.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please do the following:

1) uncomment only the '$url_path'. That is needed.
2) test the attached plugins.php. This file goes in the cacti webroot
3) Don't forget to backup the original

Post findings.

TheWitness
Attachments
plugins.tgz
(5.76 KiB) Downloaded 287 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
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Larry: Is there a bug on this?

Much better if replies where going there, instead of hunting in the forums.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'm going to open shortly. Just committed fixes. We need to issue a patch.

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 »

OK. You do know next conference call I am going to stress the 'bug report => patch => direct users to bug report => release patch' cycle. Again :)
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In the mean time, can you generate a patch file for SVN #'s 58 and 59 and post it to the bug reports 1802 and 1801.

We also need either a "General" Category for the Plugins Project, or a "Plugin Management" Category under Cacti, which I prefer. I filed under "HTML/CSS" for now.

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 »

Added 'Plugin Architecture' to Cacti Plugins dropdown. Moved and updated 1801 & 1802

Added patches to bugs.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
sharingan08
Posts: 5
Joined: Wed Jul 07, 2010 4:31 am

Post by sharingan08 »

@TheWitness - it worked perfectly, installed it under plugin management. Thanks a lot! Hope I can contribute too someday
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests