Unfortunatley the mounts
check currently has no proper possibility to configure what you ask for. Most of the behaviour is hardcoded. Contrary to what the manpage says, not only the option commit=
is ignored but also the options localalloc=
, subvol=
, and subvolid=
.
The only thing you can configure is a list of expected options, for example relatime
or noexec
, in which case the check goes WARN if any of these options does not exist. But you cannot tell the check which options to ignore.
I would suggest to either disable the check for /tmp
entirely or to copy the check plugin from ~/share/check_mk/checks/mounts
to ~/local/share/check_mk/checks/mounts
and enhance the (hardcoded) list of options to ignore in that local copy. The check contains a helper function that reads
# Ignore options that are allowed to change
def should_ignore_option(option):
for ignored_option in ["commit=", "localalloc=", "subvol=", "subvolid="]:
if option.startswith(ignored_option):
return True
return False
As a first approach you could add noexec
to the list, i.e.
for ignored_option in ["commit=", "localalloc=", "subvol=", "subvolid=", "noexec"]:
...
Note that this will ignore the option for all filesystems. Restricting this to just /tmp
would be a bit more complicated and has the downside that then not only the list but also the filesystem would be hardcoded in the check.
To be honest, I’d either enhance the WATO plugin and enable the check to also have the list of ignored options configurable or wait until someone else finds the time to do this.