munin plugin with multiple instances of varnish

Paul Mansfield paul.mansfield at taptu.com
Tue Dec 8 11:36:22 CET 2009


On 08/12/09 10:34, Paul Mansfield wrote:
> here's a one-liner that will do the job; I opted to copy the RRDs rather
> than rename, just in case...
> 
> for Y in $X; do Z=`echo $Y | sed 's/varnish_/varnish_NAME__/'`; echo $Y
> $Z; cp -p $Y $Z ; done

oops, there was a preceding line missing so it should be

X=`ls HOSTNAME*-varnish_* | grep -v varnish__`

for Y in $X; do Z=`echo $Y | sed 's/varnish_/varnish_NAME__/'`; echo $Y
$Z; cp -p $Y $Z ; done




More information about the varnish-dev mailing list