Hello Abraham
Try this one in the proxmox-qmu script
#!/bin/bash
# Proxmox VE virtual machine listing
# (c) 2015-2019, Tom Laermans for Observium
PVESH=`which pvesh`
if [ $? -eq 0 ]
then
echo "<<<proxmox-qemu>>>"
VERSION=$(pveversion | awk -F/ '{print $2}' | sed 's/\..*//')
if [[ ${VERSION} -ge 5 ]]
then
qemu=$(mktemp)
lxc=$(mktemp)
pvesh get /nodes/$(hostname)/qemu --output-format=json-pretty > $qemu
pvesh get /nodes/$(hostname)/lxc --output-format=json-pretty > $lxc
jq -s add $qemu $lxc
rm -f $qemu $lxc
else
pvesh get /nodes/$(hostname)/qemu 2>/dev/null
fi
fi
Regards Walter
Walter Onda
Senior System Engineer
Stadtantennen AG
Von: Yesaya A. Medellu via observium <[email protected]>
Gesendet: Freitag, 12. Januar 2024 09:12
An: 'Observium' <[email protected]>
Cc: Yesaya A. Medellu <[email protected]>
Betreff: [Observium] LXC Proxmox Container
Hi All
Can Observium Monitoring LXC Container
at least count it as VM inside PVE VMs
[cid:[email protected]]
thanks in advance
Abraham
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]