lib/riemann/tools/fd.rb in riemann-tools-1.10.0 vs lib/riemann/tools/fd.rb in riemann-tools-1.11.0
- old
+ new
@@ -14,9 +14,11 @@
opt :fd_proc_warning, 'open file descriptor threshold for process', default: 800
opt :fd_proc_critical, 'open file descriptor critical threshold for process', default: 900
opt :processes, 'list of processes to measure fd usage in addition to system total', type: :ints
def initialize
+ super
+
@limits = {
fd: { critical: opts[:fd_sys_critical], warning: opts[:fd_sys_warning] },
process: { critical: opts[:fd_proc_critical], warning: opts[:fd_proc_warning] },
}
ostype = `uname -s`.chomp.downcase