Skip to content

Instantly share code, notes, and snippets.

@NetworksAreMadeOfString
Created February 16, 2012 12:01
Show Gist options
  • Save NetworksAreMadeOfString/1844355 to your computer and use it in GitHub Desktop.
Save NetworksAreMadeOfString/1844355 to your computer and use it in GitHub Desktop.
Script for RRDTool tuning of LACP links that were administratively down when Cacti detected them
#!/bin/bash
for i in `ls -l /var/www/html/rra/ | grep !!!RRDNAME!!! | awk '{print $9}'`
do
rrdtool tune /var/www/html/rra/$i -a traffic_out=4000000000 && rrdtool tune /var/www/html/rra/$i -a traffic_in=4000000000
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment