Browse Source

améliore les choses

master
vince vince 3 years ago
parent
commit
7a7f9f2eb3
1 changed files with 13 additions and 4 deletions
  1. +13
    -4
      Makefile

+ 13
- 4
Makefile View File

@ -110,6 +110,7 @@ run:
$(BUILD_DIR)/cpu-daily$(EXTENSION): cpu.rrd
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
--title "Processeur" \
--upper-limit 100 \
DEF:user=$<:user:AVERAGE \
DEF:nice=$<:nice:AVERAGE \
DEF:sys=$<:sys:AVERAGE \
@ -161,14 +162,19 @@ $(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 \
VDEF:rbytesmax=rbytes,MAXIMUM \
CDEF:rbytesps=rbytes,60,/ \
VDEF:rbytespsmax=rbytesps,MAXIMUM \
DEF:tbytes=$<:tbytes:AVERAGE \
VDEF:tbytesmax=tbytes,MAXIMUM \
CDEF:tbytesps=tbytes,60,/ \
VDEF:tbytespsmax=tbytesps,MAXIMUM \
CDEF:ntbytes=tbytes,-1,* \
HRULE:0#$(INFO) \
AREA:rbytes#$(DANGER):"reçu" \
GPRINT:rbytesmax:"%6.2lf %Sb" \
COMMENT:"maximum " \
GPRINT:rbytespsmax:"%6.2lf %So/s" \
AREA:ntbytes#$(SUCCESS):"envoyé" \
GPRINT:tbytesmax:"%6.2lf %Sb"
COMMENT:"maximum " \
GPRINT:tbytespsmax:"%6.2lf %So/s"
$(BUILD_DIR)/disk-daily$(EXTENSION): disk.rrd
rrdtool graph $@ --imgformat $(FORMAT) --end now --start end-$(DAY_IN_SECS) \
@ -178,7 +184,10 @@ $(BUILD_DIR)/disk-daily$(EXTENSION): disk.rrd
CDEF:bfsfree=mbfsfree,1024,*,1024,* \
DEF:mbfsused=$<:mbfsused:AVERAGE \
CDEF:bfsused=mbfsused,1024,*,1024,* \
CDEF:pfsused1=bfsused,100,*,bfsused,bfsfree,+,/ \
VDEF:pfsused2=pfsused1,AVERAGE \
AREA:bfsused#$(DANGER):"utilisé":STACK \
GPRINT:pfsused2:"%3.2lf %%" \
AREA:bfsfree#$(SUCCESS):"libre":STACK
$(BUILD_DIR)/%.html: %.php


Loading…
Cancel
Save