Loaded: Not-found (Reason: No Such File Or Directory)

Home » CentOS » Loaded: Not-found (Reason: No Such File Or Directory)
CentOS 2 Comments

Hi,

I am seeing the below issue.

[user~]# systemctl list-unit-files | grep nrpe
[user~]# service nrpe status Redirecting to /bin/systemctl status nrpe.service
● nrpe.service
* Loaded: not-found (Reason: No such file or directory)*
Active: inactive (dead)
[user~]# rpm -qa | grep nrpe nrpe-3.0-1.x86_64
nrpe-plugin-3.0-1.x86_64
[user~]#cat /etc/redhat-release
*CentOS Linux release 7.2.1511 (Core)*
[user~]#

Any help will be highly appreciable and please let me know if anyone needs any additional information.

Regards,

Kaushal

2 thoughts on - Loaded: Not-found (Reason: No Such File Or Directory)

  • Hi Kaushal,

    It may be that the nrpe.service unit file was deleted by someone. Can you check if it exists in the expected location (/usr/lib/systemd/system)?

    You can also verify if your packages are properly installed, by doing:

    rpm -V nrpe

    If that shows some files missing (such as the systemd unit file), then you’re best of reinstalling nrpe with:

    yum reinstall nrpe

    Regards, Anand

  • Where did your nrpe come from? Here it comes from EPEL and everything is fine:

    root@CentOS7 ~]# systemctl list-unit-files | grep nrpe nrpe.service disabled
    [root@CentOS7 ~]# service nrpe status Redirecting to /bin/systemctl status nrpe.service
    ● nrpe.service – NRPE
    Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled;
    vendor preset: disabled)
    Active: inactive (dead)

    best regards Ulf