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

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

nmidPhpip does not work

Post by frcoelho »

Hi Phalek!

I am trying to install nmidPhpip but I can´t get it work. I´ve installed only nmidPhpip plugin through global.php

I can create a CIDR, a Prefix but when I click at "NMID php IP" it doesn´t show me the tree.

Could you help me?

PS: see my cacti at the images


Regards,

[/img]
Attachments
ScreenShot071.jpg
ScreenShot071.jpg (50.33 KiB) Viewed 6385 times
ScreenShot072.jpg
ScreenShot072.jpg (27.3 KiB) Viewed 6385 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi,

You'll also need to enable the "nmid" main plugin via the PIA. That one contains the java script files needed for the nmidPhpIP installation. Otherwise you won't see anything (as in the screenshots you provided ).
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

doesn´t show the tree

Post by frcoelho »

Hi Phalek!

I installed nmid and now I can see a folder icon, but does not show the tree. I do have some CIDRs configured as you can see, but it onlys appear the cacti tree.
It also does not show a tab for NMID.

help me. :-)

Regards,
Attachments
ScreenShot074.jpg
ScreenShot074.jpg (45.34 KiB) Viewed 6127 times
ScreenShot073.jpg
ScreenShot073.jpg (50.91 KiB) Viewed 6127 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, I guess I found the error.

Please replace the get_data.php file with the one in this tar archive. Please report back if it works, so I can include it in the main distribution.
Attachments
get_data.php.tar.gz
(1.3 KiB) Downloaded 235 times
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

Almost :-)

Post by frcoelho »

Hi Phalek!

It almost work. It shows now my entire graph tree, while it should show only my CIDR tree. Also when I clic at a network, it generates some error. See attached.

Thank you for your help.

Regards,

Fernando
Attachments
ScreenShot075.jpg
ScreenShot075.jpg (141.96 KiB) Viewed 6072 times
ScreenShot076.jpg
ScreenShot076.jpg (113.01 KiB) Viewed 6072 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

seems like you're the first one to use the DNS reolve option :-)

here's an updated display.php file.


How do you want to have the cacti tree thing changed ? only display tree entries that have IP subnet childrens ?
Attachments
display.php.tar.gz
(9.24 KiB) Downloaded 263 times
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

nmidPhpip

Post by frcoelho »

Phalek,

It works. Thank you.

For the tree, I would like to have only the CIRDs that I included + description, and not the trees of my configured devices. Take a look at the attachment. What mens green and red symbols that I assigned?

Also, is it possible to check each ip it it is alive or not? Just like Ipplan does?

Take a look at this:

http://iptrack.sourceforge.net/document ... oller.html

If you could, just insert a column a with the following register:

D polled today
W polled within last week
M last month
Y last year


Regards,

Fernando
Attachments
ScreenShot078.jpg
ScreenShot078.jpg (98.65 KiB) Viewed 6057 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I guess it is easier to create a plugin for iptrack than to add these functionalities to phpIP. I'll have a look at it anyway, but it will take some time, as I don't have that much (time) at the moment ...

For the Tree stuff: I'll change that this week ( can be optionally enabled/disabled in the settings tab then )
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I'm currently updating the nmid web-page with install instructions and download links for the latest nmid version.

Feel free to have a look around :
http://www.urban-software.de/fcaps/faul ... /nmid.html
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

Errors and Parser - Poller

Post by frcoelho »

Hi Phalek,

I found some errors. Here they are:


- When I try to set the mask to all IPs in a CIDR using set default, it does not work.

- When I try to print report, it shows me the error attached.

- When I see any of my graphs, it always shows me "Fatal error: Call to undefined function do_hook_funcion() in /home/cacti/cacti-0.8.7b/lib/html_tree.php on line 797 ". Also see attached.


I also did a parser using Nmap to upload some fields "automatically". Bellow are the fields:

Device Model -> Vendor
Device Manufacturer -> Mac-address
Device Custom 1 -> date and time of the last poller

See example attached and also the script parser.

To improve it, it would be good to display the date and time at the field Device Custom 1 like:
green -> when it was polled at the same day
yellow -> when it was polled at the last monty but not at the day
red -> when it was polled some day but not at the last month.

Could you help me with this?

To get the script working you will have to edit with your parameters, install perl modules Nmap::Parser, XML::Twig and DBI and run insert at crontab.


Also when I try to search any mac-addres selecting search->device manufacturer

it shows me the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cacti/cacti-0.8.7b/plugins/nmidPhpip/search.php on line 83
Also attached.

Once more, thank you for your help and congratulations for the great job.


Regards,
Attachments
search_error.jpg
search_error.jpg (25.35 KiB) Viewed 5880 times
example.jpg
example.jpg (68.14 KiB) Viewed 5883 times
graph_error.jpg
graph_error.jpg (41.5 KiB) Viewed 5880 times
report_error.jpg
report_error.jpg (78.5 KiB) Viewed 5880 times
update_DB.pl
(1.22 KiB) Downloaded 183 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi All,

I managed to change jobs and am planing to move to southern germany ( Bodensee ), so I don't have a lot time right now to work on the plugin.

I'm trying to do some of the stuff frcoelho mentions in his post this weekend.
frcoelho
Posts: 6
Joined: Wed Jun 11, 2008 2:10 pm

Solved the problem for the search

Post by frcoelho »

Hi Phalek!

Good luck in your new job.

I found the error for the search:
"Also when I try to search any mac-addres selecting search->device manufacturer

it shows me the error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cacti/cacti-0.8.7b/plugins/nmidPhpip/search.php on line 83
Also attached. "


It was a wrong string at "/plugins/nmidPhpip/search.php"

At lines 149 and 151 you sould correct the following values:

<option value="deviceLocation" >Device Location</option>
<option value="deviceManufacturer" >Device Manufacture</option>

Regards,

Fernando Coelho
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

Does anyone have an idiots guide to getting the smokeping integration working??

I have a working installation of smokeping running on the same box as cacti.

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

Post by phalek »

Hi msw1970, did you try the pdf document as a start ?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

phalek wrote:Hi msw1970, did you try the pdf document as a start ?
I did indeed... I think I've entered the correct paths & urls in Cacti but I cannot see how cacti knows which smokeping graphs to pick up??
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests