monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

All plugins: change behavior when handling default values

Open markuslf opened this issue 3 years ago • 1 comments

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.

markuslf avatar Mar 08 '22 07:03 markuslf

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

markuslf avatar Mar 08 '22 08:03 markuslf