Skip to content
Snippets Groups Projects
Commit c0658755 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update graphs to use check_snmp_data

parent f4b4b5e6
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
; ======================================================================
[load.graph]
check_command = "System-load"
check_command = "System-load, check_snmp_data"
[load.urlparams]
areaAlpha = "0.2"
......
; ======================================================================
;
; 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')"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment