Intro page/console homepage

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

Version 1.8.1 released
- Better and faster panels
- Better auto/manual reload
- Copy text from panels
- add few new test (empty poller_output, incorect spine version, ...)
- better themes support
- a lot of bugs fixed
Let the Cacti grow!
chipmonk
Posts: 18
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

Post by chipmonk »

Running intropage 1.1.8 on Cacti 1.1.38 (Dark Theme) on Debian Stretch with php7.3 and 2839 data sources.

My Poller Stats, CPU Utilization, Trends, Hosts, Thresholds, Data Source and Device Templates panels do not populate, their boxes remain empty, no pie charts, no text, the other standard panels look good as well as any graphs I add.

My apache2 error log say repeatedly:

PHP Notice: Undefined variable: log_Size_text in /usr/share/cacti/site/plugins/intropage/include/data.php on line 102

Any additional info needed will be provided.

Thanks,
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Intro page/console homepage

Post by netniV »

lowercase the S to fix that. I would say update to the latest intropage on develop but that now requires Cacti 1.2 or above.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
chipmonk
Posts: 18
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

Post by chipmonk »

Correction, I listed my intropage version as 1.1.8, that is not correct. I am running intropage 1.8.1.

Changing "log_Size_text" to "log_size_text" on line 102 in data.php fixed the error. Thanks!

My panels listed above remain empty, am I missing a package maybe?

Thanks for your support!
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

chipmonk wrote:Correction, I listed my intropage version as 1.1.8, that is not correct. I am running intropage 1.8.1.

Changing "log_Size_text" to "log_size_text" on line 102 in data.php fixed the error. Thanks!

My panels listed above remain empty, am I missing a package maybe?

Thanks for your support!
Please have a look to
https://github.com/xmacan/plugin_intropage/issues/45

Maybe you have the same problem - incorrect version of chart.js
Let the Cacti grow!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Intro page/console homepage

Post by netniV »

The latest development sources work fine but you need to be on 1.2 to use them. The master branch won't cut it if I remember rightly.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
chipmonk
Posts: 18
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

Post by chipmonk »

The new Chart.js did the trick! Fantastic! Thanks!
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

chipmonk wrote:The new Chart.js did the trick! Fantastic! Thanks!
great. Please try to use github issue for new report bug report, questions, ...

https://github.com/xmacan/plugin_intropage/issues/
Let the Cacti grow!
fcrooks
Posts: 2
Joined: Wed Apr 03, 2019 3:15 pm

Re: Intro page/console homepage

Post by fcrooks »

Hi all.

I have a new Cacti install (Cacti Version: 0.8.8h, Plugin Architecture Version: 3.1) on Centos 7.4

I also have installed the php Weathermap plugin and it is working great.

I am trying to install the intropage plugin.

1) I have downloaded the tar.gz file
2) I have unzipped the contents of that file into the plugins directory. It creates a directory called plugin_intropage-1.8.0
3) I have changed the ownership of the directory and all files and subdirectories to cacti.apache (just like the weathermap plugin).
4) Permissions are set the same as weathermap

Up until this point, I can still see the weathermap plugin in the cacti Plugin Manager page. However, I can't see the intropage plugin.

5) I rename the directory to intropage

At this point, it causes the contents of the entire Plugin Management page to disappear.

Could this plugin be incompatible with PIA 3.1?
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

fcrooks wrote:Hi all.

I have a new Cacti install (Cacti Version: 0.8.8h, Plugin Architecture Version: 3.1) on Centos 7.4

I also have installed the php Weathermap plugin and it is working great.

I am trying to install the intropage plugin.

1) I have downloaded the tar.gz file
2) I have unzipped the contents of that file into the plugins directory. It creates a directory called plugin_intropage-1.8.0
3) I have changed the ownership of the directory and all files and subdirectories to cacti.apache (just like the weathermap plugin).
4) Permissions are set the same as weathermap

Up until this point, I can still see the weathermap plugin in the cacti Plugin Manager page. However, I can't see the intropage plugin.

5) I rename the directory to intropage

At this point, it causes the contents of the entire Plugin Management page to disappear.

Could this plugin be incompatible with PIA 3.1?
You are using very old Cacti version! Actual is 1.2.x. On the first page is this forum is old version for 0.8x (Version <= 0.85 works fine in Cacti 0.8.x, 0.91+ is for cacti >= 1.0X!).
Let the Cacti grow!
fcrooks
Posts: 2
Joined: Wed Apr 03, 2019 3:15 pm

Re: Intro page/console homepage

Post by fcrooks »

Thanks much for the quick reply back on this.

Yes, I know it is an old version. However, I am tied to it because I rely heavily on the php Weathermap plugin which has not and will not (as I understand it) be ported to Cacti 1.x

Therefore, my need to stay with plugins for that older version of Cacti.

Nevertheless, I will go back and find the earlier version you referenced and see if I can get that to work.

The Very Best Regards
fcrooks
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Intro page/console homepage

Post by netniV »

To be clear, weathermaps runs under 1.x, the issue is that the interface for editing, etc, wasn't completed. There will be some work done to separate the parts out.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

Post by jon22 »

Hi all.

I have a new Cacti install (Cacti Version: 1.2.3) on Debian 9.x and database is oracle mysql 8.0.16.

I also have installed the Monitor and Thold plugins and it is working great.

I am trying to install the intropage plugin.

I copied the zip file from https://github.com/xmacan/plugin_intropage to plugins directory, set permissions for apache user www-data.

When I install the plugin I see the following errors in Cacti interface logs TAB:

2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[22]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'poller_bottom', 'intropage_poller_' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[17]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'graph_buttons_thumbnails', 'introp' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[16]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'graph_buttons', 'intropage_graph_b' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[14]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'user_group_admin_setup_sql_save', ' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[13]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'user_admin_setup_sql_save', 'intro' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[11]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'console_after', 'intropage_console' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[9]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'top_graph_header_tabs', 'intropage' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[8]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'top_header_tabs', 'intropage_show_' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[6]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'login_options_navigate', 'intropag' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[5]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'config_settings', 'intropage_confi' at line 1
2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[4]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'config_form', 'intropage_config_fo' at line 1

I also enabled mysql general_log but still I can't see those queries with error. How can I see the entire query ? I can solve the problem and run query manually at least.

Thanks everyone for help !
User avatar
macan
Cacti Guru User
Posts: 1101
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

jon22 wrote:Hi all.

I have a new Cacti install (Cacti Version: 1.2.3) on Debian 9.x and database is oracle mysql 8.0.16.

I also have installed the Monitor and Thold plugins and it is working great.

I am trying to install the intropage plugin.

I copied the zip file from https://github.com/xmacan/plugin_intropage to plugins directory, set permissions for apache user www-data.

When I install the plugin I see the following errors in Cacti interface logs TAB:

2019/05/10 16:04:17 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[626]:plugin_intropage_install(), /plugins/intropage/setup.php[22]:api_plugin_register_hook(), /lib/plugins.php[736]:db_execute_prepared())
2019/05/10 16:04:17 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'function, file, status) VALUES ('intropage', 'poller_bottom', 'intropage_poller_' at line 1

I also enabled mysql general_log but still I can't see those queries with error. How can I see the entire query ? I can solve the problem and run query manually at least.

Thanks everyone for help !
Hi,
I have tested it just now on FreeBSD, Cacti 1.2.3 and MariaDB 10.2 and everything is ok without any error. If you tried master branch, please try develop version. In develop is a lot of changes, few are connected with installation process.
If problem will persist, please send me full SQL queries.
Let the Cacti grow!
jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

Post by jon22 »

Hi Macan,
I attached the general_log of mysql which I enabled before installing intropage plugin.
I user dev version of plugin as recommended but I had the same errors.
I attched the mysql general_log and printscreen with errors.
I could not find the errors in general_log which is strange.
Thank you for your support.
Attachments
cacti-logs.PNG
cacti-logs.PNG (143.45 KiB) Viewed 13150 times
general_log.txt
(82.98 KiB) Downloaded 99 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests