[Xymon] how to get the CPU max usage info

ROZEK Michal (Prestataire) michal.rozek.externe at cnp.fr
Mon Dec 16 11:31:29 CET 2013

Thank You for Your response. You helped me a lot!!

[root at va2005 vu2328]# rrdtool fetch vmstat.rrd AVERAGE --start 1387015833 --end 1387188633 |tail | awk '{print $17}' |awk '{printf "%.2f\n", $1}'

Now I substract this number from 100 and it works great!

De : Jeremy Laidman [mailto:jlaidman at rebel-it.com.au]
Envoyé : vendredi 13 décembre 2013 01:04
À : ROZEK Michal (Prestataire)
Cc : Xymon at xymon.com
Objet : Re: [Xymon] how to get the CPU max usage info

On 12 December 2013 21:18, ROZEK Michal (Prestataire) <michal.rozek.externe at cnp.fr<mailto:michal.rozek.externe at cnp.fr>> wrote:
In xymon we can see the graph :

<CPU Utilization graph>

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

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.

You can get the last few entries of cpu_idl by running:
rrdtool fetch /path/to/vmstat.rrd AVERAGE | tail
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.

Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.


This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131216/231ef18f/attachment.html>

More information about the Xymon mailing list