Hello Karl, thanks for your time.
I tried this but the VM strayed “Down”.
However, I found a solution (not in production, but I am confident).
On the Check_mk server, I will create a script like this:
#!/bin/bash
if ping -c 1 192.168.1.2 &> /dev/null
then
status="2"
statustxt="Warning ! VM is UP"
else
status="0"
statustxt="It's OK, VM is Down"
fi
echo "$status check_status_VM - $statustxt"
I will have:
$ ./test_ping.sh
0 check_status_VM - It"s OK, VM is Down
$ ./test_ping.sh
2 check_status_VM - Warning ! VM is UP
If I move it on /usr/lib/check_mk_agent/local
And “normaly” my Check_mk Server will show a probleme if the VM is UP ^^