mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fixed instance order using port number and not pid anymore
This commit is contained in:
parent
9ec552e04e
commit
08c3a67e8b
@ -61,7 +61,7 @@ module Munin
|
|||||||
|
|
||||||
# fetch all pids that match thin
|
# fetch all pids that match thin
|
||||||
def get_pids
|
def get_pids
|
||||||
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}'`.split(/\r?\n/)
|
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}' | sort -t'|' -nk 2`.split(/\r?\n/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def autoconf
|
def autoconf
|
||||||
|
@ -65,7 +65,7 @@ module Munin
|
|||||||
|
|
||||||
# fetch all pids that match thin
|
# fetch all pids that match thin
|
||||||
def get_pids
|
def get_pids
|
||||||
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}'`.split(/\r?\n/)
|
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}' | sort -t'|' -nk 2`.split(/\r?\n/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def autoconf
|
def autoconf
|
||||||
|
@ -63,7 +63,7 @@ module Munin
|
|||||||
|
|
||||||
# fetch all pids that match thin
|
# fetch all pids that match thin
|
||||||
def get_pids
|
def get_pids
|
||||||
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}'`.split(/\r?\n/)
|
pids = `pgrep -f 'thin' -l | awk -F " " '{ if (substr( $4, 10, 4)>=1) print $1"|"substr( $4, 10, 4)}' | sort -t'|' -nk 2`.split(/\r?\n/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def autoconf
|
def autoconf
|
||||||
|
Loading…
Reference in New Issue
Block a user