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/http/mongrel_memory
4 4
# Copyright (C) 2009 Matthias Marschall - mm@agileweboperations.com
5 5
#
6 6
# Based on:
7
# mongrel_process_memory - A munin plugin to monitor memory size of 
7
# mongrel_process_memory - A munin plugin to monitor memory size of
8 8
#                          each individual mongrel process
9 9
# Copyright (C) 2007 Ben VandenBos and Avvo, Inc.
10 10
#
11 11
# This program is free software; you can redistribute it and/or modify
12
# it under the terms of the GNU General Public License version 2 
12
# it under the terms of the GNU General Public License version 2
13 13
# as published by the Free Software Foundation.
14
# 
14
#
15 15
# This program is distributed in the hope that it will be useful,
16 16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17 17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 18
# GNU General Public License for more details.
19
# 
19
#
20 20
# You should have received a copy of the GNU General Public License along
21 21
# with this program; if not, write to the Free Software Foundation, Inc.,
22 22
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 23
#
24 24
# Author: Ben VandenBos
25 25
# Contributors: Adam Jacob (<adam@hjksolutions.com>)
26
#               Ryan Woodrum 
26
#               Ryan Woodrum
27 27
#               Matthias Marschall (mm@agileweboperations.com)
28 28
#
29 29
#%# family=auto
......
31 31

  
32 32
module Munin
33 33
  class MongrelProcessMemory
34
    
34

  
35 35
    def run
36 36
      pid_port_map = get_pids()
37 37
      port_list = Hash.new
......
40 40
        puts "mongrel_#{port}.value #{rss}"
41 41
      end
42 42
    end
43
    
43

  
44 44
    def get_pids
45 45
      h = Hash.new
46 46
      pids = []
......
57 57
    def autoconf
58 58
      get_pids().length > 0
59 59
    end
60
        
60

  
61 61
  end
62 62
end
63
  
63

  
64 64
mpm = Munin::MongrelProcessMemory.new
65 65

  
66 66
case ARGV[0]

Formats disponibles : Unified diff