Closed dml2022 closed 2 years ago
I don't think you can set individually intervals for devices, but only global.
I don't think you can set individually intervals for devices, but only global.
Well that's going to be a problem, Fortigate devices update their config file secrets every time it's pulled and with an hourly check and a few firewalls my git repo was growing at an alarming rate.
Any ideas on how to avoid unnecesary config saves in fortios?
You can remove secrets for fortios , that's how i do it.
models:
fortios:
vars:
remove_secret: true
Or you can take a look at this https://github.com/ytti/oxidized/issues/931
Fortigate config changes every time it's requested, so I wanted to increase the delay from hourly to daily only on fortigate devices. I have added a custom var_map called interval and added 86400 seconds into router.db but it doesn't seem to be working, after a restart all configs are still saved on a hourly basis which is the default for all devices.
Here's the latest request where the new variable "interval" is detected and shows the right value, but configs are saved every hour:
Here's my config file:
Here's my router.db file:
I'm not sure what am I doing wrong.