Hi,
On 12/10/2026 15:38, Tom Schmidt via Xymon wrote:
Christoph,
You can easily make each GPU report to its own RRD file. Then a
single xymon command can upload the rrd data to the server. Here is
some pseudo code using bash.
Tom
RRDDATA=""
NL="
" # newline
for GPU in $GPUS; do
value1=$(command to get GPU value for $GPU)
RRDDATA="$RRDDATA$NL[nvidia.gpu$GPU.rrd]${NL}
DS:gpuval1:GAUGE:600:0:U $value1"
# repeat for each value you want to record
done
$XYMON $XYMSRV "data $HOSTNAME.trends$RRDDATA"
okay, this looks promising, I have to try that, thanks!
Christoph
On Mon, Oct 12, 2026 at 7:07 AM Bruno Manzoni via Xymon <xymon@xymon.com
<mailto:xymon@xymon.com>> wrote:
Hi Christophe,
I would recommend having one test per graph (so 5 different metrics = 5
tests).
If I remember correctly, an RRD file can contain multiple instances of
the same measurement. For example, if you have 6 GPUs and want to
monitor the usage of each one, you can store all 6 measurements in a
single RRD file.
Then, I think you can use the NCV or Devmon-style approach (also built
into Xymon) to pass the parameters. (devmon way seems less documented
but more powerfull)
Also just that you know: We've fixed some issues in recent Xymon
versions related to "grouping" graph data (multiple graphs in the same
image). So it's important to know whether you're running the latest
version.
-> The tests you are doing is also on my todo list. (as well as 2
features: 1. restructuring the way to pass data to xymon and to 2.
stack
multiple test into one)
Let me know if this help and do not hesitate to share some part of the
script.
Bruno
Le 12.10.2026 à 14:23, Christoph Zechner via Xymon a écrit :Hi,
I've stumbled upon a problem I cannot seem to solve myself and hope
someone here can help me out...
A custom check I wrote is collecting data from Nvidia GPUs via the
nvidia-smi command, the check works great and displays all the
relevant data in its message, but I want to create graphs from
certain
data points too.
Here's my problem: in a server with 8 GPUs, I am collecting 5
different things from each GPU (like Power Draw, Utilisation and so
on), these values get saved in a RRD file as well, but only the
values
from the first GPU.
I want to save a RRD file for each GPU and its values, so multiple
data points in a RRD, but 8 different files (one per GPU) and I
do not
get how I can do this in a xymon check (bash script).
Can someone point me in the right direction here? What am I missing?
Thanks in advance!
Best regards
Christoph