Monitor Disk(s) and network activity

Oct 21, 2020
107
7
23
37
Can we do that in proxmox?
If yes how?

I try to explain myself better.
I see that in proxmox there is a log of the firewall activities, even at the single VM level.

How can I export it? Maybe in real time?
How is it interpreted?
Is it possible to increase the level of detail of the log?

Is there such a thing as the level of activity on the disks?
 
You can use the PVE API to get the same statistical data which is used in the front end [0]. There, the disk and network usage of each VM is recorded via RRD [1]. The API is available in some formats, including JSON, and via pvesh [3] you may use the api via a normal shell.

Some endpoints, which might be interesting for you:
  • /node/{node}/rrddata
  • /node/{node}/qemu/{vmid}/rrddata
  • /node/{node}/qemu/{vmid}/status
  • /node/{node}/storage/{storage}/rrddata
  • /node/{node}/storage/{storage}/status
  • /cluster/tasks
  • /cluster/log
But you probably find more endpoints which fit your needs :)

The PVE uses RRDtool [1] to store its statistical data.

You are probably also interested in the HTML API (which purpose is to make debugging or researching easier) [2].

But keep in mind, that the PVE is not a monitoring solution. There are perhaps other and better solutions.

[0] https://pve.proxmox.com/pve-docs/api-viewer/index.html
[1] https://en.wikipedia.org/wiki/RRDtool
[2] https://<YOUR-IP>:8006/api2/html
[3] https://pve.proxmox.com/pve-docs/pvesh.1.html
 
Last edited:
I'm not interested in statistical data.
I'm interested in the activities carried out.

Something like (proxmox firewall log):
Code:
116 7 tap116i0-IN 07/Jun/2021:15:36:12 +0200 ACCEPT: IN=fwbr116i0 OUT=fwbr116i0 PHYSIN=fwln116i0 PHYSOUT=tap116i0 MAC=01:00:5e:7e:7f:3f:78:8a:20:89:19:2b:08:00 SRC=10.1.1.139 DST=239.254.127.63 LEN=116 TOS=0x00 PREC=0x00 TTL=64 ID=4632 DF PROTO=UDP SPT=48000 DPT=48000 LEN=96

It could be a good start, but I'd like to have something more in-depth.
 

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!