[CentOS] Loaded: not-found (Reason: No such file or directory)

Mon Aug 29 11:18:06 UTC 2016
Anand Buddhdev <anandb at ripe.net>

On 29/08/16 13:07, Kaushal Shriyan wrote:

Hi Kaushal,

> 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

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