Discovery - ping results not correct

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
pcexhaust
Posts: 1
Joined: Tue Aug 03, 2010 7:52 pm

Discovery - ping results not correct

Post by pcexhaust »

When I run a discovery it doesn't detect a host that I know is pingable. Below, see the debug of findhosts.php which doesn't see 10.100.1.1 and the ping command which does. Any idea why this is happening and how I can fix it?

Note: When I do run findhosts.php, it does see some devices as pingable. It just doesn't catch all of them (like 10.100.1.1).

Code: Select all

[root@localhost ~]# cd /var/www/cacti/plugins/discovery/
[root@localhost discovery]# php findhosts.php -d -f
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
   2010-08-04 6:00:03
Scanning has been forced
Setting 'Rerun Data Queries' = true
Setting 'Create Graphs for Up Interfaces Only' = false
08/04/2010 05:06:32 AM - POLLER: Poller[0] Network Discover is now running
Rerunning Data Queries on Existing Hosts
  Host : Localhost
    Creating Graphs
Primary Community Name    : public
Secondary Community Names : 
Calculating Info for Subnet :10.100.1.0/24
Start IP is 10.100.1.1
Total IPs is 254
10.100.1.1 - Does not repond to ping!
10.100.1.2 - Does not repond to ping!
10.100.1.3 - Does not repond to ping!
10.100.1.4 [I killed the task as this point]
[root@localhost discovery]# ping 10.100.1.1
PING 10.100.1.1 (10.100.1.1) 56(84) bytes of data.
64 bytes from 10.100.1.1: icmp_seq=1 ttl=255 time=2.04 ms
64 bytes from 10.100.1.1: icmp_seq=2 ttl=255 time=1.42 ms

--- 10.100.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1477ms
rtt min/avg/max/mdev = 1.426/1.735/2.045/0.312 ms
[root@localhost discovery]# 
[/code]
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to provide better information. Here are base information:

1) Cacti Version
2) Discovery Version
3) Default Availability Method (Console->Settings) and Settings.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest