ping function / packet-loss monitoring

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Phazer
Posts: 2
Joined: Mon Apr 15, 2002 8:09 am
Contact:

ping function / packet-loss monitoring

Post by Phazer »

hi folks,

first of all, thanks to all developers for this great piece of software..!

..lets have a look at my problem:
whenever i try to duplicate the existing ping_uunet_phi-function, i get the fallowing error message:

CANNOT FIND DATA SOURCE: /usr/local/httpd/htdocs/cacti/rra/ping_uunet_phi_copy.rrd

Nothing helped, I tried it several times, also with the "Update .rrd File"-checkbox..

Is there a better method to monitor a host with ping, and if yes, how?

My 2nd question is: Does anyone know how to monitor packet loss? Whould be gread if someone can help me..

thank you,
greets Phazer
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

For once ;-) that error is normal. It is simply saying that it cannot find the .rrd file associated with the data source that you just created. After changing the name to something more meaningful, this message should go away in less then 5 minutes (when cmd.php runs).

Also, I have never tried graphing packet loss from within cacti. Anyone else try this? I know there are other rrdtool-based packages that will do this though, such as Tobi's smokeping.

-Ian
pyuska
Posts: 8
Joined: Wed Feb 20, 2002 7:00 pm

Post by pyuska »

i am using mrtg-ping-probe to do this.
Guest

Graphing ping time and packet loss together

Post by Guest »

I wrote a script that returns the ping time and percent packet loss which I graph together. Ping time as an AREA and packet loss as an INF STACK with the color showing the percent of loss. You can see all my graphs here:

http://www.meshier.com/cacti/graph_view.php?action=tree

Brent Meshier
Global Transport Logistics
http://www.gtlogistics.com/
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I was very impressed when I saw this graph! Looks exactly like other rrdtool packet loss representations I have seen (which is good). Excellent work. Do you have to have the script that gathers packet loss available? I'm sure others would be interested making these kinds of graphs (including me ;-)).

-Ian
Guest

Code for ping / packet loss

Post by Guest »

Here is the short PERL script I wrote:

-----[ping.pl]-----
#!/usr/bin/perl

$ping = `/bin/ping -c $ARGV[0] -w 300 -n -q $ARGV[1]`;
($packet_loss) = ($ping =~ /packets received, (\d+)% packet loss/);
($round_trip) = ($ping =~ /round-trip min\/avg\/max\/mdev = \d+\.\d+\/(\d+\.\d+)\/.* ms/);

print "$round_trip $packet_loss";
-----[end]-----

Brent Meshier
Global Transport Logistics
http://www.gtlogistics.com/
Guest

Post by Guest »

Cool stuff ! Also, take a look at

http://www.grzyby.pl/monitor/ping.htm

for additional ping graphing options
kpsimm
Posts: 2
Joined: Mon Dec 30, 2002 6:09 pm
Location: San Ramon, CA; U.S.A.

Re: Graphing ping time and packet loss together

Post by kpsimm »

Anonymous wrote:I wrote a script that returns the ping time and percent packet loss which I graph together. Ping time as an AREA and packet loss as an INF STACK with the color showing the percent of loss. You can see all my graphs here:

http://www.meshier.com/cacti/graph_view.php?action=tree

Brent Meshier
Global Transport Logistics
http://www.gtlogistics.com/
These graphs look great. I'd like to know how to use the Cacti interface to create these. From the link above I can get to the rrdtool graph source data but I do not know how to specify all those parameters in the Cacti interface.

How about a Cacti import function?

Tnx
Kevin
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests