mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fixed instance order using port number and not pid anymore
This commit is contained in:
parent
9ec552e04e
commit
08c3a67e8b
3 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ module Munin
|
|||
|
||||
# fetch all pids that match thin
|
||||
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
|
||||
|
||||
def autoconf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue