diff --git a/nfsiostat-1.0.mkp b/nfsiostat-1.0.mkp index 93119e4..c89b05c 100644 Binary files a/nfsiostat-1.0.mkp and b/nfsiostat-1.0.mkp differ diff --git a/web/plugins/perfometer/nfsiostat.py b/web/plugins/perfometer/nfsiostat.py new file mode 100644 index 0000000..580d9f7 --- /dev/null +++ b/web/plugins/perfometer/nfsiostat.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +def perfometer_nfsiostat(row, check_command, perf_data): + for pd in perf_data: + if pd[0] == u'op_s': + busy = float(pd[1]) + warn = float(pd[3]) + crit = float(pd[4]) + if busy <= warn: + color = '#90ee90' + elif busy <= crit: + color = '#ffa500' + else: + color = '#ff6347' + return '%d%%' % busy, perfometer_linear(busy, color) + +perfometers["check_mk-amavis"] = perfometer_amavis \ No newline at end of file diff --git a/web/plugins/wato/agent_bakery_nfsiostat.py b/web/plugins/wato/agent_bakery_nfsiostat.py index e69de29..6e4f5ad 100644 --- a/web/plugins/wato/agent_bakery_nfsiostat.py +++ b/web/plugins/wato/agent_bakery_nfsiostat.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- encoding: utf-8; py-indent-offset: 4 -*- + +group = "agents/" + _("Agent Plugins") + +register_rule(group, + "agent_config:mk_nfsiostat", + DropdownChoice( + title = _("NFS IO Stats (Linux)"), + help = _("This will deploy the agent plugin mk_nfsiostat to check various client side NFS IO stats."), + choices = [ + ( True, _("Deploy plugin for NFS IO Stats") ), + ( None, _("Do not deploy plugin for NFS IO Stats") ), + ] + ) +)