DISK CRITICAL - {/disk_name} is not accessible: No such file or directory

I’m trying to setup disk monitoring for the first time. I got a clean install of Icinga2 and IcingaWeb2 running but I can’t get disk monitoring for Linux servers working. Monitoring of / works, just not any other disk.

I get this error message:

DISK CRITICAL - /mnt/testpartition1/ is not accessible: No such file or directory

I can confirm the disk exists. I’m thinking this is a permission issue, but I’m not sure. Has anyone run into this problem before?

Icinga executes check plugins as user nagios or icinga (depending on your distribution), but most properly they don’t have access to the mountpoint that should be checked.

you can use sudo to allow the check to be run with higher privileges.

put something like

nagios    ALL = NOPASSWD: /PATH/TO/CHECK/PLUGINS/disk-usage

into a file under /etc/sudoers.d/

Have a look at Linuxfabrik monitoring-plugins they provide sudoers files for different OSs.

Hi There, any resolution to this problem?
I facing the same issues while monitoring mount points on aws asg instances.

> DISK CRITICAL - /var/lib/prod is not accessible: No such file or directory