added agent bakery configuration
This commit is contained in:
parent
364a872e48
commit
0ac0a76307
Binary file not shown.
17
web/plugins/perfometer/nfsiostat.py
Normal file
17
web/plugins/perfometer/nfsiostat.py
Normal file
@ -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
|
@ -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 <tt>mk_nfsiostat</tt> 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") ),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user