Intro page/console homepage

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
macan
Cacti User
Posts: 138
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: Intro page/console homepage

#121 Post by macan » Fri Mar 01, 2019 3:43 pm

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

chipmonk
Posts: 9
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

#122 Post by chipmonk » Fri Mar 22, 2019 1:28 pm

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: 2691
Joined: Sun Aug 27, 2017 12:05 am

Re: Intro page/console homepage

#123 Post by netniV » Fri Mar 22, 2019 1:32 pm

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.

chipmonk
Posts: 9
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

#124 Post by chipmonk » Fri Mar 22, 2019 2:18 pm

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!

macan
Cacti User
Posts: 138
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: Intro page/console homepage

#125 Post by macan » Fri Mar 22, 2019 2:33 pm

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

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

Re: Intro page/console homepage

#126 Post by netniV » Fri Mar 22, 2019 2:49 pm

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.

chipmonk
Posts: 9
Joined: Sun Sep 17, 2017 6:35 pm

Re: Intro page/console homepage

#127 Post by chipmonk » Fri Mar 22, 2019 3:12 pm

The new Chart.js did the trick! Fantastic! Thanks!

macan
Cacti User
Posts: 138
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: Intro page/console homepage

#128 Post by macan » Fri Mar 22, 2019 3:33 pm

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/

fcrooks
Posts: 2
Joined: Wed Apr 03, 2019 3:15 pm

Re: Intro page/console homepage

#129 Post by fcrooks » Wed Apr 03, 2019 3:37 pm

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?

macan
Cacti User
Posts: 138
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: Intro page/console homepage

#130 Post by macan » Thu Apr 04, 2019 1:24 am

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!).

fcrooks
Posts: 2
Joined: Wed Apr 03, 2019 3:15 pm

Re: Intro page/console homepage

#131 Post by fcrooks » Thu Apr 04, 2019 7:57 am

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: 2691
Joined: Sun Aug 27, 2017 12:05 am

Re: Intro page/console homepage

#132 Post by netniV » Thu Apr 04, 2019 9:23 am

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.

jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

#133 Post by jon22 » Fri May 10, 2019 9:03 am

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 !

macan
Cacti User
Posts: 138
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: Intro page/console homepage

#134 Post by macan » Sun May 12, 2019 1:25 pm

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.

jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

#135 Post by jon22 » Mon May 13, 2019 5:01 am

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 435 times
general_log.txt
(82.98 KiB) Downloaded 20 times

Post Reply