<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr" data-setdir="false">Hello,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I have a small question regarding this check.</div><div dir="ltr" data-setdir="false">I use this with option "-x" and it works perfect if i use only 1 path to exclude.</div><div dir="ltr" data-setdir="false">If i try more paths, then it doesn't work.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">As i can see only "-p" or "-X" ca be repeated. </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Is there any options to use option "-x" with more paths ?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">My config:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div dir="ltr" data-setdir="false"><div><div>object CheckCommand "check_readonly_filesystem" {</div><div> import "plugin-check-command"</div><div> command = [ PluginDir + "/check_ro_mounts", "-x", "$exclude_mountpoint$", "-X", "squashfs" ]</div><div>}</div><div><br></div></div></div><div><br></div><div>apply Service "linux_readonly_filesystem" {<br></div><div> import "generic-service"</div><div> check_command = "check_readonly_filesystem"</div><div> if (host.name != NodeName) {</div><div> command_endpoint = host.name</div><div> }</div><div> assign where host.vars.os == "linux"</div><div> ignore where host.vars.noagent</div><div> ignore where host.vars.distribution == "oracle"</div><div>}</div><div><br></div></div><br></div><div dir="ltr" data-setdir="false">I try this config and it doesn't work:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> <div><div>vars.exclude_mountpoint = "/run/credentials/systemd-sysusers.service"</div><div>vars.exclude_mountpoint = "/run/user/"</div><div>vars.exclude_mountpoint = "/sys/fs/cgroup"</div><div>vars.exclude_mountpoint = "/var/snap/firefox/common/host-hunspell"</div></div><div><br></div><div dir="ltr" data-setdir="false">or this:</div><div dir="ltr" data-setdir="false"><br></div><div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;">vars.exclude_mountpoint = [ "/run/credentials/systemd-sysusers.service" , "/run/user/" , "/sys/fs/cgroup" , "/var/snap/firefox/common/host-hunspell" ]</div></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;" dir="ltr" data-setdir="false">Thank you for your help. </div></div></div></body></html>