Network Management Integration Plugin ( v0.3.9a Build 129 )
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 75
- Joined: Thu Oct 25, 2007 8:20 pm
-
- Cacti User
- Posts: 75
- Joined: Thu Oct 25, 2007 8:20 pm
-
- Cacti User
- Posts: 75
- Joined: Thu Oct 25, 2007 8:20 pm
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:
Any idea what could be causing that?
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.
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
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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:
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:
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.
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 ###
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";
I'm looking into this in more detail and post an updated tar.gz file once I've fixed them.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Hi sizulku
You did forget to re-add the following code to the html_lib.php file:
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"));
}
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Some updates to wwdrich comments:
Oh and btw. Thanks for that detailed error report !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
No problem! The more detail, the easier things are to fix. (now we'll see what I can break with build 105....)phalek wrote:Some updates to wwdrich comments:
Oh and btw. Thanks for that detailed error report !
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]
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
Who is online
Users browsing this forum: No registered users and 0 guests