0.8.7i PIA 3.1 + discovery plugin not working on Fredora 16

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

0.8.7i PIA 3.1 + discovery plugin not working on Fredora 16

Post by tung2000 »

I'm using Cacti 0.8.7i with PIA 3.1. I installed discovery plugin in plugins folder. But, in plugin management page, it won't show discovery plugin. Please advise the solution.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by gandalf »

Did you install from our code or from some distro? Which version of discovery is used?
R.
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

First, I try to install Cacti 0.8.7i RPM file and Plugin Architecture, Cacti-plugin-0.8.7h-PA-v3.0.tar.gz and Discovery 1.5-1
Result : Discovery Tab won't appear and discovery function won't work normally.

After that, I uninstall the Cacti 0.8.7i RPM. Install cacti-0.8.7i-PIA-3.1.tar.gz and and Discovery 1.5-1

Result : If I have set the Discovery to search a subnet 168.19.1.0/24 and set a Discovery template to assign the discovered SNMP node to the tree, only 168.19.1.X node with SNMP down status show in Discovery Filter page.
If I delete the Discovery template, it can show all 168.19.1.0 nodes but the Host Column value are all "Not Detected". All node are Cisco routers and switches

Are above result normal?

During troubleshooting, I ever try to reinstall Discovery plugin several times and run below command for several times. Any bad impact to the Cacti database? Do I need to drop the Cacti database and create it again? Thanks!

mysql –u root –p cacti < discover.sql
Cacti Discovery.JPG
Cacti Discovery.JPG (138.65 KiB) Viewed 4778 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by gandalf »

tung2000 wrote:After that, I uninstall the Cacti 0.8.7i RPM. Install cacti-0.8.7i-PIA-3.1.tar.gz and and Discovery 1.5-1

Result : If I have set the Discovery to search a subnet 168.19.1.0/24 and set a Discovery template to assign the discovered SNMP node to the tree, only 168.19.1.X node with SNMP down status show in Discovery Filter page.
If I delete the Discovery template, it can show all 168.19.1.0 nodes but the Host Column value are all "Not Detected". All node are Cisco routers and switches

Are above result normal?
That depends on what the DNS reverse lookup yields. An this requires, that you've defined a correct DNS server to be queries.
During troubleshooting, I ever try to reinstall Discovery plugin several times and run below command for several times. Any bad impact to the Cacti database? Do I need to drop the Cacti database and create it again? Thanks!

mysql –u root –p cacti < discover.sql
See "System Utilities" to find an option to truncate the discovery table for a fresh findhost run. Apart from that, no worries.

You may perhaps want to add more SNMP credentials in case you're using more than a single setup. Discovery will then scan them one-by-one against any host to find e.fg. the sysDescr string
R.
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

In first case, I failed to use Discovery pluign. Is Cacti 0.8.7i RPM not compatible with Cacti-plugin-0.8.7h-PA-v3.0?

If the devices are Cisco routers and switches and they won't have host record in DNS, is it not possible to show the hostname in Discovery page?

Refer to this link, http://docs.cacti.net/manual:087:1_installation.9_pia, PIA will autodetect PIA 2.x-Type Plugins in plugins directory. I just need to click install and enable button in plugin managment page to use the plugin. Then, do I still need to run below SQL command when installing the plugin?

mysql –u root –p cacti < discover.sql
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

See "System Utilities" to find an option to truncate the discovery table

Do you mean using clearing discovery cache option in System Utilities?
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

tung2000 wrote:See "System Utilities" to find an option to truncate the discovery table

Do you mean using clearing discovery cache option in System Utilities?
Is it "Clear Discovery Results"? in System Utilities.

If I only need to scan one host, i.e. 192.168.1.1, do I just need to enter the IP address 192.168.1.1 without subnet mask /24 in setting --> Misc page?

Thanks a lot!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by gandalf »

tung2000 wrote:In first case, I failed to use Discovery pluign. Is Cacti 0.8.7i RPM not compatible with Cacti-plugin-0.8.7h-PA-v3.0?
We always packaged cacti base with a specific PIA to be sure that both work together. In case you're fiddeling with this, I strongly recommend to use 087i+PIA3.0 tar.gz
If the devices are Cisco routers and switches and they won't have host record in DNS, is it not possible to show the hostname in Discovery page?
So, where should that hostname come from? We do an IP range scan, so we only have IP@ in first instance. To get the hostname, we have to perform a reverse DNS lookup.
Refer to this link, http://docs.cacti.net/manual:087:1_installation.9_pia, PIA will autodetect PIA 2.x-Type Plugins in plugins directory. I just need to click install and enable button in plugin managment page to use the plugin. Then, do I still need to run below SQL command when installing the plugin?
This depends on the plugin. In early stages, many plugin developers shipped seperate <plugin>.sql files. Later, this was usually implemented in setup.php. If there IS an sql file, it usually won't hurt to run that.
R.
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

You said "See System Utilities to find an option to truncate the discovery table"
Is it the option "Clear Discovery Results" in System Utilities?

Thanks!
tung2000
Posts: 12
Joined: Thu Mar 29, 2012 8:44 am

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by tung2000 »

If I only need to scan one host, i.e. 192.168.1.1, Do I just need to enter the IP address 192.168.1.1 without subnet mask /24 in setting --> Misc page?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by gandalf »

tung2000 wrote:You said "See System Utilities to find an option to truncate the discovery table"
Is it the option "Clear Discovery Results" in System Utilities?

Thanks!
Yes
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by gandalf »

tung2000 wrote:If I only need to scan one host, i.e. 192.168.1.1, Do I just need to enter the IP address 192.168.1.1 without subnet mask /24 in setting --> Misc page?
Never tried that. As you already know this very IP, it does not make sense to me to re-find that IP (which you already know) via discovery. But it may work to define a /32 subnet which indeed means a single host's entry
R.
lmn40227
Posts: 1
Joined: Tue Apr 10, 2012 1:06 pm

Re: 0.8.7i PIA 3.1 + discovery plugin not working on Fredora

Post by lmn40227 »

See "System Utilities" to find an option to truncate the discovery table

Do you mean using clearing discovery cache option in System Utilities?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests