Page 1 of 1
NRPE: check_disk not defined for localhost
Posted: Tue Aug 28, 2018 1:37 pm
by lee.krause
After the upgrade I started getting the following error on loclhost for Nagios:
"NRPE: Command 'check_disk' not defined"
I have looked and can't delete the service or even find a check_disk for localhost.
I have included some screenshot of what I'm seeing.
localhost.PNG
check_disk.PNG
How do I get to the service to reconfigure or delete the service?
Re: NRPE: check_disk not defined for localhost
Posted: Tue Aug 28, 2018 3:28 pm
by npolovenko
Hello,
@lee.krause. Before we start troubleshooting your nrpe command definitions let me ask why you chose to use the nrpe agent on the localhost? XI comes with standard checks for localhost that do not use a remote agent.
Please upload the /usr/local/nagios/etc/nrpe.cfg file from the nagios server.
Re: NRPE: check_disk not defined for localhost
Posted: Thu Sep 06, 2018 1:40 pm
by lee.krause
I wasn't using the nrpe agent on the localhost. This only showed up after the last update...
Re: NRPE: check_disk not defined for localhost
Posted: Thu Sep 06, 2018 2:07 pm
by lmiltchev
We need to review all of your configs and check some logs in order to troubleshoot this issue. Can you PM me (or anyone on the Nagios Support team) your profile?
Admin > System Config > System Profile > Download Profile
Re: NRPE: check_disk not defined for localhost
Posted: Tue Sep 18, 2018 7:48 am
by lee.krause
Getting an error when I try to run it:
PROFILE BUILD FAILED
Array
(
)
CODE: 1
Re: NRPE: check_disk not defined for localhost
Posted: Tue Sep 18, 2018 10:07 am
by jforcier
Hey Lee, follow the steps in this article to fix the profile build failure.
https://support.nagios.com/kb/article.p ... ategory=44
Re: NRPE: check_disk not defined for localhost
Posted: Tue Sep 18, 2018 12:45 pm
by lee.krause
That did not fix my issue.
I will send the System Info via PM.
Re: NRPE: check_disk not defined for localhost
Posted: Tue Sep 18, 2018 1:30 pm
by lmiltchev
Can you run the following commands from the command line and show the output in code wraps?
Code: Select all
cat /usr/local/nagios/etc/hosts/localhost.cfg
cat /usr/local/nagios/etc/hosttemplates.cfg
cat /usr/local/nagios/etc/commands.cfg
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg