Skip to content

Instantly share code, notes, and snippets.

@tomgco
Created December 2, 2011 14:03
Show Gist options
  • Save tomgco/1423343 to your computer and use it in GitHub Desktop.
Save tomgco/1423343 to your computer and use it in GitHub Desktop.
Get the average packet loss from a smokeping rrd.
rrdtool graphv "-" DEF:a="TomMacMini.rrd":loss:AVERAGE CDEF:ploss=a,100,*,20,/ PRINT:ploss:AVERAGE:"Average\:%.2lf %% avg" --end now --start end-1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment