XI Error: Command name of command line is NULL
Posted: Mon Aug 24, 2015 4:19 am
Hi!
I have added a few individual services and hosts with Wizard and the work OK. But when I try to use "Windows SNMP" wizard, no matter what config I use there is an error when "checking configuration".
If I check "Test Check Command" in each invididual SNMP they works OK.
Config data:
Line 291 of commands.cfg starts in:
System profile:
* If I run: ./reconfigure_nagios.sh same error shows up.
* I removed "sudo" from /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh in line: sudo $BASEDIR/manage_services.sh restart nagios
* I have installed Centos 6.7 basic Server and Nagios manual installation with no problems at all.
I have added a few individual services and hosts with Wizard and the work OK. But when I try to use "Windows SNMP" wizard, no matter what config I use there is an error when "checking configuration".
If I check "Test Check Command" in each invididual SNMP they works OK.
Config data:
Code: Select all
Read main config file okay...
Error: Command name of command line is NULL
Error: Could not register command (config file [b]'/usr/local/nagios/etc/commands.cfg', starting on line 291[/b])
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Code: Select all
define command {
command_name check_xi_by_ssh
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ $ARG1$ $ARG2$
}
291: define command {
command_name check_xi_deface
command_line $USER1$/check_http -H $HOSTADDRESS$ -r '$ARG1$' -u '$ARG2$' $ARG3$
}
define command {
command_name check_xi_domain_v2
command_line $USER1$/check_domain.php -d $ARG1$ $ARG2$ $ARG3$
}
define command {
command_name check_xi_host_http
command_line $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}
Code: Select all
System:
Nagios XI Version : 2014R2.7
localhost.localdomain 2.6.32-573.3.1.el6.x86_64 x86_64
CentOS release 6.7 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.46 Safari/537.36
Server Name: 172.26.xxx.xxx
Server Address: 172.26.xxx.xxx
Server Port: 80
Date/Time
PHP Timezone: Atlantic/Canary
PHP Time: Mon, 24 Aug 2015 10:06:48 +0100
System Time: Mon, 24 Aug 2015 10:06:48 +0100
Nagios XI Data
License ends in:
Days left in Trial: 51
nagios (pid 29605) is running...
NPCD running (pid 1356).
ndo2db (pid 1435) is running...
CPU Load 15: 0.09
Total Hosts: 29
Total Services: 37
Function 'get_base_uri' returns: http://172.26.xxx.xxx/nagiosxi/
Function 'get_base_url' returns: http://172.26.xxx.xxx/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://172.26.xxx.xxx/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
* I removed "sudo" from /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh in line: sudo $BASEDIR/manage_services.sh restart nagios
* I have installed Centos 6.7 basic Server and Nagios manual installation with no problems at all.