Closed mrkafk closed 5 years ago
I found a workaround: if I do NOT specify vars.disk_ignore_ereg_path
as an array, instead using a single string, it works as expected:
vars.disk_ignore_ereg_path = "/tmp/\\.mount*"
Hi,
I'm note sure if that's an issue? If i specify the Path with '-r' or '-R' as mentiond in the Error Message, it works. Repeating -i/-I is also possible. Specifying the Array at the Host Object also works fine. (also in director)
Have you tried to add the root Path "/" with -r/-R?
e.g.
'/usr/lib/nagios/plugins/check_disk' '-c' '10%' '-w' '20%' '-X' 'none' '-X' 'tmpfs' '-X' 'sysfs' '-X' 'proc' '-X' 'configfs' '-X' 'devtmpfs' '-X' 'devfs' '-X' 'mtmfs' '-X' 'tracefs' '-X' 'cgroup' '-X' 'fuse.gvfsd-fuse' '-X' 'fuse.gvfs-fuse-daemon' '-X' 'fdescfs' '-X' 'overlay' '-X' 'nsfs' '-X' 'squashfs' '-m' '-R' '/' -I '^\/mnt\/cifs\/.*' -I '^\/mnt\/nfs\/.*'
object Host "host.example.com" {
import "client-linux"
display_name = "hostname"
address = "10.1.2.3"
vars.disk_ereg_path = [ "/" ]
vars.disk_ignore_eregi_path = [ "^\\/mnt\\/cifs\\/.*", "^\\/mnt\\/nfs\\/.*" ]
}
Versions: _/usr/lib/nagios/plugins/check_disk -V checkdisk v2.2 (monitoring-plugins 2.2) icinga2 - version: r2.10.2-1
Looks like it's working. I close this one.
Expected Behavior
vars.disk_ignore_eregi_path
ignores some path indisk_check
.Current Behavior
Plugin message:
Possible Solution
Same message as in https://github.com/icinga/icinga2/issues/2890
I enabled debug log. Relevant section:
Steps to Reproduce (for bugs)
Context
Your Environment
icinga2 --version
):2.10.2-1.stretch
icinga2 feature list
):Disabled features: command compatlog debuglog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog Enabled features: api checker ido-pgsql mainlog notification
2.6.1
icinga2 daemon -C
):zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.