-Is there anyway to restore defaults? Any help would be appreciated.
Code: Select all
---commands.cfg:
define command {
command_name check_xi_host_ping
}
-here are a couple of more in the commands.cfg file as well
define command {
command_name check_xi_service_ftp
}
define command {
command_name check_xi_service_http
}I have been through the services templates trying to find the service that controls this command -with no luck.
Can anyone point me to the service?
Code: Select all
Error: Command name of command line is NULL
Error: Could not register command (config file '/usr/local/nagios/etc/commands.cfg', starting on line 161)
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Command name of command line is NULL
Error: Could not register command (config file '/usr/local/nagios/etc/commands.cfg', starting on line 161)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.