Projet

Général

Profil

Révision 1e2bbe77

ID1e2bbe775e30b4f9fd1127124cc3cbbf71d33f90
Parent d42751c9
Enfant ff327623

Ajouté par Ken-ichi Mito il y a plus de 9 ans

fix - add clean_fieldname to make field name safe

  • lvm_: only add clean_fieldname
  • lvm_snap_used * add clean_fieldname * force y-axis scale to 0-100 %

Voir les différences:

plugins/disk/lvm_
44 44

  
45 45
EOF
46 46

  
47
. $MUNIN_LIBDIR/plugins/plugin.sh
48

  
49

  
47 50
if [ "$1" = "autoconf" ]; then
48 51
    if ! command -v lvs >/dev/null; then
49 52
        echo "no (lvs not found)"
......
64 67
vg=`echo $0 | awk '{ sub(".*lvm_","",\$1); print \$1; }'`
65 68

  
66 69
clean_name() {
67
    echo $1 | sed 's/[\/.-]/_/g'
70
    echo "$(clean_fieldname "$1")"
68 71
}
69 72

  
70 73

  

Formats disponibles : Unified diff