Python watchdog and proxmox gui

Lidorelias

New Member
Nov 24, 2020
6
0
1
23
Hey all, i am trying to create a watchdog that will listen to proxmox firewall files and will alert me when a fw rule was modified.
I am using python watchdog package.
when I modify the file (directly from shell) my watchdog is notice that and alert me.
When editing the same firewall file using proxmox gui, my watchdog can’t notice the change and does not alert me when the file changes.
Do you know what can cause that? Is proxmox modify the files in some different way?
 
If you let your watchdog handle events for all files in that directory, do you see temporary files? I think there's some cases where cp'd files aren't picked up.
Thanks for your answer!
I use “watch cat filename” to see changes on the file my watchdog is listening to. The file was changed every time I change some fw rule.
So, I don’t think that temp files are relevant to this.
Also, I tried to listen to all the files in that directory and can’t see any update when using proxmox gui to change firewall rules
 

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!