mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41: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
|
@ -4,26 +4,26 @@
|
|||
# Copyright (C) 2009 Matthias Marschall - mm@agileweboperations.com
|
||||
#
|
||||
# Based on:
|
||||
# mongrel_process_memory - A munin plugin to monitor memory size of
|
||||
# mongrel_process_memory - A munin plugin to monitor memory size of
|
||||
# each individual mongrel process
|
||||
# Copyright (C) 2007 Ben VandenBos and Avvo, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2
|
||||
# it under the terms of the GNU General Public License version 2
|
||||
# as published by the Free Software Foundation.
|
||||
#
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Author: Ben VandenBos
|
||||
# Contributors: Adam Jacob (<adam@hjksolutions.com>)
|
||||
# Ryan Woodrum
|
||||
# Ryan Woodrum
|
||||
# Matthias Marschall (mm@agileweboperations.com)
|
||||
#
|
||||
#%# family=auto
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
module Munin
|
||||
class MongrelProcessMemory
|
||||
|
||||
|
||||
def run
|
||||
pid_port_map = get_pids()
|
||||
port_list = Hash.new
|
||||
|
@ -40,7 +40,7 @@ module Munin
|
|||
puts "mongrel_#{port}.value #{rss}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def get_pids
|
||||
h = Hash.new
|
||||
pids = []
|
||||
|
@ -57,10 +57,10 @@ module Munin
|
|||
def autoconf
|
||||
get_pids().length > 0
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
mpm = Munin::MongrelProcessMemory.new
|
||||
|
||||
case ARGV[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue