check_disk plugin issues when using -g group
Posted: Tue May 08, 2018 2:06 pm
Having a bit of a strange issue using check_disk and haven't been able to find anything about this problem so far. I'm just trying to monitor an aggregate total of all /dev/* fs on a given system. For the un-aggregated totals, I run the following from nagios server:
$ /usr/lib/nagios/plugins/check_nrpe -H x.x.x.x -c check_disk -a '-f -w 20000 -c 10000 -R '^/dev/*''
DISK CRITICAL - free space: / 19353 MB (59% inode=88%); # Rest of output is ok, just shows 3 disks.
Now, in order to aggregate the space, I simply added a group option:
$ /usr/lib/nagios/plugins/check_nrpe -H x.x.x.x -c check_disk -a '-f -w 20000 -c 10000 -g 'Aggregate Disks' -R '^/dev/*''
DISK CRITICAL - /run/user/1000/gvfs is not accessible: Permission denied
I'm not sure why grouping throws this issue? Some of the things I've tried thus far:
-I 'gvfs' . # Or .gvfs, *gvfs, etc....
--exclude-type=gvfs
Any help would be greatly appreciated.
$ /usr/lib/nagios/plugins/check_nrpe -H x.x.x.x -c check_disk -a '-f -w 20000 -c 10000 -R '^/dev/*''
DISK CRITICAL - free space: / 19353 MB (59% inode=88%); # Rest of output is ok, just shows 3 disks.
Now, in order to aggregate the space, I simply added a group option:
$ /usr/lib/nagios/plugins/check_nrpe -H x.x.x.x -c check_disk -a '-f -w 20000 -c 10000 -g 'Aggregate Disks' -R '^/dev/*''
DISK CRITICAL - /run/user/1000/gvfs is not accessible: Permission denied
I'm not sure why grouping throws this issue? Some of the things I've tried thus far:
-I 'gvfs' . # Or .gvfs, *gvfs, etc....
--exclude-type=gvfs
Any help would be greatly appreciated.