|
|
@ -19,7 +19,7 @@ INFO1 = 0AA2C0 |
|
|
|
INFO2 = 0DCAF0 |
|
|
|
INFO3 = 3DD5F3 |
|
|
|
|
|
|
|
IFACE = eth0 |
|
|
|
IFACE ?= eth0 |
|
|
|
|
|
|
|
FORMAT = SVG |
|
|
|
EXTENSION = .$(shell echo $(FORMAT) |tr '[:upper:]' '[:lower:]') |
|
|
@ -108,6 +108,7 @@ run: |
|
|
|
|
|
|
|
$(BUILD_DIR)/cpu-daily$(EXTENSION): cpu.rrd |
|
|
|
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
|
|
|
|
--title "Processeur" \
|
|
|
|
DEF:user=$<:user:AVERAGE \
|
|
|
|
DEF:nice=$<:nice:AVERAGE \
|
|
|
|
DEF:sys=$<:sys:AVERAGE \
|
|
|
@ -131,6 +132,7 @@ $(BUILD_DIR)/cpu-daily$(EXTENSION): cpu.rrd |
|
|
|
|
|
|
|
$(BUILD_DIR)/load-daily$(EXTENSION): load.rrd |
|
|
|
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
|
|
|
|
--title "Processeur" \
|
|
|
|
DEF:ldavg-1=$<:ldavg-1:AVERAGE \
|
|
|
|
DEF:ldavg-5=$<:ldavg-5:AVERAGE \
|
|
|
|
DEF:ldavg-15=$<:ldavg-15:AVERAGE \
|
|
|
@ -140,6 +142,7 @@ $(BUILD_DIR)/load-daily$(EXTENSION): load.rrd |
|
|
|
|
|
|
|
$(BUILD_DIR)/mem-daily$(EXTENSION): mem.rrd |
|
|
|
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
|
|
|
|
--title "Mémoire" \
|
|
|
|
DEF:kbmemfree=$<:kbmemfree:AVERAGE \
|
|
|
|
DEF:kbbuffers=$<:kbbuffers:AVERAGE \
|
|
|
|
DEF:kbcached=$<:kbcached:AVERAGE \
|
|
|
@ -151,6 +154,7 @@ $(BUILD_DIR)/mem-daily$(EXTENSION): mem.rrd |
|
|
|
|
|
|
|
$(BUILD_DIR)/net-daily$(EXTENSION): net.rrd |
|
|
|
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
|
|
|
|
--title "Réseau" \
|
|
|
|
DEF:rbytes=$<:rbytes:AVERAGE \
|
|
|
|
DEF:tbytes=$<:tbytes:AVERAGE \
|
|
|
|
CDEF:ntbytes=tbytes,-1,* \
|
|
|
@ -159,6 +163,7 @@ $(BUILD_DIR)/net-daily$(EXTENSION): net.rrd |
|
|
|
|
|
|
|
$(BUILD_DIR)/disk-daily$(EXTENSION): disk.rrd |
|
|
|
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
|
|
|
|
--title "Disque" \
|
|
|
|
DEF:mbfsfree=$<:mbfsfree:AVERAGE \
|
|
|
|
DEF:mbfsused=$<:mbfsused:AVERAGE \
|
|
|
|
AREA:mbfsused#$(DANGER):mbfsused:STACK \
|
|
|
|