diff --git a/add b/add index cfc90ea..84a3eb7 100755 --- a/add +++ b/add @@ -1,7 +1,7 @@ #!/bin/bash # IngRRD (https://forge.riquer.fr/p/ingrrd/) -# Copyright (C) 2014 Vincent Riquer +# Copyright (C) 2014-2015 Vincent Riquer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/add.html b/add.html index 55f5a24..43cc39b 100755 --- a/add.html +++ b/add.html @@ -1,7 +1,7 @@ #!/bin/bash # IngRRD (https://forge.riquer.fr/p/ingrrd/) -# Copyright (C) 2014 Vincent Riquer +# Copyright (C) 2014-2015 Vincent Riquer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -42,48 +42,10 @@ cat <<-EOHTML EOHTML if ! [ -w "$rrdfile" ] then - rrdtool create ingress.rrd -s $((60*60)) \ - DS:AP:GAUGE:$((2*24*60*60)):0:NaN \ - DS:Explorer:GAUGE:$((48*60*60)):0:NaN \ - DS:Seer:GAUGE:$((48*60*60)):0:NaN \ - DS:XM:GAUGE:$((48*60*60)):0:NaN \ - DS:Hacker:GAUGE:$((48*60*60)):0:NaN \ - DS:Builder:GAUGE:$((48*60*60)):0:NaN \ - DS:Connector:GAUGE:$((48*60*60)):0:NaN \ - DS:Mind_Controller:GAUGE:$((48*60*60)):0:NaN \ - DS:MU:GAUGE:$((48*60*60)):0:NaN \ - DS:Longest_Link:GAUGE:$((48*60*60)):0:NaN \ - DS:Largest_Field:GAUGE:$((48*60*60)):0:NaN \ - DS:Recharger:GAUGE:$((48*60*60)):0:NaN \ - DS:Liberator:GAUGE:$((48*60*60)):0:NaN \ - DS:Pioneer:GAUGE:$((48*60*60)):0:NaN \ - DS:Purifier:GAUGE:$((48*60*60)):0:NaN \ - DS:Neutralized:GAUGE:$((48*60*60)):0:NaN \ - DS:Links_Destroyed:GAUGE:$((48*60*60)):0:NaN \ - DS:Fields_Destroyed:GAUGE:$((48*60*60)):0:NaN \ - DS:Walked:GAUGE:$((48*60*60)):0:NaN \ - DS:Guardian:GAUGE:$((48*60*60)):0:NaN \ - DS:Link_Maintained:GAUGE:$((48*60*60)):0:NaN \ - DS:Link_Length_x_Days:GAUGE:$((48*60*60)):0:NaN \ - DS:Field_Held:GAUGE:$((48*60*60)):0:NaN \ - DS:Field_x_Days:GAUGE:$((48*60*60)):0:NaN \ - DS:Mercenary:GAUGE:$((48*60*60)):0:NaN \ - DS:Engineer:GAUGE:$((48*60*60)):0:NaN \ - DS:Recruiter:GAUGE:$((48*60*60)):0:NaN \ - DS:Translator:GAUGE:$((48*60*60)):0:NaN \ - DS:Hackaton:GAUGE:$((48*60*60)):0:NaN \ - RRA:HWPREDICT:8760:8e-1:8e-1:$((24)) \ - RRA:AVERAGE:99e-2:1:$((24*15)) \ - RRA:MAX:99e-2:1:$((24*15)) \ - RRA:AVERAGE:99e-2:4:$((24*180)) \ - RRA:MAX:99e-2:4:$((24*180)) \ - RRA:AVERAGE:99e-2:24:$(((4*365)+1)) \ - RRA:MAX:99e-2:24:$(((4*365)+1)) \ - RRA:AVERAGE:99e-2:$((24*30)):$(((32*365)+8)) \ - RRA:MAX:99e-2:$((24*30)):$(((32*365)+8)) \ - || { + rrdcreate || { cat <<-EOHTML