mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -66,7 +66,7 @@ config() {
|
|||
echo "$global_attr" | sed -e 's/^ *//' -e '/^$/d'
|
||||
|
||||
# print data source attributes
|
||||
# split line into field,type,draw,label
|
||||
# split line into field,type,draw,label
|
||||
local field type draw label
|
||||
echo "$data_attr" | while read -r field type draw label
|
||||
do
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
Tested with Solaris 10 and 11. And should work with Solaris 10 11/06 or above.
|
||||
|
||||
Note:
|
||||
In Solaris 11, fsstat command can get stats for each non-global zones in
|
||||
In Solaris 11, fsstat command can get stats for each non-global zones in
|
||||
global zone. (see man fsstat)
|
||||
In global zone, this plugin gets stats of only global zone.
|
||||
In global zone, this plugin gets stats of only global zone.
|
||||
In non-global zones, this plugin reports stats of the non-global zones.
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
@ -63,7 +63,7 @@ stat_regexp='/^(?!(class|crtime|snaptime|.*_bytes))/'
|
|||
# Graph settings
|
||||
global_attr="
|
||||
graph_title File system statictics - Activities of $( echo "$fs_type" | tr '[:lower:]' '[:upper:]' )
|
||||
graph_category disk
|
||||
graph_category disk
|
||||
graph_args --base 1000
|
||||
graph_vlabel Counts per second
|
||||
graph_info File system statictics - Activities of $( echo "$fs_type" | tr '[:lower:]' '[:upper:]' )
|
||||
|
@ -78,7 +78,7 @@ get_zone_id() {
|
|||
|
||||
zoneid=0
|
||||
osver=$( uname -r | cut -d. -f2 )
|
||||
|
||||
|
||||
if [ "$osver" -ge 11 ]; then
|
||||
zonename=$( zonename )
|
||||
zoneid=$( /usr/sbin/zoneadm list -p | awk -F: '$2 == "'"$zonename"'" { print $1 }' )
|
||||
|
@ -101,7 +101,7 @@ suggest() {
|
|||
kstat -p "unix:${zone_id}:${name_regexp}:/^(read_bytes|write_bytes)\$/" \
|
||||
| sed -e 's/vopstats_//' -e 's/:/ /g' \
|
||||
| awk '{
|
||||
sum[ $3 ] += $5
|
||||
sum[ $3 ] += $5
|
||||
}
|
||||
END {
|
||||
for ( i in sum ) {
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
Tested with Solaris 10 and 11.
|
||||
|
||||
Note:
|
||||
In Solaris 11, fsstat command can get stats for each non-global zones in
|
||||
In Solaris 11, fsstat command can get stats for each non-global zones in
|
||||
global zone. (see man fsstat)
|
||||
In global zone, this plugin gets stats of only global zone.
|
||||
In global zone, this plugin gets stats of only global zone.
|
||||
In non-global zones, this plugin reports stats of the non-global zones.
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
@ -86,7 +86,7 @@ get_zone_id() {
|
|||
|
||||
zoneid=0
|
||||
osver=$( uname -r | cut -d. -f2 )
|
||||
|
||||
|
||||
if [ "$osver" -ge 11 ]; then
|
||||
zonename=$( zonename )
|
||||
zoneid=$( /usr/sbin/zoneadm list -p | awk -F: '$2 == "'"$zonename"'" { print $1 }' )
|
||||
|
|
|
@ -78,7 +78,7 @@ config() {
|
|||
echo "$global_attr" | sed -e 's/^ *//' -e '/^$/d'
|
||||
|
||||
# print data source attributes
|
||||
# split line into field,type,draw,label
|
||||
# split line into field,type,draw,label
|
||||
local field type draw label
|
||||
echo "$data_attr" | while read -r field type draw label
|
||||
do
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
These functions are implemented:
|
||||
ops : similar to iostat r/s, w/s
|
||||
bytes : similar to iostat kr/s, kw/s
|
||||
bytes : similar to iostat kr/s, kw/s
|
||||
busy : similar to iostat %b, %w (%w usually indicates 0 in Sol10,11)
|
||||
queue : similar to iostat actv, wait
|
||||
latency : similar to iostat asvc_t, wsvc_t
|
||||
|
@ -25,11 +25,11 @@
|
|||
cd /path/to/munin/etc/plugins
|
||||
ln -s /path/to/munin/lib/plugins/io_disk .
|
||||
|
||||
The RRD files generated by io_busy_, io_ops_, io_bytes_ can be taken over
|
||||
The RRD files generated by io_busy_, io_ops_, io_bytes_ can be taken over
|
||||
by this plugin.
|
||||
Thus, please remove symlinks of those plugins before using this plugin.
|
||||
|
||||
By default, this plugin monitors disk devices. And also it can monitor
|
||||
By default, this plugin monitors disk devices. And also it can monitor
|
||||
NFS and Tape devices as much as io_* plugins with setting environments.
|
||||
|
||||
Note that instance names of nfs (e.g. nfs1) can be changed after reboot or
|
||||
|
@ -41,7 +41,7 @@
|
|||
example: env.class /disk|nfs|tape/
|
||||
default: disk
|
||||
|
||||
env.module - Module name. Only used in internal graph name.
|
||||
env.module - Module name. Only used in internal graph name.
|
||||
example: env.module something
|
||||
default: sd
|
||||
|
||||
|
@ -102,7 +102,7 @@ functions='ops bytes busy queue latency size'
|
|||
: "${graph_width:=}"
|
||||
|
||||
# Create map of instance name (e.g. sd0) and logical device name (e.g. c0t0d0)
|
||||
# Example:
|
||||
# Example:
|
||||
# name_sd1=c0t0d0
|
||||
# name_ssd2=c0tAB_1234d0 (shorten long target)
|
||||
# ...
|
||||
|
@ -213,7 +213,7 @@ do_config() {
|
|||
latency|size)
|
||||
for stat in reads writes
|
||||
do
|
||||
echo "${dev}_${stat}.label dummy"
|
||||
echo "${dev}_${stat}.label dummy"
|
||||
echo "${dev}_${stat}.graph no"
|
||||
echo "${dev}_${stat}.type DERIVE"
|
||||
echo "${dev}_${stat}.min 0"
|
||||
|
@ -243,7 +243,7 @@ do_config() {
|
|||
esac
|
||||
|
||||
# Print data attributes
|
||||
echo "${dev}_${conf_out}.label dummy"
|
||||
echo "${dev}_${conf_out}.label dummy"
|
||||
echo "${dev}_${conf_out}.graph no"
|
||||
echo "${dev}_${conf_out}.type DERIVE"
|
||||
echo "${dev}_${conf_out}.min 0"
|
||||
|
|
|
@ -98,11 +98,11 @@ BEGIN {
|
|||
phys=0
|
||||
}
|
||||
|
||||
/^Kernel/ { kernel=$2 }
|
||||
/^Kernel/ { kernel=$2 }
|
||||
/^ZFS File Data/ { zfs=$4 }
|
||||
/^Anon/ { anon=$2 }
|
||||
/^Anon/ { anon=$2 }
|
||||
/^Exec and libs/ { exec=$4 }
|
||||
/^Page cache/ { cacheused=$3 }
|
||||
/^Page cache/ { cacheused=$3 }
|
||||
/^Free \(cachelist\)/ { cachefree=$3 }
|
||||
/^Free \(freelist\)/ { free=$3 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue