Advertisement
trishoar

mkrrd.sh

Feb 17th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Makes an RRD with a 5 minute update interval, a 10 minute heart beat. date is held for 24 hours as AVERAGE, MAX and LAST and 1 year as AVERAGE and MAX
  4. servers=(10.0.0.1 10.0.0.2 10.0.0.3 10.0.0.4)
  5. for i in ${servers[@]} ;do
  6.  
  7. rrdtool \
  8. create $i.rrd --step 300 \
  9. DS:GlobalWhitelist:COUNTER:600:0:U \
  10. DS:EmergancyBlocked:COUNTER:600:0:U \
  11. DS:OverideAllow:COUNTER:600:0:U \
  12. DS:OverideBlock:COUNTER:600:0:U \
  13. DS:OverideWhitelist:COUNTER:600:0:U \
  14. DS:BlockedSubnets:COUNTER:600:0:U \
  15. DS:CorporateSubnets:COUNTER:600:0:U \
  16. DS:FTPProxy:COUNTER:600:0:U \
  17. DS:Streaming:COUNTER:600:0:U \
  18. DS:BlockedURL:COUNTER:600:0:U \
  19. DS:OverideBlacklist:COUNTER:600:0:U \
  20. DS:CorpServers:COUNTER:600:0:U \
  21. RRA:AVERAGE:0.5:1:288 \
  22. RRA:MAX:0.5:1:288 \
  23. RRA:LAST:0.5:1:288 \
  24. RRA:AVERAGE:0.5:12:105408 \
  25. RRA:MAX:0.5:12:105408
  26.  
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement