|
|
| Author |
Message |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Wed Jun 11, 2008 11:13 pm Post subject: |
|
|
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 ).
|
|
| Back to top |
|
 |
frcoelho
Joined: 11 Jun 2008 Posts: 6
|
Posted: Thu Jun 12, 2008 1:23 pm Post subject: doesn´t show the tree |
|
|
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,
| Description: |
|
| Filesize: |
50.91 KB |
| Viewed: |
1940 Time(s) |

|
| Description: |
|
| Filesize: |
45.34 KB |
| Viewed: |
1940 Time(s) |

|
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Fri Jun 13, 2008 3:07 am Post subject: |
|
|
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.
| Description: |
|
 Download |
| Filename: |
get_data.php.tar.gz |
| Filesize: |
1.3 KB |
| Downloaded: |
73 Time(s) |
|
|
| Back to top |
|
 |
frcoelho
Joined: 11 Jun 2008 Posts: 6
|
Posted: Fri Jun 13, 2008 6:33 am Post subject: Almost :-) |
|
|
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
| Description: |
|
| Filesize: |
113.01 KB |
| Viewed: |
1895 Time(s) |

|
| Description: |
|
| Filesize: |
141.96 KB |
| Viewed: |
1895 Time(s) |

|
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
|
| Back to top |
|
 |
frcoelho
Joined: 11 Jun 2008 Posts: 6
|
Posted: Fri Jun 13, 2008 9:13 am Post subject: nmidPhpip |
|
|
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/documentation/poller.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
| Description: |
|
| Filesize: |
98.65 KB |
| Viewed: |
1880 Time(s) |

|
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Mon Jun 16, 2008 2:16 am Post subject: |
|
|
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 )
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
|
| Back to top |
|
 |
frcoelho
Joined: 11 Jun 2008 Posts: 6
|
Posted: Fri Jun 20, 2008 3:52 pm Post subject: Errors and Parser - Poller |
|
|
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,
| Description: |
|
| Filesize: |
78.5 KB |
| Viewed: |
1703 Time(s) |

|
| Description: |
|
| Filesize: |
41.5 KB |
| Viewed: |
1703 Time(s) |

|
| Description: |
|
| Filesize: |
68.14 KB |
| Viewed: |
1706 Time(s) |

|
| Description: |
|
| Filesize: |
25.35 KB |
| Viewed: |
1703 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
update_DB.pl |
| Filesize: |
1.22 KB |
| Downloaded: |
57 Time(s) |
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Tue Jul 08, 2008 4:22 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
frcoelho
Joined: 11 Jun 2008 Posts: 6
|
Posted: Wed Jul 16, 2008 9:10 am Post subject: Solved the problem for the search |
|
|
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
|
|
| Back to top |
|
 |
msw1970 Cacti User
Joined: 09 Jan 2007 Posts: 153
|
Posted: Thu Jul 24, 2008 9:44 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Thu Jul 24, 2008 3:40 pm Post subject: |
|
|
| Hi msw1970, did you try the pdf document as a start ?
|
|
| Back to top |
|
 |
msw1970 Cacti User
Joined: 09 Jan 2007 Posts: 153
|
Posted: Thu Jul 24, 2008 4:04 pm Post subject: |
|
|
| 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??
|
|
| Back to top |
|
 |
phalek Cacti User
Joined: 31 Jan 2008 Posts: 162 Location: Kressbronn, Germany
|
Posted: Fri Jul 25, 2008 3:03 am Post subject: |
|
|
ok, Make sure you also included the additonal code which is mentioned in that doc.
Also, you'll need to have the "nmid" plugin installed, so you can then configure the devices in the "Configure Devices" section. See the image below. That's where you need to "add" devices to smokeping and select the appropriate server.
Once you've done that, there will be a file in the nmidSmokeping directory that contains the "Target" section for the smokeping config. You'll need to add that to your smokeping config, otherwise the CGI that comes with the smokeping plugin will not be able to find the correct smokeping images.
| Description: |
|
| Filesize: |
36.17 KB |
| Viewed: |
1038 Time(s) |

|
|
|
| Back to top |
|
 |
|