Intro page/console homepage

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

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

Re: Intro page/console homepage

Post by macan »

jon22 wrote: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.
Please try modify file lib/plugins.php, line 734:
db_execute_prepared('INSERT INTO plugin_hooks
(name, hook, function, file, status)
VALUES (?, ?, ?, ?, ?)',
array($plugin, $hook, $function, $file, $status));

new code:
db_execute_prepared('INSERT INTO plugin_hooks
(name, hook, `function`, file, status)
VALUES (?, ?, ?, ?, ?)',
array($plugin, $hook, $function, $file, $status));

It seems that in your mysql server version is word 'function' reserved
https://dev.mysql.com/doc/refman/8.0/en/keywords.html
Let the Cacti grow!
jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

Post by jon22 »

Hello Macan,

Your advice was very good. I solved that problem.
But I cant see the intropage, I see only configuration for intropage.
I attached print screens with things I saw you requested from other people to help them troubleshoot similar problems.
I also change database to mariadb, but I still cannot access intropage.
I try all settings from configuration/users/admin/ related to intropage
I am using cacti version 123 and intropage dev, and mariadb 10.1.38

Thanks
Attachments
user management admin options.PNG
user management admin options.PNG (51.48 KiB) Viewed 7547 times
sql_result.PNG
sql_result.PNG (29.28 KiB) Viewed 7547 times
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

jon22 wrote:Hello Macan,

Your advice was very good. I solved that problem.
But I cant see the intropage, I see only configuration for intropage.
I attached print screens with things I saw you requested from other people to help them troubleshoot similar problems.
I also change database to mariadb, but I still cannot access intropage.
I try all settings from configuration/users/admin/ related to intropage
I am using cacti version 123 and intropage dev, and mariadb 10.1.38

Thanks
Any errors in log? Please send console screenshot and result of these queries:
select * from plugin_intropage_user_setting
select * from plugin_intropage_panel
Let the Cacti grow!
jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

Post by jon22 »

Hello Macan,

I have added the requested information

Thanks
Attachments
log.PNG
log.PNG (231.61 KiB) Viewed 7538 times
console print screen.PNG
console print screen.PNG (195.83 KiB) Viewed 7538 times
queries.PNG
queries.PNG (53 KiB) Viewed 7538 times
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

jon22 wrote:Hello Macan,

I have added the requested information

Thanks
Try SQL query - select * from plugin_hooks where name='intropage';
I'm expecting no resulted rows

After it, please try disable-deinstall-install-enable intropage plugin again and watch cacti log.
and run SQL query again. The result could be:
MariaDB [cacti]> select * from plugin_hooks where name='intropage';
+------+-----------+---------------------------------+----------------------+-------------------------------------------+--------+
| id | name | hook | file | function | status |
+------+-----------+---------------------------------+----------------------+-------------------------------------------+--------+
| 2463 | intropage | config_form | include/settings.php | intropage_config_form | 1 |
| 2464 | intropage | config_settings | include/settings.php | intropage_config_settings | 1 |
| 2465 | intropage | login_options_navigate | include/settings.php | intropage_login_options_navigate | 1 |
| 2466 | intropage | top_header_tabs | include/tab.php | intropage_show_tab | 1 |
| 2467 | intropage | top_graph_header_tabs | include/tab.php | intropage_show_tab | 1 |
| 2468 | intropage | console_after | include/settings.php | intropage_console_after | 1 |
| 2469 | intropage | user_admin_setup_sql_save | include/settings.php | intropage_user_admin_setup_sql_save | 1 |
| 2470 | intropage | user_group_admin_setup_sql_save | include/settings.php | intropage_user_group_admin_setup_sql_save | 1 |
| 2471 | intropage | graph_buttons | include/helpers.php | intropage_graph_button | 1 |
| 2472 | intropage | graph_buttons_thumbnails | include/helpers.php | intropage_graph_button | 1 |
| 2473 | intropage | poller_bottom | setup.php | intropage_poller_bottom | 1 |
+------+-----------+---------------------------------+----------------------+-------------------------------------------+--------+
Let the Cacti grow!
jon22
Posts: 5
Joined: Fri May 10, 2019 8:48 am

Re: Intro page/console homepage

Post by jon22 »

Hello Macan,

This " please try disable-deinstall-install-enable intropage plugin again and watch cacti log. " helped a lot.
I am new to Cacti and I was missing enable step.
Intropage works great.

Thanks a lot!
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

jon22 wrote:Hello Macan,

This " please try disable-deinstall-install-enable intropage plugin again and watch cacti log. " helped a lot.
I am new to Cacti and I was missing enable step.
Intropage works great.

Thanks a lot!

Great!
It isn't your fault. Cacti has problem with your mysql version (reserved word 'function'). Intropage installation wasn't successful - few sql insert ended with errors. If cacti find out that plugin generates errors, cacti disable it automatically.
Deinstall and reinstall causes new installation and all queries were successful.
Let the Cacti grow!
optimist
Posts: 7
Joined: Tue Jun 11, 2019 10:55 am

Re: Intro page/console homepage

Post by optimist »

Hi,

I accidentaly make new post for my intropage issue, im sorry:

https://forums.cacti.net/viewtopic.php?f=5&t=59915

Can you help me with this problem please?

Thank you very much.
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

optimist wrote:Hi,

I accidentaly make new post for my intropage issue, im sorry:

https://forums.cacti.net/viewtopic.php?f=5&t=59915

Can you help me with this problem please?

Thank you very much.
Try at the bottom choose reset to default. Someone has the same problem.
If problem persists, try develop version from github (1.8.3)
Let the Cacti grow!
optimist
Posts: 7
Joined: Tue Jun 11, 2019 10:55 am

Re: Intro page/console homepage

Post by optimist »

macan wrote:
optimist wrote:Hi,

I accidentaly make new post for my intropage issue, im sorry:

https://forums.cacti.net/viewtopic.php?f=5&t=59915

Can you help me with this problem please?

Thank you very much.
Try at the bottom choose reset to default. Someone has the same problem.
If problem persists, try develop version from github (1.8.3)
Thank you! It works now :)
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

New version released - 1.8.3.
Download on first post or on github
https://github.com/xmacan/plugin_intropage
Let the Cacti grow!
tybreizh29
Posts: 2
Joined: Mon Feb 24, 2020 9:44 am

Re: Intro page/console homepage

Post by tybreizh29 »

Hello
I followed the steps to install the pugin into the last 1.3 dev Cacti, but I've got a "blank" page instead of the Intro Page.
Where should I start looking to find out what's wrong ?
blabla
Thanks for your help.
marc

UPDATE : there is an activate led to click to activate the plugin, :o
my bad, sorry :/
anandks
Posts: 25
Joined: Mon Oct 18, 2010 12:02 pm

Re: Intro page/console homepage

Post by anandks »

I have the intropage working on 1.2.10, but when I click on "Detail" on one of the content tile, I get a popup, but there seems no way to dismiss this popup other than
going to a different tab in cacti, anyone else have this problem ? any workaround
User avatar
macan
Cacti Guru User
Posts: 1013
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Intro page/console homepage

Post by macan »

anandks wrote: Tue Apr 07, 2020 7:54 am I have the intropage working on 1.2.10, but when I click on "Detail" on one of the content tile, I get a popup, but there seems no way to dismiss this popup other than
going to a different tab in cacti, anyone else have this problem ? any workaround
Please use new develop version:
https://github.com/xmacan/plugin_intropage/tree/develop
Let the Cacti grow!
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Intro page/console homepage

Post by TheWitness »

By far, my most favorite plugin that I did not write myself ;) Keep the good work!
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