Receive Notificaion for state changes of VMs on a node

Michael Friedrich

New Member
Oct 31, 2016
1
0
1
33
Hi everyone,

I am trying to find out how I could get a notification for state changes of a certain subset oft he VMs on a node in proxmox.
I have found two possible starting points:

* the log files (only logging afters tasks are completed)
* polling qm list for states running/stopped

Both possibilities unfurtunately do not fit my requirements. I would also need to find out if a VM is shutting down or starting up. I imagine there could be an event somewhere which I can use. The task viewer in the web-gui has the kind of information I need.
Can you point me in the right direction, if there is a way to get that kind of information, preferably without polling.

Best Regards,
Michael Friedrich
 
if you just want to know about the tasks executed, you can monitor /var/log/pve/tasks/index (on each node). but note that the guest state can change without a task (e.g., when powering off inside the guest). if you want to monitor the actual state, you will have to poll - either using PVE API calls, or by setting up a monitoring solution for the guests (like icinga/nagios, ...)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!