-
Hahn Axel (hahn) authoredHahn Axel (hahn) authored
iml_snmp-cpu.ini 1.88 KiB
; ======================================================================
;
; SNMP preformance data :: CPU usage
;
; show usage and idle as graph and pie
;
; ----------------------------------------------------------------------
; 2020-08-11 <axel.hahn@iml.unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[snmpcpu.graph]
check_command = "check_snmp_data"
[snmpcpu.urlparams]
areaAlpha = "0.2"
; areaMode = "first"
areaMode = "stacked"
colorList = "cc66dd,66ccdd,ddddee"
; ^ ^ ^
; system user idle
lineWidth = "2"
min = "0"
max = "100"
yUnitSystem = "binary"
[snmpcpu.metrics_filters]
system = "$service_name_template$.perfdata.cpu-system.value"
user = "$service_name_template$.perfdata.cpu-user.value"
idle = "$service_name_template$.perfdata.cpu-idle.value"
[snmpcpu.functions]
system = "alias($metric$, 'System')"
user = "alias($metric$, 'User')"
idle = "alias($metric$, 'Idle (%) (stacked)')"
; ----------------------------------------------------------------------
; PIE chart
; ----------------------------------------------------------------------
[snmpcpupie.graph]
check_command = "CPU-usage, check_snmp_data"
[snmpcpupie.urlparams]
colorList = "cc66dd,66ccdd,ddddee"
; ^ ^ ^
; system user idle
graphType = "pie"
title = "Average cpu usage"
[snmpcpupie.metrics_filters]
system = "$service_name_template$.perfdata.cpu-system.value"
user = "$service_name_template$.perfdata.cpu-user.value"
idle = "$service_name_template$.perfdata.cpu-idle.value"
[snmpcpupie.functions]
system = "alias($metric$, 'System')"
user = "alias($metric$, 'User')"
idle = "alias($metric$, 'Idle')"