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.
How do I get to the service to reconfigure or delete the service?
NRPE: check_disk not defined for localhost
-
lee.krause
- Posts: 86
- Joined: Wed Jan 20, 2016 8:38 am
NRPE: check_disk not defined for localhost
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
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.
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
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.
Re: NRPE: check_disk not defined for localhost
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
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
Getting an error when I try to run it:
PROFILE BUILD FAILED
Array
(
)
CODE: 1
PROFILE BUILD FAILED
Array
(
)
CODE: 1
-
jforcier
Re: NRPE: check_disk not defined for localhost
Hey Lee, follow the steps in this article to fix the profile build failure.
https://support.nagios.com/kb/article.p ... ategory=44
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
That did not fix my issue.
I will send the System Info via PM.
I will send the System Info via PM.
Re: NRPE: check_disk not defined for localhost
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.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!