Hi
I'm running into the same issue.
config:
Operating System:windows XP
Webserver: Apache2.2
Cacti: 0.8.7d
MySQL: 5.0.77
PHP: 5.2.9
RRDTool (Cygwin or Win32 version): 1-2.15
Net-SNMP:5.4.2.1-1
Cygwin (cygwin1.dll version): 1.5.20
Plugin Architecture: P2.4
plugins: aggregate v0.71
loginmod v1.0
monitor v0.9
settings v0.6
superlinks v0.8
discovery v0.9
I tested every solution I found on the forum:
I changed the snmp version in the findhosts.php file from 1 to 2, I checked View Host Auto-Discovery in the admin user settings/permission realm tab.
I can run findhosts.php by myself and it returns this results:
Code: Select all
Checking to determine if it's time to run.
Checking if user changed the start time
The next run time has been determined to be at
2009-06-25 11:12:01
Scanning has been forced
Setting 'Rerun Data Queries' = false
Setting 'Create Graphs for Up Interfaces Only' = true
06/25/2009 11:08:08 AM - POLLER: Poller[0] Network Discover is now running
Primary Community Name : public
Secondary Community Names : armagedon
Calculating Info for Subnet :10.48.64.0-10.48.64.10
Start IP is 10.48.64.0
Total IPs is 11
10.48.64.0 is a valid device!PHP Warning: stristr(): Empty delimiter in C:\apache2\htdocs\cacti\plugins\discovery\findhosts.php on line 769
10.48.64.1 is a valid device!PHP Warning: stristr(): Empty delimiter in C:\apache2\htdocs\cacti\plugins\discovery\findhosts.php on line 769
10.48.64.2 is a valid device!PHP Warning: stristr(): Empty delimiter in C:\apache2\htdocs\cacti\plugins\discovery\findhosts.php on line 769
10.48.64.3 is a valid device!PHP Warning: stristr(): Empty delimiter in C:\apache2\htdocs\cacti\plugins\discovery\findhosts.php on line 769
10.48.64.4
10.48.64.5
10.48.64.6
10.48.64.7
10.48.64.8
10.48.64.9
When I comment this part of the code which is giving the error:
Code: Select all
function discover_find_os($text) {
global $os;
for ($a = 0; $a < count($os); $a++) {
/*if (stristr($text, $os[$a]['sysdescr'])) {
return $os[$a];
}*/
}
return false;
}
Then I don't get the php error messages but the results are the same:
Code: Select all
06/25/2009 11:08:24 AM - DISCOVER: Poller[0] 11 IPs Scanned, 4 IPs Responded to
Ping, 4 Responded to SNMP, 0 Device Added, 0 Graphs Added to Cacti
Plus I have to make it run manually because when set at a specific time it doesn't start !
Have you found a solution to your problem ? Something that could potentially help me ? Or any idea that I could try ? Any suggestion is the most welcome
thanks a lot
Marianne