NCPA Agent Wizard Service Detection Error
Posted: Wed Jul 22, 2015 10:03 am
I am getting the following error in the Apache ssl_error_log when I attempt to use the NCPA Agent wizard. I am running Nagios XI 2014R1.5 on an RHEL 5 Linux server.
Following is the code snippet from the referenced wizard:
The following always precedes the above, but other posts indicate this can be ignored:
When I click the icon next to the "Service Name" text box which is supposed to list the services on the host (I tried this on Linux, SunOS, and Windows), the list is blank. I should also note that in the Web interface for each agent, the API "tree" lists no entries for either processes or services. This "sort of" indicates that the issue may be with the agent configuration or performance and that the Warning above is simply the result of it finding no services to list.
If I manually navigate to the "api/services" part of the API tree (e.g. http://myserver.com:5693/api/services), I do get a listing for the Linux and Windows servers.
Code: Select all
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagios/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php on line 391, referer: https://m5labnagios01.gcsc.att.com:8443/nagiosxi/config/monitoringwizard.php?update=1&nextstep=2&nsp=XXXXXXXXXXXXXXXXXXXXXXX&wizard=ncpaCode: Select all
foreach ($root['services'] as $service => $status) {
$service_list .= '<option value="' . $service . '" data-status="' . $status . '">' . $service . ' (' . $status . ')</option>';
}
Code: Select all
PHP Notice: Undefined index: service in /usr/local/nagios/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php on line 149, referer: If I manually navigate to the "api/services" part of the API tree (e.g. http://myserver.com:5693/api/services), I do get a listing for the Linux and Windows servers.