monitoring-plugins
monitoring-plugins copied to clipboard
All plugins: change behavior when handling default values
According to https://github.com/Linuxfabrik/monitoring-plugins/issues/352#issuecomment-1061491198, in all plugins in parse_args(), change the default in an append action to None and after parsing the value in main() is None, put the desired defaults there.
The first plugin that implements this is php-status.
Problems with this approach:
- Help texts don't show defaults anymore (this has an impact on check2basket)
- SysAdmin can't disable a parameter anymore, like in systemd-unit plugin