diff --git a/iml_netio.ini b/iml_netio.ini index 09a1d72d52412a96c85fa15f5526165ec81a80e5..c8c27c9e74604c4478e1f631ee712728045276da 100644 --- a/iml_netio.ini +++ b/iml_netio.ini @@ -6,11 +6,12 @@ ; ; ---------------------------------------------------------------------- ; 2020-03-23 <axel.hahn@iml.unibe.ch> initial version +; 2022-08-22 <axel.hahn@unibe.ch> compatibility to netio update; 1 graph per interface ; ====================================================================== ; ---------------------------------------------------------------------- -; graph +; graph total ; ---------------------------------------------------------------------- [netio.graph] @@ -27,18 +28,53 @@ colorList = "6699aa,cc66dd" lineWidth = "2" min = "0" yUnitSystem = "binary" +title = "Total" [netio.metrics_filters] -; USELESS: "warn" and "crit" are not stored in graphite -; usage.warn = "$service_name_template$.perfdata.cpu-usage.warn" -; usage.crit = "$service_name_template$.perfdata.cpu-usage.crit" rx = "$service_name_template$.perfdata.rx.value" tx = "$service_name_template$.perfdata.tx.value" - [netio.functions] ; usage = "alias(color($metric$, '#ff5566'), 'Usage (%)')" rx = "alias($metric$, 'Received [byte]')" tx = "alias($metric$, 'Transmitted [byte]')" + + +; ---------------------------------------------------------------------- +; graph per interface +; ---------------------------------------------------------------------- + +[netio_nic.graph] +check_command = "NetIO" + + +[netio_nic.urlparams] +areaAlpha = "0.2" +; areaMode = "first" +; areaMode = "all" +colorList = "e0e8f0,e8e0f0,6699aa,cc66dd" +; ^ ^ ^ ^ +; read trans read trans +; total interface +lineWidth = "2" +min = "0" +yUnitSystem = "binary" +title = "$nic$" + + +[netio_nic.metrics_filters] +; total values (light colors) +rx = "$service_name_template$.perfdata.rx.value" +tx = "$service_name_template$.perfdata.tx.value" +; values of a single interface +rx2 = "$service_name_template$.perfdata.rx-$nic$.value" +tx2 = "$service_name_template$.perfdata.tx-$nic$.value" + + +[netio_nic.functions] +rx2 = "alias($metric$, 'Received [byte]')" +tx2 = "alias($metric$, 'Transmitted [byte]')" +rx = "alias($metric$, 'Received total')" +tx = "alias($metric$, 'Transmitted total')"