Page MenuHomePhabricator
Paste P3138

fix-ganglia-memcached.sh
ActivePublic

Authored by ori on May 19 2016, 11:08 AM.
#!/bin/bash
for dir in /srv/ganglia/rrds/Memcached\ eqiad/mc* ; do
cd "$dir"
rrdtool tune mc_get_hits_rate.rrd --minimum sum:0
rrdtool dump mc_get_hits_rate.rrd | rrdtool restore --range-check - mc_get_hits_rate.rrd-fix
mv mc_get_hits_rate.rrd-fix mc_get_hits_rate.rrd
chown nobody:root mc_get_hits_rate.rrd
done