Plugin check_ro_mounts

ZMADU PETRICA pepe_strumf at yahoo.com
Wed Aug 23 13:54:51 CEST 2023


Hello,
I have a small question regarding this check.I use this with option "-x" and it works perfect if i use only 1 path to exclude.If i try more paths, then it doesn't work.
As  i can see only "-p" or "-X" ca be repeated. 
Is there any options to use option "-x" with more paths ?
My config:
object CheckCommand "check_readonly_filesystem" {        import "plugin-check-command"        command = [ PluginDir + "/check_ro_mounts", "-x", "$exclude_mountpoint$", "-X", "squashfs" ]}

apply Service "linux_readonly_filesystem" {
        import "generic-service"        check_command = "check_readonly_filesystem"        if (host.name != NodeName) {                command_endpoint = host.name        }        assign where host.vars.os == "linux"        ignore where host.vars.noagent        ignore where host.vars.distribution == "oracle"}

I try this config and it doesn't work:
 vars.exclude_mountpoint = "/run/credentials/systemd-sysusers.service"vars.exclude_mountpoint = "/run/user/"vars.exclude_mountpoint = "/sys/fs/cgroup"vars.exclude_mountpoint = "/var/snap/firefox/common/host-hunspell"
or this:
vars.exclude_mountpoint = [ "/run/credentials/systemd-sysusers.service" , "/run/user/" , "/sys/fs/cgroup" , "/var/snap/firefox/common/host-hunspell" ]

Thank you for your help. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20230823/a7567570/attachment.html>


More information about the Help mailing list