Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

VM CPU usage graphs show values over 100% #33

Closed
danci1973 opened this issue Jun 27, 2014 · 1 comment
Closed

VM CPU usage graphs show values over 100% #33

danci1973 opened this issue Jun 27, 2014 · 1 comment
Labels

Comments

@danci1973
Copy link

CPU usage graph shows values of 'cpu.current.guest' instead of 'cpu', so they can be way over 100%. I made a change to PNP template so it uses relative 'cpu' value instead (up to 100%):

--- check_rhev3.php-orig        2014-06-27 09:29:51.628727867 +0200
+++ check_rhev3.php     2014-06-27 09:55:57.804063199 +0200
@@ -39,7 +39,7 @@

     # process VM CPU stats
     $def[1] .= "CDEF:sp1=100,var1,- ";
-    $def[1] .= "CDEF:sp2=var2 ";
+    $def[1] .= "CDEF:sp2=var1 ";
     $def[1] .= "CDEF:sp3=var3 ";

     $def[1] .= "AREA:sp2#000080:\"Guest      \" ";
@scrat14 scrat14 added this to the check_rhev3 - 1.5 milestone Jun 28, 2014
@scrat14 scrat14 added the bug label Jun 28, 2014
@scrat14
Copy link
Member

scrat14 commented Jun 28, 2014

Thanks a lot for the fix.
You can also send am a pull request if you want to or I'll commit it and add you to AUTHORS file as a contributor.

scrat14 added a commit that referenced this issue Jun 25, 2015
@scrat14 scrat14 closed this as completed Feb 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants