0.8.7i PIA 3.1 and Discovery plugin not working on Centos

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
nicovpp
Posts: 2
Joined: Thu Mar 08, 2012 8:42 am

0.8.7i PIA 3.1 and Discovery plugin not working on Centos

Post by nicovpp »

Hello,

I have installed cacti 0.8.7i with PIA on a freshly installed Centos 6.2 server following this guide :

http://forums.cacti.net/viewtopic.php?f=2&t=46027

I don't have make anything more (no config for php or anything else)

Cacti works fine. I have installed also weathermap which is correctly working.

Then I tried to install discovery :

cd /usr/src/cacti/
wget http://docs.cacti.net/_media/plugin:dis ... v1.5-1.tgz -O discovery-v1.5-1.tgz
tar xvzf discovery-v1.5-1.tgz
mv discovery /var/www/html/plugins
cd /var/www/html/plugins
chown -R apache:apache discovery
vim ../include/plugins.php
-->
if (!is_array($plugins)) {
$plugins = array();
$plugins[] = 'weathermap';
$plugins[] = 'discovery';
}
-->

But I cannot see discovery tab under cacti, nor in misc settings.

I also tried (but not sure it was necessary) this :
mysql -u cactiuser -pcactiuser cacti < /var/www/html/plugins/discovery/discover.sql

But still no result. Nothing to see under cacti.log

Trying to launch it manually gives me this result :
php findhosts.php
03/08/2012 03:23:20 PM - POLLER: Poller[0] Network Discover is now running
03/08/2012 03:23:20 PM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!

I have already made many searches under cacti forums / google but didn't find anything useful. It seems that Discovery plugin is not loaded.

Does someone have any idea ?

Is discovery plugin 1.5 working with cacti 0.8.7i PIA on Centos 6.X for someone ?

Thanks
nicovpp
Posts: 2
Joined: Thu Mar 08, 2012 8:42 am

Re: 0.8.7i PIA 3.1 and Discovery plugin not working on Cento

Post by nicovpp »

Well it seems that I finally found the solution :

If I add discover plugin to the plugins.php it fails.

If I use the plugin management to enable discovery it seems to work (I'll confirm later)
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 and Discovery plugin not working on Cento

Post by gandalf »

The first method is not the recommended one, as you already discovered :wink:
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest