Multiple graphs within one service

Hi!
I use the RAW Edition and have the following scenario:

I use Shelly sensors and a Raspberry PI to monitor various rooms (temperature, humidity, battery).
The metrics are also displayed cleanly.
However, I would like to have the metrics for a room below a service, similar to the “Memory” service. I have rewritten the check accordingly.

root@raspberrypi:/usr/lib/check_mk_agent/local# python3 shelly_environment.py

0 "Serancon: Shelly Büro" temperature=22.7;25;20;0;50 humidity=46.0;60;80;10;100 battery=98;30;10;0;100 Temperature: 22.7°C, Humidity: 46.0%, Battery: 98% (measured at: 2025-01-26 20:39:06)

0 "Serancon: Shelly Badezimmer" temperature=22.2;25;20;0;50 humidity=58.6;60;80;10;100 battery=100;30;10;0;100 Temperature: 22.2°C, Humidity: 58.6%, Battery: 100% (measured at: 2025-01-26 20:31:04)

0 "Serancon: Shelly Wohnzimmer" temperature=21.1;25;20;0;50 humidity=48.5;60;80;10;100 battery=100;30;10;0;100 Temperature: 21.1°C, Humidity: 48.5%, Battery: 100% (measured at: 2025-01-26 19:03:01)

0 "Serancon: Shelly Schlafzimmer" temperature=19.7;25;20;0;50 humidity=50.3;60;80;10;100 battery=100;30;10;0;100 Temperature: 19.7°C, Humidity: 50.3%, Battery: 100% (measured at: 2025-01-26 20:24:03)
`

The script returns the following values, which are correct.
The aim is to display the values in individual graphs for each room.

Is this even possible in the RAW Edition? I have already tried a few things, but can’t get any further.

A similar discussion was previously done in https://forum.checkmk.com/t/multiple-metrics-in-one-graph/50132

I hope that this will give you a/the direction of what you are after.

  • Glowsome

@Individuum have a look at the documentation.

you need to seperate your metrics with a | . This sould more look like this

0 "Serancon: Shelly Badezimmer" temperature=22.2;25;20;0;50|humidity=58.6;60;80;10;100|battery=100;30;10;0;100 Temperature: 22.2°C, Humidity: 58.6%, Battery: 100% (measured at: 2025-01-26 20:31:04)
4 Likes

Great - that was the solution!
Thanks a lot

1 Like

Hello!

If one of the answers helped you solve your question, please mark it as the solution. This way, you thank the person who helped you and also indicate that the question has been resolved. This, in turn, helps others who come across the same question.

Solution

Thank you!

The same problem at another location. I have created a check which is supposed to check a backup process. To do this, a few values are passed to CheckMK. But only one graph appears. But I don’t see an error in the output. Example output:

0 “Rclone Backup” backups_ok=1;0;0;; backups_failed=0;0;0;;|file_count=142;0;0;;|backup_size=60612019B;0;0;; Backup OK.

Or am I missing something?