Ticket #111 (new task)

Opened 2 years ago

unxsBind and others

Reported by: Dylan Owned by: Hugo Urquiza
Priority: normal Milestone: Bugs and enhancements
Component: unxsVZ Severity: Creates Confusion
Keywords: rrdtool reports graphs Cc:

Description

rrdtool databases should all use DERIVE and MAX vals to avoid reboot spikes in rr dbs. Then the create sections of any scripts etc. should be updated in all unxsVZ subsystems that use them.

See tools/rrdtool/vz_traffic_log.sh for an example, relevant section:

       if ! test -e $RRDFILE; then
                #1 day every sample and one day of 15 min avgs
                /usr/bin/rrdtool create $RRDFILE --start N --step 300 \
                DS:in:DERIVE:600:0:10000000 \
                DS:out:DERIVE:600:0:10000000 \
                RRA:AVERAGE:0.5:1:600 \
                RRA:AVERAGE:0.5:6:700 \
                RRA:AVERAGE:0.5:24:775 \
                RRA:AVERAGE:0.5:288:797 \
                RRA:MAX:0.5:1:600 \
                RRA:MAX:0.5:6:700 \
                RRA:MAX:0.5:24:775 \
                RRA:MAX:0.5:288:797
                if [ $? != 0 ];then
                        fLog "rrdtool create $veid error";
                        continue;
                fi
        fi

Notes:

The comment about data stored in the code above is incorrect the rrdb created has data for months, which is very useful for future report features.

Note: See TracTickets for help on using tickets.