Introduction
We needed to add several metrics to the aggregated pinger reports. These included:
- The Mean Opportunity Score
- Alpha a directness of connection measure
- Maximum RTT (as an aid for exposing buffer bloat).
Implementation
We wrote a script wrapper_for_hourly.pl that calls wrap_analyze_hourly.pl to analyze the gathered raw ping data from the monitoring hosts and create the hourly aggregated data. The script enables one to select the metrics to be calculated, the time frame, the ping size and the host or site. the output is the aggregated hourly data
The output directory was of the form
/nfs/slac/g/net/pinger/pingerreports/new/hep/maximum_rtt/maximum_rtt-100-by-node-1999-11-19.txt.gz
Note the "new". This enabled us to create all the aggregated reports for the selected metrics, check them out and then move or copy them to the regular file space, i.e. to:
/nfs/slac/g/net/pinger/pingerreports/hep/maximum_rtt/maximum_rtt-100-by-node-1999-11-19.txt.gz
This was typically run as a batch job (since it takes a long time to run) with the output shown here.
We also added these metrics to the pingtable.pl form.