diff --git a/load.ini b/load.ini index ef1ebff62582c76c4c5d0cf02fac51309ca3e861..2c77936ac0d81bd4554f7a8dc79a15f0cb9b0b1e 100644 --- a/load.ini +++ b/load.ini @@ -9,7 +9,7 @@ ; ====================================================================== [load.graph] -check_command = "System-load" +check_command = "System-load, check_snmp_data" [load.urlparams] areaAlpha = "0.2" diff --git a/snmp-cpu.ini b/snmp-cpu.ini new file mode 100644 index 0000000000000000000000000000000000000000..0abb91850020a469c9223a9aa3fbe4c3a9c7fc02 --- /dev/null +++ b/snmp-cpu.ini @@ -0,0 +1,70 @@ +; ====================================================================== +; +; 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')"