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

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Go to the project page and download the plugin for 0.87e:

v02_nmidWeb2_087e.tgz

Install it and then then also download the lib files for 0.87d:

nmidWeb2_087d_lib_files.tgz.zip

The files there replace the lib/html.php and lib/html_tree.php files, so make a backup of those before extracting any of the plugin files.
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 : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

v0.3 has been released. This release adds the following new features:
  • Graph positions are now stored in the database. Graph positions are stored on a userid/tree_id/leaf_id basis and do not expire
  • Support for nmidSmokeping
  • Support for nmidAvailability
  • Graphs can be minimized again ( though that is not stored )
The cookie method did have several disadvantages, as it did overwrite each time the user did change the tree/leaf item. ALso the cookie was stored for the browser, so by changing the browser or computer all the positions were lost.
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 : CereusReporting
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

Hi phalek!
Awesome I'll give it a try as fast as possible, wrote a mail to my boss if I'm allowed to integrate this today ^^
Om Tat Sat
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

wasn`t it you requesting the db integration ?
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 : CereusReporting
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

phalek wrote:wasn`t it you requesting the db integration ?
Absolutely :) As I said, I follow that thread hehe
I wanted to dig into that AJAX stuff since decades, bought a lot of AJAX and JS books, realized I could work best with jQuery and well...haven't had time to evaluate. I'm really looking forward to support the developement, too!
And I kinda like your code "style", too.

News: My boss gave me the permission to integrate this - first I'll do that on the testserver. Scheduled for this day, I'll post feedback.

brgds
Om Tat Sat
Joop
Posts: 25
Joined: Thu Apr 26, 2007 5:27 am

Post by Joop »

Hyperlord wrote:
phalek wrote:wasn`t it you requesting the db integration ?
first I'll do that on the testserver. Scheduled for this day, I'll post feedback.

brgds
Well, I already installed it on a test server but no go. I do see some of the html that is generated in the page but I don't get the Ajax functionality.
And yes, I replaced the files in lib and installed/activated the plugin.
Even stopped and started the httpd daemon, cleared my browser cache.

Could one of my other plugins be interfering with this one?

Regards,

Joop
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

which version do you have and which other plugins ?
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 : CereusReporting
Joop
Posts: 25
Joined: Thu Apr 26, 2007 5:27 am

Post by Joop »

phalek wrote:which version do you have and which other plugins ?
The following is from the plugin HostInfo:
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - CMD.php
Server Info - Linux 2.6.18-128.1.10.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, dom, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, xmlreader, xmlrpc, xmlwriter, xsl
MySQL - 5.0.77
RRDTool - 1.3.8
SNMP - 5.3.2.2
Plugins
  • Notices (Notices - v0.2c)
    Network Tools (tools - v0.3)
    Update Checker (update - v0.4)
    Host Info (hostinfo - v0.2)
Besides that I have the following plugins active (all PIA aware plugins)
  • CAMM 1.6.5
    fix64bit 0.1
    manage 0.6.1
    nmidWeb2 0.3
    reportit 0.7.1
    settings 0.6
    cycle 0.7+
    monitor 0.9
    realtime 0.4
    rrdclean 0.38
    thold 0.4.1
Regards,

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

Post by Hyperlord »

Allright I had a chance to test that, too.

It's working but state is not saved. Tested with ff so far, will try IE8 now ...

In my apache error log I get the following entry everytime I work with the graph-tree:

Code: Select all

[Mon Apr 12 15:44:35 2010] [error] [client myipaddress] PHP Notice:  Undefined index:  leaf_id in /var/www/html/plugins/nmidWeb2/setup.php on line 156, referer: http://1337-cacti/plugins/nmid/graph_view.php?action=tree
Edit: Line 96 && 156
-> I didn't install that properly, didn't I?

On every page I have a JS error:

Code: Select all

F is undefined
[Break on this error] (function(){var l=this,g,y=l.jQuery,p=...ch(function(){o.dequeue(this,E)})}}); 

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMDTDF; InfoPath.2)
Zeitstempel: Mon, 12 Apr 2010 13:54:13 UTC


Meldung: 'undefined' ist Null oder kein Objekt
Zeile: 12
Zeichen: 15910
Code: 0
URI: http://1337-cacti/plugins/nmidWeb2/js/j ... 3.2.min.js



I think I did something wrong with that replacing-stuff ;)

brgds
Om Tat Sat
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, I uploaded v0.3a now. That one fixes the errors from the setup.php file.

For the java stuff: I'm not sure what happens there, I use FF and the cact system I use is a CentOS linux ...

Can you (both) send me the HTML source of one of the graph_view.php pages ?

Alternatevly we can hace a remote session ( using teamviewer ) ?

Maybe you use a .htaccess file so the AJAX reques to the updatedb_nmidWeb2.php file fails ... ?

Nevertheless, I'm going to install a new CentOS system to test this out ...
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 : CereusReporting
Joop
Posts: 25
Joined: Thu Apr 26, 2007 5:27 am

Post by Joop »

Hi Phalek,

Found the problem, its Notices which also uses Ajax that is the culprit. Don't know yet why but disabling it makes your extension work.

Regards,

Joop
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

For the JS error in the jquery file:

It's a permission error, running the following cmd in the plugins dir fixes that one:

Code: Select all

chown -R apache.cacti nmidWeb2

And also remove the js and css directory from the main cacti dir ( /path/to/cacti/js and /path/to/cacti/css ...)

Change this according to your settings ...
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 : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hyperlord do you have any other nmid plugins installed, especially the nmidSmokeping one ?
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 : CereusReporting
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

Hi phalek,

yeah I got smokeping in the plug-in directory, but didn't have it installed, neither activated.

I'll check all of your suggestions tomorrow, have been out of office (customer service) the whole day. Follow-Up wednesday ...

Anyway I'll integrate this in my private Cacti at home this evening, there are no other nmid plug-ins installed yet ;)

@joop: Okay, I have notices in the plug-in directory, too, not installed or such, will remove that tomorrow, too.

brgds
Om Tat Sat
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, I just checked:

CentOS 5.4 with latest updates ( 32 bit )
EPEL added to yum repository
Cacti 0.8.7e and PIA 2.6 installed

Install of nmidWeb2 as of the project page: Ajax and Database updates working just fine.

So I need to test compaitiblity issues with the plugins you mention. There's probably some issues there with the different JavaScript libraries used ... :-(
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 : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests