Nagios alert "No such file or director" but actually exist

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gineesh
Posts: 1
Joined: Sun Nov 04, 2018 11:29 pm

Nagios alert "No such file or director" but actually exist

Post by gineesh »

We are receiving below kind of alerts frequently; but when we check actual file or path already exist and and no issue to access as root.

Code: Select all

DISK CRITICAL - /var/lib/origin/openshift.local.volumes/pods/ae900eff-d2dc-11e8-a265-fa163e3ba874/volume-subpaths/volume-hivemq-custom-x509authorizationplugin-xml/hivemq-custom/3 (deleted) is not accessible: No such file or directory 
Any hint ?

Also I found almost same kind of thread but not helped for my issue : https://support.nagios.com/forum/viewto ... =7&t=44308

Not : We noticed some are due to SELinux issue and resolved by running below command.

Code: Select all

chcon -t nagios_unconfined_plugin_exec_t /usr/lib64/nagios/plugins/check_disk
Thanks in advance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios alert "No such file or director" but actually exi

Post by scottwilkerson »

gineesh wrote:but when we check actual file or path already exist and and no issue to access as root.
but can you Access the path as the nagios user?

Code: Select all

su nagios -c "ls -l /var/lib/origin/openshift.local.volumes/pods/ae900eff-d2dc-11e8-a265-fa163e3ba874/volume-subpaths/volume-hivemq-custom-x509authorizationplugin-xml/hivemq-custom/3"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked