What is the next step`?
This is the check, how do i get this to be a service?
def inventory_switch_cpu1(info):
perc5 = info[0][0].strip().split("(")[1].split(")")[0].replace("%","")
print perc5
return []
def check_switch_cpu1(item, _no_params, info):
if perc5 < 70:
return 0, "OK - CPU% is " + perc5
else:
return (3, "UNKNOWN - not yet implemented")
check_info["switch_cpu1"] = {
"check_function" : check_switch_cpu1,
"inventory_function" : inventory_switch_cpu1,
'service_description': 'CPU utilization',
"snmp_info" : ( ".1.3.6.1.4.1.4526.11.1.1.4", ["9"] ),
'includes': ['cpu_util.include'],
'group': 'cpu_utilization',
}