I want to change some values in monit. I modified the config files directly but it got overwritten. Where do I change the monit configuration?
How to change monit configuration?
-
- OMV 3.x
- gelöst
- poncho
-
-
Adding or changing current values?
-
Especially I want to change the trigger value for filesystems. I want to change 80% full to another value. I already did it in the config file but it got reverted to 80%.
-
Check https://github.com/openmediava…mkconf/monit.d/filesystem. You can modify it with the env variable OMV_MONIT_SERVICE_FILESYSTEM_SPACEUSAGE.
Add the environment variable to /etc/default/openmediavault and then executeto rebuild the configuration. Finally you have to restart the monit service.
-
Hmm, I'd have to modify this system script as if space usage > is in it. What I want is if space free < 500MB, which is not possible without modifing this system file, right? Maybe a variable OMV_MONIT_SERVICE_FILESYSTEM_CONDITION would be nice which could be modified in /etc/default/openmediavault.
Or is there another way to do it? -
No, there is no other way. Introducing another environment variable is far away of the requirements to allow customization, so this will not be done.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!