NRPE: check_disk not defined for localhost

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

NRPE: check_disk not defined for localhost

Post 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?
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE: check_disk not defined for localhost

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: NRPE: check_disk not defined for localhost

Post by lee.krause »

I wasn't using the nrpe agent on the localhost. This only showed up after the last update...
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: check_disk not defined for localhost

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: NRPE: check_disk not defined for localhost

Post by lee.krause »

Getting an error when I try to run it:

PROFILE BUILD FAILED
Array
(
)
CODE: 1
jforcier

Re: NRPE: check_disk not defined for localhost

Post 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
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: NRPE: check_disk not defined for localhost

Post by lee.krause »

That did not fix my issue.

I will send the System Info via PM.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: check_disk not defined for localhost

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked