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:

Intro page/console homepage

#1 Post by macan » Fri Feb 07, 2014 1:56 pm

Dashboard for Cacti

More than 20 panels, you can add any graphs to your dashboard. Autorefresh, drag and drop panels, ...

- 24 hours extrems
- Hosts (up, down, ...)
- Thresholds (trigged, breached, ..) and last thold events
- plugins monitor, mactrack, maint ...
- Database and time check
- Statistics of datasources and templates
- Poller statistic
- Boost statistic
- Failed logins
- Host without graphs, without tree, ..
- Top 5 with the worst ping response and availability

Version <= 0.85 works fine in Cacti 0.8.x, 0.91+ is for cacti >= 1.0X!

Official GIT
https://github.com/xmacan/plugin_intropage

Please read readme

dl stats: 0.3 - 146/0.4 - 712/0.5 - 495/0.6 - 165/0.7 - 1028/0.85 - 1460/0.9 - 340/1.0 - 50/1.1 - 48/1.2+1.3 - 25/1.4 - 50/1.5 - 25/1.5.1 - 30/1.6 - 50/1.7 - 122/1.8 - 88
Attachments
intropage_1.4.png
Screenshot
intropage_1.4.png (259.29 KiB) Viewed 3914 times
intropage_0.85.tgz
Version 0.85 for Cacti version < 1.0
(32.39 KiB) Downloaded 548 times
Last edited by macan on Fri Mar 01, 2019 3:31 pm, edited 32 times in total.

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

Re: Intro page/console homepage

#2 Post by phalek » Fri Feb 07, 2014 4:27 pm

You should create a plugin out of this and make use of the api hook:

api_plugin_hook('console_after');

that's why it's in there.
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

#3 Post by macan » Mon Feb 10, 2014 6:48 am

phalek wrote:You should create a plugin out of this and make use of the api hook:
api_plugin_hook('console_after');
that's why it's in there.
Ok, no problem. I will do it as soon as posibble

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

Re: Intro page/console homepage

#4 Post by macan » Thu Feb 13, 2014 12:38 pm

macan wrote:Ok, no problem. I will do it as soon as posibble
Done :-)
http://docs.cacti.net/userplugin:intropage

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

Re: Intro page/console homepage

#5 Post by phalek » Thu Feb 13, 2014 1:44 pm

Thanks.

That way you don't have to worry about version upgrades and maintenance of the index.php file :-)
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]

hmorandell
Cacti User
Posts: 72
Joined: Mon May 03, 2010 11:48 am

Re: Intro page/console homepage

#6 Post by hmorandell » Mon Mar 10, 2014 5:18 am

there is an error in the script setup.php.

This on line 57:

Code: Select all

        // all
        $sql  = "SELECT * FROM thold_data ";
should be this:

Code: Select all

        // all
        $sql  = "SELECT count(*) FROM thold_data ";

ciao
_________________
Cacti - 0.8.8c
Poller Type - SPINE 0.8.7i
Server Info - Linux 2.6.31.14 - Opensuse 11
Web Server - Apache/2.2.13 PHP 5.3.3
MySQL - 5.1.49 ;RRDTool - 1.3.7 ;SNMP - 5.4.2.1

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

Re: Intro page/console homepage

#7 Post by macan » Tue Mar 25, 2014 5:04 am

hmorandell wrote:there is an error in the script setup.php.

This on line 57:

Code: Select all

        // all
        $sql  = "SELECT * FROM thold_data ";
should be this:

Code: Select all

        // all
        $sql  = "SELECT count(*) FROM thold_data ";

ciao

Thank you, I found this error too and it is fixed

christophep
Posts: 2
Joined: Tue Sep 17, 2013 4:50 am

Re: Intro page/console homepage

#8 Post by christophep » Wed Jun 25, 2014 5:37 am

Hi,

I thanks you for your page. There is a couple of months i had the same wish and the same need.

As you can see in attached file i redo the index.php adding some tools like graphs.
Capture.PNG
Capture.PNG (176.69 KiB) Viewed 18360 times
I don't know how to make a plugin so i will not publish this page but if you want i can give you the source code and can help you to translate it.

Best regards, Christophe.

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

Re: Intro page/console homepage

#9 Post by macan » Wed Jun 25, 2014 5:58 am

christophep wrote:Hi,

I thanks you for your page. There is a couple of months i had the same wish and the same need.

As you can see in attached file i redo the index.php adding some tools like graphs.
Capture.PNG
I don't know how to make a plugin so i will not publish this page but if you want i can give you the source code and can help you to translate it.

Best regards, Christophe.
Hi Christophe,
please give me your code and I will try to join your work to this plugin ... or we can do it together.
I have only one new idea for intro page plugin - add simple graphs Top X - for top X device with the biggest CPU load, memory utilization, ...
I sight this on HP iMC NMS and I think that is very usefull.

Of course, you can build your own plugin, it is easy. You can use my plugin as example.

christophep
Posts: 2
Joined: Tue Sep 17, 2013 4:50 am

Re: Intro page/console homepage

#10 Post by christophep » Wed Jun 25, 2014 6:55 am

hi,

the code is attached.
In this code you can find:
> 1 pie chart for monitored host states (UP; Down; Unknown ; Recovery)
> 1 pie chart for threshold states (Normal; triggered; breached)
> a thumbmail for a weathermap
> 7 rows for current administration:
>a list of devices in dooble
>a list of hosts in dooble into the tree
>a list of hosts witch have no graphs
>a list hosts witch are not into the tree (orphan hosts ; a specific need due to multiple administrators)
>a list of host not monitored
>a list of devices discovered and ready to be added
>a list of hosts with a bad timeout (a specific need)
> Statistics (number of hosts ; nb graphs ; nb thresholds)

All the charts and list have hypertext link to go directly where you need.

The page camembert.php is not mine ; the autor is Didier STRAUS.

@Macan : In your own page i like these features : Logs; logins and the buttons (polling finished in time ; warnings and failed logins).

Replace index.txt by index.php and camembert.txt by camembert.php ;-) It's evident.
Attachments
camembert.txt
(6.2 KiB) Downloaded 531 times
index.txt
(14.07 KiB) Downloaded 565 times

JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: Intro page/console homepage

#11 Post by JohnYYC » Wed Aug 06, 2014 5:52 pm

macan wrote:Hi,
I tried to prepare new intro page with more information. I think, that any "summary screen" is missing in cacti.
There is small preview of:
- hosts (up, down, ...)
- Thresholds (trigged, breached, ..)
- statistics of datasources and templates
- Poller statistics
- Current time check
- Failed logins
- Host without graphs, without tree, ..
- Top 5 with the worst ping response eand availability

Each value in the table is a link to the appropriate page. Everyone who have "Console permission" can see it.

Tested on 0.8.8a

Thank you for making this! Love having everything displayed all in one place with visuals :)

User avatar
JorisFRST
Cacti User
Posts: 214
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: Intro page/console homepage

#12 Post by JorisFRST » Thu Sep 18, 2014 2:45 am

Thanks alot for this one,
we are just working on giving a "level 2" team access to the monitoring systems.

This will help a lot to simplify my documentation to "go to console, watch for red button."

And management likes pretty pictures too ;-)
Joris.
http://www.routerjanitor.com

gildas33
Posts: 5
Joined: Fri Feb 03, 2012 4:05 am

Re: Intro page/console homepage

#13 Post by gildas33 » Thu Nov 13, 2014 2:45 am

macan wrote:Hi,
I tried to prepare new intro page with more information. I think, that any "summary screen" is missing in cacti.
There is small preview of:
- hosts (up, down, ...)
- Thresholds (trigged, breached, ..)
- statistics of datasources and templates
- Poller statistics
- Current time check
- Failed logins
- Host without graphs, without tree, ..
- Top 5 with the worst ping response eand availability

Each value in the table is a link to the appropriate page. Everyone who have "Console permission" can see it.

Tested on 0.8.8a
Hi Macan !!

Thanks a lot for your plugin !!

I've change your source code to insert the plugin MacTrack like this :
Image
Attachments
setup.php.txt
(30.62 KiB) Downloaded 400 times

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

Re: Intro page/console homepage

#14 Post by macan » Thu Nov 13, 2014 3:10 am

gildas33 wrote:
Hi Macan !!

Thanks a lot for your plugin !!

I've change your source code to insert the plugin MacTrack like this :
Image
Hi gildas33,
great, I will insert your work to intropage plugin as soon as possible :-)

Thank you!

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

Re: Intro page/console homepage

#15 Post by macan » Wed Jan 21, 2015 1:31 pm

macan wrote:
gildas33 wrote:
Hi Macan !!

Thanks a lot for your plugin !!

I've change your source code to insert the plugin MacTrack like this :
Image
Hi gildas33,
great, I will insert your work to intropage plugin as soon as possible :-)

Thank you!

Done, please try version 0.5.

Post Reply