discovery plugin returns no hosts

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

discovery plugin returns no hosts

Post by saya »

hi all, it's me again - -0
the problem i met this time was about the discovery plugin..similar to the guy in http://forums.cacti.net/post-84853.html I've done the setting of discovery and set the poller frequency to "every day" and enabled "return data queries". Then I went back to Discovery tab but cannot detect any devices...

And i tried to command "php -q findhosts.php -f -d" in a terminal, it did creat graphs for the devices that I had already added in. According to doc, this plugin is for "auto-discovering devices on a subnet that are not monitored by Cacti". But why in my case it only creates graphs for those existing devices in stead of discoverying new devices?

Any ideas?
Thanks a lot!!!

Saya
Last edited by saya on Wed Feb 13, 2008 10:16 pm, edited 2 times in total.
riki17
Posts: 9
Joined: Tue Feb 12, 2008 5:41 am

Post by riki17 »

Hi, I've the same problem!!!
when I do "php -q findhosts.php -f -d" I find many valid devices.
But in cacti->discovery I see no hosts....
could someone help me?
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Post by saya »

today i found my discovery working! I didn't change any settings but it does return to me the switches that not yet added..it's working fine now!

now the question is, can I use discovery to monitor whether switches are added into the network by people privately? I wish to find it out as soon as possible once a device is plugged in un-authoritatively...And I find that the highest poller frequency is every one hour. Can I make it like every five mins?

Thanks thanks!!
regrads,

Saya
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

I got the same problem. When i do

Code: Select all

php -q findhosts.php -f -d
It returns with a "Invalid PHP_SELF Path" Can anyone help me?
alexsm
Posts: 6
Joined: Tue Feb 26, 2008 9:27 pm

Post by alexsm »

cjblade54 wrote:I got the same problem. When i do

Code: Select all

php -q findhosts.php -f -d
It returns with a "Invalid PHP_SELF Path" Can anyone help me?
Put the complete path before the filename findhosts.php like this:

Code: Select all

php -q /usr/local/share/cacti/plugins/discovery/findhosts.php -f -d
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests