Intro page/console homepage

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
BigAl101
Posts: 9
Joined: Fri Jun 23, 2017 4:00 am

Re: Intro page/console homepage

#76 Post by BigAl101 » Tue Aug 22, 2017 5:45 am

Slightly off topic so apologies for that, I've made a few tweaks to the latest version for my own use, I was getting errors from intropage in the logfile when I had devices with duplicate description and I also wanted to add an additional item which was devices with the same hostname/IP address as i'm using this to monitor 2500+ routers which are currently being replaced.

As per the pics below I've changed the "Devices with duplicate description" query so instead of just showing the number of duplicate descriptions (i.e 1 was displayed if 2 devices had the same description) it now show's the number of records which are duplicated and has the view/hide details option to expand and view the devices which have duplicate description, this query also no longer returns errors now in the log file.

I've then also created the query todo the same for hostname or in my case IP.

I've adding settings for the duplicate IP field in the settings aswell so it can be enabled/disabled just like any other option on intropage.

Happy to send the files over if you want to have a look / incorporate into upcoming version.
intro1.jpg
intro1.jpg (13.94 KiB) Viewed 1445 times
intro2.jpg
intro2.jpg (22.4 KiB) Viewed 1445 times

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

Re: Intro page/console homepage

#77 Post by macan » Wed Aug 23, 2017 1:33 am

BigAl101 wrote:Slightly off topic so apologies for that, I've made a few tweaks to the latest version for my own use, I was getting errors from intropage in the logfile when I had devices with duplicate description and I also wanted to add an additional item which was devices with the same hostname/IP address as i'm using this to monitor 2500+ routers which are currently being replaced.

As per the pics below I've changed the "Devices with duplicate description" query so instead of just showing the number of duplicate descriptions (i.e 1 was displayed if 2 devices had the same description) it now show's the number of records which are duplicated and has the view/hide details option to expand and view the devices which have duplicate description, this query also no longer returns errors now in the log file.

I've then also created the query todo the same for hostname or in my case IP.

I've adding settings for the duplicate IP field in the settings aswell so it can be enabled/disabled just like any other option on intropage.

Happy to send the files over if you want to have a look / incorporate into upcoming version.
intro1.jpg
intro2.jpg

Great! I will add to the new version. Please send it to me via email ([email protected]) or upload here. Thank you

BigAl101
Posts: 9
Joined: Fri Jun 23, 2017 4:00 am

Re: Intro page/console homepage

#78 Post by BigAl101 » Fri Sep 01, 2017 4:57 am

Hi macan

I've attached my modified files below.
Attachments
intropage_mod.zip
(7.22 KiB) Downloaded 51 times

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

Re: Intro page/console homepage

#79 Post by macan » Mon Sep 25, 2017 3:00 am

Comming soon (maybe this week). Is there someone bold for testing? :-)
Attachments
dashboard1.png
New version
dashboard1.png (203.41 KiB) Viewed 1307 times

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

Re: Intro page/console homepage

#80 Post by macan » Tue Sep 26, 2017 6:32 am

Intropage/Dashboard 1.0 released!

Completely new design and functions:
- automatic refresh page
- CPU monitoring (linux/unix)
- trends
- poller stats and info
- mysql db connection check
- checks for IP and description duplicity (thank you BigAl101)
- new graphs (chart.js)
...

User avatar
phalek
Cacti Guru User
Posts: 2710
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Intro page/console homepage

#81 Post by phalek » Tue Sep 26, 2017 8:03 am

Here's a version where you can move the portlets around ( Still need to store the position in a cookie ...)
Attachments
intropage_101.tgz
(29.33 KiB) Downloaded 90 times
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

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

Re: Intro page/console homepage

#82 Post by macan » Tue Sep 26, 2017 9:11 am

phalek wrote:Here's a version where you can move the portlets around ( Still need to store the position in a cookie ...)
Thank you. I plan to add this to the next version.
Your code breaks display!
Attachments
portlets_small.png
portlets_small.png (86.99 KiB) Viewed 1292 times

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

Re: Intro page/console homepage

#83 Post by macan » Tue Sep 26, 2017 11:34 am

BigAl101 wrote: As per the pics below I've changed the "Devices with duplicate description" query so instead of just showing the number of duplicate descriptions (i.e 1 was displayed if 2 devices had the same description) it now show's the number of records which are duplicated and has the view/hide details option to expand and view the devices which have duplicate description, this query also no longer returns errors now in the log file.

I've then also created the query todo the same for hostname or in my case IP.
I added both to version 1.0. But I had to make change in hostname/IP. It checks snmp_port too because I have a lot of snmp devices behind public IP and portforwarded udp ports to devices.

Thank you for your help!

VooDDi
Posts: 1
Joined: Thu Oct 05, 2017 11:56 pm

Re: Intro page/console homepage

#84 Post by VooDDi » Fri Oct 06, 2017 12:03 am

Hello. where can I download 0.85 version for cacti 0.8.8?

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

Re: Intro page/console homepage

#85 Post by macan » Fri Oct 06, 2017 2:15 am

VooDDi wrote:Hello. where can I download 0.85 version for cacti 0.8.8?
Hello,
I added version 0.85 to the first page

User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Re: Intro page/console homepage

#86 Post by Pucho » Sun Oct 08, 2017 6:22 pm

Hi macan,

Would this be available on github to report issues and/or contribute code?

I've been reporting bugs on https://github.com/earendilfr/plugin_intropage for the version that Earendilfr has re-written and I've noticed this new release isn't there.

BTW, I attached an screenshot. Doesn't look nice.
chrome_2017-10-09_12-30-41.png
chrome_2017-10-09_12-30-41.png (204.09 KiB) Viewed 1240 times
This is the whole bunch of logs since I installed and enabled it.
2017/10/09 12:36:29 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:36:29 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:36:29 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:36:29 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:36:07 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:36:07 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:36:07 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:36:07 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:35:28 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:35:28 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:35:28 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:35:28 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:34:27 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:34:27 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:34:27 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:34:27 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:33:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:33:26 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:33:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:33:26 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:32:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:32:26 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:32:26 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:32:26 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:31:25 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:31:25 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:31:25 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:31:25 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:30:24 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:30:24 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:30:24 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/intropage/intropage.php: 14 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:30:24 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:29:49 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:29:49 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:29:49 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:29:49 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:29:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:29:01 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:29:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:29:01 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
2017/10/09 12:28:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 26 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:28:01 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 26
2017/10/09 12:28:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/index.php: 101 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 intropage_console_after)(/plugins/intropage/include/settings.php: 60 display_informations)(/plugins/intropage/display.php: 141 graph_data_source)(/plugins/intropage/functions/graph_data_source.php: 22 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/10/09 12:28:01 - ERROR PHP NOTICE in Plugin 'intropage': Undefined index: in file: /usr/share/cacti-1.1.21/plugins/intropage/functions/graph_data_source.php on line: 22
Cheers,
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.

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

Re: Intro page/console homepage

#87 Post by macan » Mon Oct 09, 2017 5:10 am

Pucho wrote:Hi macan,

Would this be available on github to report issues and/or contribute code?

I've been reporting bugs on https://github.com/earendilfr/plugin_intropage for the version that Earendilfr has re-written and I've noticed this new release isn't there.

BTW, I attached an screenshot. Doesn't look nice.
chrome_2017-10-09_12-30-41.png
This is the whole bunch of logs since I installed and enabled it.
Hi,
I guess that this week I will transfer my version to github.

Which theme do you have? Now I'm working on other theme optimalization.

User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Re: Intro page/console homepage

#88 Post by Pucho » Mon Oct 09, 2017 5:38 pm

I'm currently using 'Modern'

Dark and Paw are also terrible

Classic looks fine but doesn't load the TAB image.

Paper-plane and Sunrise look fine.

I'm running cacti 1.1.21 and the source from the 1st post.
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.


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

Re: Intro page/console homepage

#90 Post by macan » Tue Oct 17, 2017 2:52 pm

Pucho wrote:I'm currently using 'Modern'

Dark and Paw are also terrible

Classic looks fine but doesn't load the TAB image.

Paper-plane and Sunrise look fine.

I'm running cacti 1.1.21 and the source from the 1st post.
Hi,
on github or here (first post) is version 1.1 now. It supports all Themes.
TAB image is fixed too

Post Reply