Page 1 of 1

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

Posted: Sun Nov 04, 2018 11:38 pm
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.

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

Posted: Mon Nov 05, 2018 3:25 pm
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"