Skip to content

Commit

Permalink
Restored rrd database creation, removed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
motoz committed Feb 25, 2013
1 parent 45e56d0 commit f79b70f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pellmonsrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,15 @@ def run(self):
'reset_alarm': { ('4.99','zzzz') : command ( 'V02', 0, 0) },
}

# Build a command string to create the rrd database
RrdCreateString="rrdtool create "+db+" --step 10 "
for item in pollData:
RrdCreateString=RrdCreateString+"DS:%s:GAUGE:60:U:U " % item
RrdCreateString=RrdCreateString+"RRA:AVERAGE:0,999:1:20000 \
RRA:AVERAGE:0,999:10:20000 \
RRA:AVERAGE:0,999:100:20000 \
RRA:AVERAGE:0,999:1000:20000"

# Build a dictionary of parameters supported on version_string
dataBase={}
for param_name in dataBaseMap:
Expand Down

0 comments on commit f79b70f

Please sign in to comment.