[ZBX-10158] Template JMX Generic : increase timeout for nodata and fix ProcessCpuLoad Created: 2015 Dec 11 Updated: 2017 May 30 Resolved: 2016 Feb 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | 2.4.7 |
Fix Version/s: | 3.0.0beta2 |
Type: | Incident report | Priority: | Minor |
Reporter: | Vitaly Zhuravlev | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | jmx | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() |
Description |
I suggest two fixes for JMX Generic template relating to two issues: 1.ProcessCPULoad issue jmx["java.lang:type=OperatingSystem",ProcessCpuLoad].last(0)>0.7 ProcessCpuLoad of JMX is a value between 0 and 1. But in this JMX template it is multiplied by 100 and have units of %. It trigger is however trying to fire fixing by changing trigger to: jmx["java.lang:type=OperatingSystem",ProcessCpuLoad].last(0)>70 2.Timeout issue
jmx["java.lang:type=Runtime",Uptime].nodata(1m)=1
is too unforgivable to the system as nodata with 1m and polling interval of once a 60 seconds. This combo gives too many false positives and event that last only few seconds but happen almost every time.
jmx["java.lang:type=Runtime",Uptime].nodata(3m)=1
Diff patches for xml of template (version 2.4.7) are attached. 1. Date: Fri, 11 Dec 2015 15:34:35 +0300 Subject: [PATCH] - Fixed ProcessCpuLoad trigger. Description: Originally ProcessCpuLoad of JMX is between 0 and 1. In This JMX template it is multiplied by 100 and have units of %. It trigger is however trying to fire for all values higher than 0.7 which is 0.7 % and not 70%. --- JMX/Template_JMX_Generic.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JMX/Template_JMX_Generic.xml b/JMX/Template_JMX_Generic.xml index 8087cf8..ff814a6 100644 --- a/JMX/Template_JMX_Generic.xml +++ b/JMX/Template_JMX_Generic.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <zabbix_export> <version>2.0</version> - <date>2015-12-11T12:15:53Z</date> + <date>2015-12-11T12:30:23Z</date> <groups> <group> <name>Templates</name> @@ -2518,7 +2518,7 @@ <dependencies/> </trigger> <trigger> - <expression>{Template JMX Generic:jmx["java.lang:type=OperatingSystem",ProcessCpuLoad].last(0)}>0.7</expression> + <expression>{Template JMX Generic:jmx["java.lang:type=OperatingSystem",ProcessCpuLoad].last(0)}>70</expression> <name>70% os Process CPU Load on {HOST.NAME}</name> <url/> <status>0</status> -- 1.9.5.msysgit.0 2. Date: Fri, 11 Dec 2015 15:18:09 +0300 Subject: [PATCH] Increased JMX timeout to 3m (Insane to have it 1minute if you poll once a minute :) ) https://team-ts.slack.com/files/vzhuravlev/F0GDGE0RZ/pasted_image_at_2015_12_11_15_10.png --- JMX/Template_JMX_Generic.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JMX/Template_JMX_Generic.xml b/JMX/Template_JMX_Generic.xml index f19e209..8087cf8 100644 --- a/JMX/Template_JMX_Generic.xml +++ b/JMX/Template_JMX_Generic.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <zabbix_export> <version>2.0</version> - <date>2015-12-08T11:39:08Z</date> + <date>2015-12-11T12:15:53Z</date> <groups> <group> <name>Templates</name> @@ -2648,7 +2648,7 @@ <dependencies/> </trigger> <trigger> - <expression>{Template JMX Generic:jmx["java.lang:type=Runtime",Uptime].nodata(1m)}=1</expression> + <expression>{Template JMX Generic:jmx["java.lang:type=Runtime",Uptime].nodata(3m)}=1</expression> <name>{HOST.NAME} is not reachable</name> <url/> <status>0</status> -- 1.9.5.msysgit.0 |
Comments |
Comment by Gunars Pujats (Inactive) [ 2015 Dec 15 ] |
(1) No translation strings changed. sasha CLOSED |
Comment by Gunars Pujats (Inactive) [ 2015 Dec 15 ] |
RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-10158 |
Comment by Alexander Vladishev [ 2016 Jan 28 ] |
Successfully tested! Take a look at my changes in r58061. gunarspujats CLOSED |
Comment by Gunars Pujats (Inactive) [ 2016 Jan 29 ] |
Fixed in:
|
Comment by richlv [ 2016 Jan 29 ] |
(2) while looking at the beta2 release notes, i could not understand what was actually fixed in the template. gunarspujats RESOLVED in r58186. sasha FIXED typo in r58192 and CLOSED |