nmidWeb2 - Cacti Web 2.0 - v0.3 - 0.8.7g beta out now !

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

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

nmidWeb2 - Cacti Web 2.0 - v0.3 - 0.8.7g beta out now !

#1 Post by phalek » Wed Mar 19, 2008 8:46 am

nmidWeb2 adds an Web2 interface to the TreeView page, allowing the graphs to be moved around and collapsed. The graph positions are saved in the database on a per user/tree/leaf basis so the next time the user loads that page, the graph will be positioned be where they have been put. ( also when the user changes the computer or browser )

New: Plugin Documentation: http://docs.cacti.net/userplugin:nmidweb2

Update:
The addon can now be downloaded from: http://redmine.nmid-plugins.de/projects ... s/nmidweb2

Important: 3 files need to be replaced. include/top_graph_header.php, lib/html.php and lib/html_tree.php, so make a backup of these files first !!

to install, please follow these steps:

For 0.8.7g:

Code: Select all

cd /path/to/cacti
wget http://redmine.nmid-plugins.de/attachments/download/269/nmidWeb2_files_087g.tgz
tar -xzvf nmidWeb2_files_087g.tgz
mysql -u <cactiuser> -p <cacti db> < nmidweb2.sql
For 0.8.7e:

Code: Select all

cd /path/to/cacti
wget http://redmine.nmid-plugins.de/attachments/download/204/v03_nmidWeb2_087e.tgz
tar -xzvpf v03_nmidWeb2_087e.tgz
For 0.8.7d:

Code: Select all

cd /path/to/cacti
wget http://redmine.nmid-plugins.de/attachments/download/204/v03_nmidWeb2_087e.tgz
wget http://redmine.nmid-plugins.de/attachments/download/205/nmidWeb2_087d_lib_files.tgz.zip
tar -xzvpf v03_nmidWeb2_087e.tgz
tar -xzvpf nmidWeb2_087d_lib_files.tgz.zip
Then enable the plugin via the Plugin Management interface

Comments are welcome
Attachments
nmidWeb2_v3.png
nmidWeb2_v3.png (90.21 KiB) Viewed 28207 times
jquery_portlet_232.png
jquery_portlet_232.png (124.92 KiB) Viewed 34475 times
Last edited by phalek on Fri Nov 05, 2010 3:29 am, edited 15 times in total.
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]

UpSa
Posts: 3
Joined: Tue Mar 04, 2008 2:01 pm

#2 Post by UpSa » Wed Mar 19, 2008 2:26 pm

nice work, looks really nice !

zeki
Cacti User
Posts: 91
Joined: Fri Feb 09, 2007 10:55 pm
Location: So. Cal
Contact:

#3 Post by zeki » Wed Mar 19, 2008 6:12 pm

hey this is pretty cool. is this going to be a plugiN?

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

#4 Post by phalek » Thu Mar 20, 2008 1:18 am

Yes, I'm planing on having this as a plugin

victor_c32
Posts: 19
Joined: Wed Jun 27, 2007 11:31 pm
Location: Rennes , France

cool ....

#5 Post by victor_c32 » Thu Mar 20, 2008 3:47 pm

Hello dear phalek...

Can you propose your work for the next version of cacti...
Or perhaps integrate the great Cacti developpers Team ;-)

Victor.
#IBM, 4x Intel Xeon CPU 2.66GHz, 16GB RAM, RHEL5.1, Cacti 0.8.7b, MySQL 5.0.22, PHP 5.2.5

User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

#6 Post by chrisgapske » Thu Mar 20, 2008 4:24 pm

Such a Great idea. I know they are looking to move to AJAX in 0.9.0 but if you started now as a plugin mirroring or building on what Cacti is great it all looks very very nice.

meralias
Posts: 46
Joined: Tue Nov 14, 2006 7:07 am

#7 Post by meralias » Wed Jun 17, 2009 7:38 am

Did you ever go further with this?

User avatar
Hyperlord
Cacti User
Posts: 209
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany
Contact:

#8 Post by Hyperlord » Mon Jun 22, 2009 6:04 am

Hi there,

very nice thing! It reminds me of IPswitch WhatsUp Gold v. 11 (Workspace Views).
I think this is a really hot topic, because you might be able to create your own "Graph Views", or to be more specific, arrange your own Graph-View-Templates.

I might say this is Triple-X-Hot ;) I'll folliow that thread!

brgds
I'm a bit redundant. I repeat myself too ...

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

#9 Post by phalek » Mon Jun 29, 2009 3:43 am

I'm currently not really have a high focus on that one, although I really like the re-arranging stuff of the graphs.

Unfortunately, I lack the knowledge on how to actually save the "portlet" state correctly ...
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]

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#10 Post by rony » Mon Jun 29, 2009 7:24 am

You should take a look at what we are up to in the Main branch in SVN.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

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

#11 Post by phalek » Mon Jun 29, 2009 8:00 am

I did read the email ;-)

You told something about extJS there but I didn't have time to take a look at the SVN yet ...
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]

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#12 Post by rony » Mon Jun 29, 2009 9:24 am

We are using Jquery...

ExtJS license is questionable.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

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

#13 Post by phalek » Mon Jun 29, 2009 5:43 pm

Ok,

Here's a screenshot using JQuery instead of EXTjs ...

It's even easier to do :-)

If you just wouldn't use that many tables ...
Attachments
jQuery_Portlet.png
jQuery_Portlet.png (124.92 KiB) Viewed 34568 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]

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#14 Post by rony » Mon Jun 29, 2009 7:35 pm

Keep it up man!

Nice work!
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

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

#15 Post by phalek » Tue Jun 30, 2009 5:15 pm

Ok, I now did manage to have the "state" saved. so the graphs stay where they are, even after closing and restarting the browser ...

The state is saved in a cookie, so that different cacti users can have their graphs sorted differently.
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]

Post Reply