Network Management Integration Plugin ( v0.3.9a Build 129 )

Announcements concerning Plugins for Cacti

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 »

I'm currently thinking of adding a function to nmidPhpIP that lets user create configs for the ISC DHCPd ( http://www.isc.org/ ).

Anyone who might be interested in this ?
Any suggestions for other systems ?

I think this will make nmidPhpIP more usefull.
Any thoughts on this would be welcome.
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

The file
Attachments
cacti1.JPG
cacti1.JPG (50.51 KiB) Viewed 6251 times
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

I clicked on Enable, most also not appeared nothing.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

after installing and enabling the plugins, did you set the apropriate user rights in User Management ?
There are some additional settings there, as can be seen in the attached picture.
Attachments
nmid_settings.jpg
nmid_settings.jpg (17.55 KiB) Viewed 6232 times
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

Enable the options

But dont show me the options
Attachments
cacti1.JPG
cacti1.JPG (15.88 KiB) Viewed 6180 times
cacti2.JPG
cacti2.JPG (10.84 KiB) Viewed 6180 times
eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

Are you talking about the drop down menus?

as in here http://forums.cacti.net/viewtopic.php?t=26242
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

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

Post by phalek »

Hi eterzella.r.t

did you download Build 103 and installed it ? The previous version did have the error you describe.

You'll need to uninstall and again install the nmidTaskManager afterwards
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Post by wwwdrich »

I have run into a couple of problems getting build 103 up and running on my Cacti installation. I am running with the latest of everything, cacti 0.8.7b and plugin arch 2.1 (which is probably part of my problem).

Here is what I have run into so far:
  • Getting the nmid settings tab to show up was a mess. I eventually had to force the install through the Plugin Management panel by specifying ?mode=install&id=nmid in the URL. I'm not sure how the Plugin Management is supposed to find things, but it didn't see this plugin and from some of the things I have read on this forum I know that others have not been able to see the tab unless they use Plugin Management to install and activate it.
  • As a few others have reported, I had to manually create the config.php in the nmid directory. I'm not sure why, as the web server has the rights to write files there.
  • I had to run nmid_update.php to enable Smokeping, fortunately I found a listing in the forum on this as the documentation doesn't mention it.
  • nmidSmokeping/setup.php references /images/graph_zoom.gif instead of images/graph_zoom.gif. It will only work if cacti is installed in the root of the web server
  • There are a few places in the documentation where it mentions the wrong file, for example the smokeping install talks about editing getNetFlowHistory.pl instead of getSmokePingPath.pl.
  • nmid/graph_view.pl has a couple of argument errors to functions -- line 71 is using $host["id"] instead of $device, and the 2nd argument is missing at lines 84 and 85 (which should also be the device id, I believe)
  • There is no nmidGraphView.php in the nmidGraphView directory.
And the big one for me -- I'm still not getting my smokeping graphs. For some reason getSmokePingPath.pl isn't running, it is exiting with the error:

Code: Select all

mismatched tag at line 64, column 2, byte 1372 at /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/XML/Parser.pm line 187
Any idea what could be causing that?
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi wwwdrich

wow, that's a quite a long list i need to work with ... :-)

for the last one: You need to enable the nmidWebService plugin in global.php and setup a password. The url to the web-service and the password needs to be put in the .pl file:

Code: Select all

### START OF WEB SERVCE SETTINGS ###
my $webservice_password = 'myPass';
my $webservice_url = 'http://cactihost/plugins/nmidWebService/webservice.php?wsdl'';
my $tmp_dir = '/tmp/';
### END OF WEB SERVCE SETTINGS ###
with the nmid installation. It should work using the PA 2.x install mechanism. Didn't nmid show up in the "Uninstaleld" tab ?
The update file was specific for updating to one special version. I needed to change the default value for the nmid settings when upgrading nmid to use PA 2.x

make sure your mysql database / table host has the nwmgmt_settings in it and defaults to "s0000000000"
If not, execute the following in mysql:

Code: Select all

alter table host add nwmgmt_settings varchar(12) default "s0000000000";
Forget about the nmidGraphView stuff for now. It's a playground for the Ajax stuff ...

I'm looking into this in more detail and post an updated tar.gz file once I've fixed them.
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

Phalek,

I've upgrade nmid to the latest version, now nmidsmokeping did not showing the graph at all. I do check smokeping it self, and it work without a problem. Did I miss something?

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

Post by phalek »

Hi sizulku

You did forget to re-add the following code to the html_lib.php file:

Code: Select all

	if (!empty($leaf_id)) {
		do_hook_function('tree_after',$host_name.','.get_request_var("leaf_id"));
	}
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

Thanks Phalek, its work now!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Some updates to wwdrich comments:
wwwdrich wrote: Here is what I have run into so far:
  • Getting the nmid settings tab to show up was a mess. I eventually had to force the install through the Plugin Management panel by specifying ?mode=install&id=nmid in the URL. I'm not sure how the Plugin Management is supposed to find things, but it didn't see this plugin and from some of the things I have read on this forum I know that others have not been able to see the tab unless they use Plugin Management to install and activate it.
    should be solved with Build 105
  • As a few others have reported, I had to manually create the config.php in the nmid directory. I'm not sure why, as the web server has the rights to write files there.
    should be solved with Build 105, though the web-server needs to be able to create the file. the plugin now checks if it exists and doesn't just die
  • I had to run nmid_update.php to enable Smokeping, fortunately I found a listing in the forum on this as the documentation doesn't mention it.
    should be solved with Build 105
  • nmidSmokeping/setup.php references /images/graph_zoom.gif instead of images/graph_zoom.gif. It will only work if cacti is installed in the root of the web server
    fixed with Build 105
  • There are a few places in the documentation where it mentions the wrong file, for example the smokeping install talks about editing getNetFlowHistory.pl instead of getSmokePingPath.pl.
    I still need to update the documentation ...
  • nmid/graph_view.pl has a couple of argument errors to functions -- line 71 is using $host["id"] instead of $device, and the 2nd argument is missing at lines 84 and 85 (which should also be the device id, I believe)
    fixed with Build 105
  • There is no nmidGraphView.php in the nmidGraphView directory.
    nmidGraphView has been removed from Build 105
Oh and btw. Thanks for that detailed error report !
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Post by wwwdrich »

phalek wrote:Some updates to wwdrich comments:
Oh and btw. Thanks for that detailed error report !
No problem! The more detail, the easier things are to fix. :) (now we'll see what I can break with build 105....)

Build 105 does look better out of the box, both nmid and nmidSmokeping show up in the plugin management, and everything else seems to be fixed. Thanks! And thanks for the fix for the smokePing graphs -- I misread the documentation and put the URL of smokeping in the settings, not the URL of the nmidWebService plugin. With a bit of editing (setting the URL and password), fixing the path to perl in getSmokePingPath.pl, and making it executable, I now have smokePing graphs in Cacti! Thanks!!!

Oh, and I found part of my problem with the new plugin arch. I had an old copy of thold in my plugins directory, it was causing the plugin code to quit with an error about plugin_init_thold being redeclared. Moving that out of the directory fixed that problem and now all of the NMID plugins show up in the Plugin Management page as they should.

And one minor thing -- if I enable TaskManager I get errors in my web logs about nmidTaskManager/config.php not existing. I created it just to stop the errors.
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests