<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 December 2013 21:18, ROZEK Michal (Prestataire) <span dir="ltr"><<a href="mailto:michal.rozek.externe@cnp.fr" target="_blank">michal.rozek.externe@cnp.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="FR">
<div><span lang="EN-US">In xymon we can see the graph :</span>
</div></div></blockquote><div> </div><div><CPU Utilization graph><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="FR">

<div><p class="MsoNormal"><span></span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US">Could You tell me how to get the values of the “% CPU Busy” listed on the bottom ? I have tried a lot of things but it doesn’t work</span><span style="font-family:Wingdings" lang="EN-US"></span><br>

</p></div></div></blockquote><div><br></div></div></div><div class="gmail_extra">The "CPU Utilization" graph with "CPU busy" is defined in graphs.cfg in the [la1] section.  This shows that the data source is "cpu_idl" in the vmstat.rrd file.  Note that the graph definition subtracts this "cpu_idl" (idle percentage) number from 100 to get the busy percentage.<br>

<br>You can get the last few entries of cpu_idl by running:<br><br></div><div class="gmail_extra">rrdtool fetch /path/to/vmstat.rrd AVERAGE | tail<br><br></div><div class="gmail_extra">The contents of the RRD file come from the [vmstat] section of the client data messages.  This is typically taken from the output of "vmstat" from the idle column (normally abbreviated "id").  To get the average idle percentage over 5 minutes, Xymon runs "vmstat 300 2".  If you want to get the idle percentage without waiting 5 minutes, you can type "vmstat 5" and it will repeatedly give 5-second averages forever.  Note that the first line in the vmstat output is the average of the metrics since last boot.<br>

<br></div><div class="gmail_extra">Cheers<br>Jeremy<br><br></div></div>