Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/solaris/fsstat_act_
12 12
  Tested with Solaris 10 and 11. And should work with Solaris 10 11/06 or above.
13 13

  
14 14
  Note:
15
    In Solaris 11, fsstat command can get stats for each non-global zones in 
15
    In Solaris 11, fsstat command can get stats for each non-global zones in
16 16
    global zone. (see man fsstat)
17
    In global zone, this plugin gets stats of only global zone.    
17
    In global zone, this plugin gets stats of only global zone.
18 18
    In non-global zones, this plugin reports stats of the non-global zones.
19 19

  
20 20
=head1 CONFIGURATION
......
63 63
# Graph settings
64 64
global_attr="
65 65
    graph_title File system statictics - Activities of $( echo "$fs_type" | tr '[:lower:]' '[:upper:]' )
66
    graph_category disk 
66
    graph_category disk
67 67
    graph_args --base 1000
68 68
    graph_vlabel Counts per second
69 69
    graph_info File system statictics - Activities of $( echo "$fs_type" | tr '[:lower:]' '[:upper:]' )
......
78 78

  
79 79
    zoneid=0
80 80
    osver=$( uname -r | cut -d. -f2 )
81
    
81

  
82 82
    if [ "$osver" -ge 11 ]; then
83 83
        zonename=$( zonename )
84 84
        zoneid=$( /usr/sbin/zoneadm list -p | awk -F: '$2 == "'"$zonename"'" { print $1 }' )
......
101 101
    kstat -p "unix:${zone_id}:${name_regexp}:/^(read_bytes|write_bytes)\$/" \
102 102
    | sed -e 's/vopstats_//' -e 's/:/ /g' \
103 103
    | awk '{
104
        sum[ $3 ] += $5 
104
        sum[ $3 ] += $5
105 105
    }
106 106
    END {
107 107
        for ( i in sum ) {

Formats disponibles : Unified diff