# Icinga2 Linux Agent reports Disk Critical Permission Denied

**URL:** <https://community.icinga.com/t/icinga2-linux-agent-reports-disk-critical-permission-denied/12228>\
**Category:** Service Monitoring\
**Tags:** icinga2-agent, icinga2\
**Created:** [June 23, 2023, 12:38pm UTC](https://community.icinga.com/t/icinga2-linux-agent-reports-disk-critical-permission-denied/12228 "2023-06-23T12:38:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmontanez21](https://community.icinga.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cmontanez21](https://community.icinga.com/u/cmontanez21)\
**Post date:** [June 23, 2023, 12:38pm UTC](https://community.icinga.com/t/icinga2-linux-agent-reports-disk-critical-permission-denied/12228/1 "2023-06-23T12:38:10Z")

</div>

Hello,

I am having an issue with Icinga monitoring linux check\_disk function. I have installed the agent via the script from director and it seems to be monitoring other checks just fine. However when it runs the disk check I receive the following:

DISK CRITICAL - /mnt is not accessible: Permission denied

I even went so far to give the icinga user it created via the script local administration rights to grant access but still is a no go.

I haven’t been able to find good documentation on the web for any fix action so I am posting this in an effort to gain some traction. I can build an Icinga Server and get it functioning with my eyes closed but I am completely lost when it comes to plugins and agent configurations…

Thank you in advance for your time!

---

<div class="post-metadata">

**Author:** ![rsx](https://community.icinga.com/user_avatar/community.icinga.com/rsx/32/2094_2.png) [@rsx](https://community.icinga.com/u/rsx)\
**Post date:** [June 23, 2023, 1:01pm UTC](https://community.icinga.com/t/icinga2-linux-agent-reports-disk-critical-permission-denied/12228/2 "2023-06-23T13:01:04Z")

</div>

For debugging such errors I usually switch to the icinga user via `sudo -u nagios bash` and run the check manually. With you can also try to optimize file permission.

A different approach would be to exclude this directory and to monitor the target directly by install icinga’s agent or using a remote check plugin.

---

<div class="post-metadata">

**Author:** ![cmontanez21](https://community.icinga.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cmontanez21](https://community.icinga.com/u/cmontanez21)\
**Post date:** [June 26, 2023, 12:19pm UTC](https://community.icinga.com/t/icinga2-linux-agent-reports-disk-critical-permission-denied/12228/3 "2023-06-26T12:19:36Z")

</div>

Awesome! Internally to just /mnt it works just fine, however the folder within he has permissions denied. So, it appears I need to exclude that in the service however I do not know how to do that in director.
