Ping graph shows pinging what?
Moderators: Developers, Moderators
Ping graph shows pinging what?
After a few struggles I got cacti up and configured, but I got some questions.
Cacti running for the localhost shows 100ms ping constantly... but what's it pinging? it shouldn't be that high, and I'm not finding the target?!
When I setup a second target to graph, a non-local system, the pings report within normal ranges... less than 2 ms...
Under the device management, both systems list as under 3ms, which is to be expected... but why is my localhost graph showing results in the 100ms range?
Cacti running for the localhost shows 100ms ping constantly... but what's it pinging? it shouldn't be that high, and I'm not finding the target?!
When I setup a second target to graph, a non-local system, the pings report within normal ranges... less than 2 ms...
Under the device management, both systems list as under 3ms, which is to be expected... but why is my localhost graph showing results in the 100ms range?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The ping test will always ping the IP@/host name given in the target device's edit screen. This may/may not inlcude a name service lookup.
Apart from that, it will depend on the excat script that is used. Hmm, counting those that I'm aware of gives me the number of at least 4 (one of them is my personal version, not yet published).
Please tell us, what exact script you are using ATM
Reinhard
Apart from that, it will depend on the excat script that is used. Hmm, counting those that I'm aware of gives me the number of at least 4 (one of them is my personal version, not yet published).
Please tell us, what exact script you are using ATM
Reinhard
Using the default built in template script, I've not added or modified anything.gandalf wrote:The ping test will always ping the IP@/host name given in the target device's edit screen. This may/may not inlcude a name service lookup.
Apart from that, it will depend on the excat script that is used. Hmm, counting those that I'm aware of gives me the number of at least 4 (one of them is my personal version, not yet published).
Please tell us, what exact script you are using ATM
Reinhard
Also, I installed and am using Version 0.8.6j
Graph example (what's wrong):
http://www.cat6wired.net/cacti/graph.ph ... rra_id=all
Graph example (what's right):
http://www.cat6wired.net/cacti/graph.ph ... rra_id=all
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
So the scripts should look like That's a quite standard ping. But see the way it extracts the time. It could be in ms or in usec.
Reinhard
Code: Select all
#!/usr/bin/perl
open(PROCESS, "ping -c 1 $ARGV[0] | grep icmp_seq |");
$ping = <PROCESS>;
close(PROCESS);
$ping =~ m/(.*time=)(.*) (ms|usec)/;
print $2;
Reinhard
I did see that, and I'm guessing that's what is happening. Is there a way to force it to report in msec's, because usecs are quite annoying and I don't need that finite detail.gandalf wrote:Is it possible, that obe of them reports in "msec" while the other reports in "usec", which makes a difference of 1000?
Reinhard
Who is online
Users browsing this forum: No registered users and 5 guests