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