Network discovery for Cacty

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

cigamit wrote:I'm thinking about trimming down the amount of initial info it shows, but instead have it show the Location, Contact, and Description as a DHTML popup when you mouse over the device.
Another excellent plugin!

How about a DHTML popup for port speeds in mac track though?! ;)
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

also getting a problem with the plugin
Unknown column 'hash' in 'order clause'
What's missing?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Alex72 wrote:First of all: This plugin is a very good idea and so long it is also well done -Thank you!

I installed the plugin and it seems that is working correctly, but I have a question about the interval when discover is scanning the subnet(s):
Where can I configure the time-interval? Is it hardcoded at the moment and if so where can I modify it?

Thanks,
Alex.
That is an option that is already set to be added, just haven't had the time yet.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

fmangeant wrote:
cigamit wrote:I went ahead and threw the developmental snapshot up on my site as a beta so everyone can test out and let me know how it works for them.
Hi cigamit

I installed the discovery plugin 0.1b on top of my test system (Cacti 0.8.6h + patches + plugin architecture 0.8 + monitor 0.4), and get this error when accessing the "discover" tab :

Code: Select all

Unknown column 'hash' in 'order clause'
This test system is running MySQL 4.1.14, Apache 2.0.55 and PHP 5.0.5
I assume you imported the discover.sql file? The "plugin_discover_hosts" table contains a column named "hash" which is actually a numberical representation of an IP address, to make sorting by the IP very simple.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

fmangeant wrote:Well, I'm running into another issue :

Code: Select all

$ php findhosts.php
02/01/2006 10:25:37 AM - POLLER: Poller[0] Network Discover is now running xx.xx.xx.xx
Fatal error: Call to undefined function socket_create() in /cacti/cacti-0.8.6h/lib/ping.php on line 117
Let's recompile PHP with sockets support...

To all Gentooers, add this to /etc/portage/package.use :

Code: Select all

dev-lang/php session cli xml sockets
Currently it uses the Cacti Ping library, but defaults to ICMP ping. Later, you will have the option to use UDP or TCP instead, so in that case you wouldn't need the sockets support.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi again

I had the plugin_discovery_{hosts,os} tables, but missed the "hash" column.
Dropped them and imported the .sql file, and now the plugin find hosts :D

Thanks !
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

Ah. Inserting the tables by hand worked for me also. Is this a flaw in the script or was the table already there?

Maybe a drop table before inserting would be nice.

Michael
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

mgb wrote:Ah. Inserting the tables by hand worked for me also. Is this a flaw in the script or was the table already there?

Maybe a drop table before inserting would be nice.

Michael
Actually, it was a flaw in the script that auto-imported the tables. Fixed now ofcourse, but since they are now there, you would have to drop an drop and reimport it to fix it.

yep, my bad!
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

discover tab doesnt appear

Post by vedd99 »

I have installed the discover plugin but the tab never appears.

I added the following line to cacti/include/config.php
$plugins[] = 'discover';

and dropped the files in /cacti/plugins/discover and imported the discover.sql file into the cacti db.

I checked for rights, etc, but I do not see anywhere to add and it doesn't appear available as a tab. Not sure what I'm missing? Running Cacti version 0.8.6h.
Allen K
Posts: 25
Joined: Sat Oct 15, 2005 9:34 pm

Post by Allen K »

change your folder name to discovery as well as the plugin name. I'm pretty sure the documentation has "discover" as the name. That should get it going
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Post by vedd99 »

Allen K wrote:change your folder name to discovery as well as the plugin name. I'm pretty sure the documentation has "discover" as the name. That should get it going
that worked! thanks
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

@Cigamit

For cosmetic reasons maybe change the add text to an add icon? It took me a little while to discover this was not only text.

Also, is it possible to remove a host from the discovered list when that host has been added to cacti?

Further the plugin works great.

Michael
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I'm wondering how soon the sockets requirement will be removed. I think that's what hosed me up last week - adding it via YaST. I don't know of a safer way to do it though...
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

knobdy wrote:I'm wondering how soon the sockets requirement will be removed. I think that's what hosed me up last week - adding it via YaST. I don't know of a safer way to do it though...
I will be adding the option to use UDP instead of ICMP fairly soon.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

cigamit wrote:
knobdy wrote:I'm wondering how soon the sockets requirement will be removed. I think that's what hosed me up last week - adding it via YaST. I don't know of a safer way to do it though...
I will be adding the option to use UDP instead of ICMP fairly soon.
OK, well I gave in to the peer pressure, and have now released v0.2, which adds the option for UDP/TCP/or ICMP pings, and also allows you to add a DNS server to query (port 53, using Mactracks excellent function).
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests