mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Ruby plugins: apply style changes as suggested by "rubocop --fix-layout"
This commit is contained in:
parent
26c29daa2b
commit
b0b39b018e
30 changed files with 1447 additions and 1384 deletions
|
@ -1,45 +1,50 @@
|
|||
#!/usr/bin/env ruby
|
||||
# thin_threads -
|
||||
# A munin plugin for Linux to monitor how many threads per thin process
|
||||
#
|
||||
# For Linux ONLY !
|
||||
# DOES NOT WORK on OSX, Solaris or BSD.
|
||||
# only linux, because this script relies on proc filesystem
|
||||
#
|
||||
# Original author:
|
||||
# Frederico de Souza Araujo - fred.the.master@gmail.com
|
||||
# http://www.frederico-araujo.com
|
||||
#
|
||||
# Usurper:
|
||||
# Adam Michel - elfurbe@furbism.com
|
||||
# http://www.furbism.com
|
||||
#
|
||||
# Originally based on:
|
||||
# thin_process_memory -
|
||||
# A munin plugin to monitor memory size of
|
||||
# each individual thin process
|
||||
# by 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
|
||||
# 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.
|
||||
#
|
||||
#
|
||||
|
||||
=begin
|
||||
|
||||
thin_threads -
|
||||
A munin plugin for Linux to monitor how many threads per thin process
|
||||
|
||||
For Linux ONLY !
|
||||
DOES NOT WORK on OSX, Solaris or BSD.
|
||||
only linux, because this script relies on proc filesystem
|
||||
|
||||
Original author:
|
||||
Frederico de Souza Araujo - fred.the.master@gmail.com
|
||||
http://www.frederico-araujo.com
|
||||
|
||||
Usurper:
|
||||
Adam Michel - elfurbe@furbism.com
|
||||
http://www.furbism.com
|
||||
|
||||
Originally based on:
|
||||
thin_process_memory -
|
||||
A munin plugin to monitor memory size of
|
||||
each individual thin process
|
||||
by 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
|
||||
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.
|
||||
|
||||
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
||||
=end
|
||||
|
||||
|
||||
module Munin
|
||||
class ThinThreads
|
||||
|
||||
def run
|
||||
instances = get_pids()
|
||||
instances.each do |instance|
|
||||
|
@ -71,7 +76,6 @@ module Munin
|
|||
def autoconf
|
||||
get_pids().length > 0
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue