added agent bakery configuration

This commit is contained in:
Marius Pana 2018-09-09 17:05:21 +03:00
parent 364a872e48
commit 0ac0a76307
3 changed files with 33 additions and 0 deletions

Binary file not shown.

View 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

View File

@ -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") ),
]
)
)