Page 2 of 2

Re: check_disk: Permission denied

Posted: Tue Feb 11, 2020 1:54 am
by Zendan
That seems to work fine.

Code: Select all

$ sudo su nagios
[nagios@alarmpi ~]$ /usr/lib/monitoring-plugins/check_disk -w '204800' -c '102400' -e -r '^/media/.*' --exclude-type=tracefs --exclude-type=cgroup
DISK OK| /media/Morlock=1478022MB;2610828;2713228;0;2815628 /media/PiBuHDD=3518556MB;3549720;3652120;0;3754520 /media/PiHDD=1846916MB;2561328;2663728;0;2766128 /media/PiHDD2=2831097MB;5472216;5574616;0;5677016
[nagios@alarmpi pi]$ cd
[nagios@alarmpi ~]$ pwd
/home/nagios
[nagios@alarmpi ~]$ ls -Al
total 0

Re: check_disk: Permission denied

Posted: Tue Feb 11, 2020 8:33 am
by scottwilkerson
And it is still returning the following?

Code: Select all

DISK CRITICAL - /media/Morlock is not accessible: Permission denied
Can you show the output of the following?

Code: Select all

/usr/lib/monitoring-plugins/check_disk -h | head -10

Re: check_disk: Permission denied

Posted: Tue Feb 11, 2020 4:32 pm
by Zendan
Thank you again for all your help. Yes, I'm still getting the same error.

Code: Select all

$ /usr/lib/monitoring-plugins/check_disk -h | head -10
check_disk v2.2 (monitoring-plugins 2.2)
Copyright (c) 1999 Ethan Galstad <[email protected]>
Copyright (c) 1999-2008 Monitoring Plugins Development Team
	<[email protected]>

This plugin checks the amount of used disk space on a mounted file system
and generates an alert if free space is less than one of the threshold values


Usage:

Re: check_disk: Permission denied

Posted: Tue Feb 11, 2020 4:43 pm
by scottwilkerson
Ok, looking at this, it is not a plugin from our project, this is from the monitoring-plugins project, and we cannot support it.

Locking thread