[rrd-users] Threaded reachability rrd [create|update]r
Shawn
core at enodev.com
Thu Dec 18 19:28:11 MET 2003
If it's useful to anyone I've written a threaded reachability ping rrd
updater which collects pct_loss, rrt_min, rrt_avg and rrt_max.
The ping count and number of threads are configurable via command line
among other things.
Right now you can modify a hash assignment in the script to add
addresses to monitor or you can use the
--places="<rrd_prefix>:<addr>:<label>#<rrd_prefix>:<addr>:<label>"
command line option. (':' is a field separator and '#' is the record
seperator).
Here are a couple example runs: (sorry if it line-wraps)
bash-2.05b$ ~/rrds/rrd-reachability-updater.pl --count=5 --threads=3
--debugpids
Thu Dec 18 12:23:44 2003 : Child->652 doing google
Thu Dec 18 12:23:44 2003 : Child->654 doing umd
Thu Dec 18 12:23:44 2003 : Child->656 doing yahoo
Thu Dec 18 12:23:44 2003 :
RRDs::update(/home/core/rrds/reachability-google.rrd,"1071771824:0:54.955:64.576:75.505");
Thu Dec 18 12:23:44 2003 :
RRDs::update(/home/core/rrds/reachability-umd.rrd,"1071771824:0:94.844:105.063:115.810");
Thu Dec 18 12:23:44 2003 :
RRDs::update(/home/core/rrds/reachability-yahoo.rrd,"1071771824:0:45.221:58.362:72.091");
bash-2.05b$ ~/rrds/rrd-reachability-updater.pl --count=5 --threads=2
--debugpids
Thu Dec 18 12:23:56 2003 : Child->3287 doing google
Thu Dec 18 12:23:56 2003 : Child->3289 doing umd
Thu Dec 18 12:23:56 2003 :
RRDs::update(/home/core/rrds/reachability-google.rrd,"1071771836:0:58.175:68.838:90.500");
Thu Dec 18 12:23:56 2003 :
RRDs::update(/home/core/rrds/reachability-umd.rrd,"1071771836:0:98.132:111.839:141.279");
Thu Dec 18 12:24:00 2003 : Child->4659 doing yahoo
Thu Dec 18 12:24:00 2003 :
RRDs::update(/home/core/rrds/reachability-yahoo.rrd,"1071771840:0:48.778:62.220:71.084");
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list