Page 1 of 1
Unrecognized external command -> START_EXECUTING_SVC_CHECKS
Posted: Thu Dec 13, 2018 8:41 pm
by SteveBeauchemin
I have no idea what I did.
How do I fix this:
Warning: Unrecognized external command -> START_EXECUTING_SVC_CHECKS
That is nagios.log entry for when I click to start active checks in the GUI.
I had stopped Active Service checks and Active Host checks so I could do a backup_xi. I do that so when I do restore_xi the system comes up quietly. Not trying to fire off thousands of tests the second it wakes up. But for some reason I cannot make the system start running service checks. Or host checks.
Anyone have a solution? I was going to move to a new version. But until this works again I cannot.
Thanks
Steve B
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 14, 2018 1:04 pm
by npolovenko
@SteveBeauchemin, Please open the /usr/local/nagios/etc/nagios.cfg file and make sure that these directives are set to 1:
execute_service_checks=1
execute_host_checks=1
Then restart nagios with:
service nagios restart
Let me know if this works for you.
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 14, 2018 3:30 pm
by SteveBeauchemin
I verified that those 2 settings are as requested. No change needed.
Code: Select all
execute_host_checks=1
execute_service_checks=1
Using
https://assets.nagios.com/downloads/nag ... mand_id=41
I made the script to test
Code: Select all
#!/bin/sh -x
# This is a sample shell script showing how you can submit the START_EXECUTING_SVC_CHECKS command
# to Nagios. Adjust variables to fit your environment as necessary.
now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'
/bin/printf "[%lu] START_EXECUTING_SVC_CHECKS\n" $now > $commandfile
Using tail -f nagios.log when I run the test I see this...
[1544819232] Warning: Unrecognized external command -> START_EXECUTING_SVC_CHECKS
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 14, 2018 4:10 pm
by npolovenko
@SteveBeauchemin, What version of XI are you running?
Please go to XI web interface, click on the Admin tab and in the left column select "Monitoring Engine Status". and then click on green checkmarks next to the Active Host Checks and Active Service Checks.
Untitled.png
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 14, 2018 4:40 pm
by SteveBeauchemin
That is the problem.
When I click that the nagios.log generates the message.
Steve B
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Mon Dec 17, 2018 10:44 am
by npolovenko
@SteveBeauchemin, First, please backup your XI server(
important):
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Or create a snapshot of the VM.
Then download the tarball for the same version of XI that you have from:
https://www.nagios.com/downloads/nagios ... -releases/
For example:
Untar the archive and run the command to recompile core:
tar xzf xi-5.4.0.tar.gz
cd /tmp/nagiosxi/subcomponents/nagioscore/
./upgrade
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Mon Dec 17, 2018 4:59 pm
by SteveBeauchemin
Thank you for the information. I will try it tomorrow and post back.
Much appreciated.
Steve B
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Mon Dec 17, 2018 5:01 pm
by npolovenko
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 21, 2018 12:40 pm
by SteveBeauchemin
Must be an OS issue. Other weird things are not working, like the 'nice' command.
I did the upgrade you suggested and have a new nagios binary in place. The problem still happens.
Please close this as I will be migrating to a new host and then upgrading to the latest.
I am abandoning the bad host.
Thanks
Steve B
Re: Unrecognized external command -> START_EXECUTING_SVC_CHE
Posted: Fri Dec 21, 2018 1:31 pm
by npolovenko
@ SteveBeauchemin, That is weird. Sounds good, I will be closing the thread.