Cannot apply config in Nagios XI 2024R1.0.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
mattlarson
Posts: 5
Joined: Fri Apr 03, 2020 8:53 am

Cannot apply config in Nagios XI 2024R1.0.1

Post by mattlarson »

Greetings!

When I attempt to apply configuration changes in Nagios XI 2024R1.01, the "verifying configuration" step hangs.

Searching logs reveals an issue in /var/log/apache2:

PHP Warning: Undefined array key "config_name" in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1498, referer: https://nagios.isoc.org/nagiosxi/includ ... ost&page=1
PHP Warning: Undefined array key "service_description" in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1499, referer: https://nagios.isoc.org/nagiosxi/includ ... ost&page=1

It appears something is borked in the latest release?
mattlarson
Posts: 5
Joined: Fri Apr 03, 2020 8:53 am

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by mattlarson »

System config snapshot:

Nagios XI - System Info
System
Nagios XI version: 2024R1.0.1
Release info: nagios 5.15.0-91-generic x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
Gnome is not installed
Apache Information
PHP Version: 8.1.27
Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Server Name: nagios.isoc.org
Server Address: 134.209.117.199
Server Port: 443
Date/Time
PHP Timezone: Not set
PHP Time: Tue, 23 Jan 2024 15:11:03 +0000
System Time: Tue, 23 Jan 2024 15:11:03 +0000
Nagios XI Data
License ends in: RMONQT
UUID: 386fd003-7525-4878-b9a6-168ca6c6eaef
Install Type: source

└─1652 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
└─833 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
CPU Load 15: 0.20
Total Hosts: 42
Total Services: 227

Function get_base_uri() returns: https://nagios.isoc.org/nagiosxi/
Function get_base_url() returns: https://nagios.isoc.org/nagiosxi/
Function get_backend_url(internal_call=false) returns: https://nagios.isoc.org/nagiosxi/includ ... rofile.php
Function get_backend_url(internal_call=true) returns: http://localhost/nagiosxi/backend/

Ping Test localhost
Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.057 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.045 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2047ms
rtt min/avg/max/mdev = 0.027/0.043/0.057/0.012 ms
Test wget To localhost
WGET From URL: http://localhost/nagiosxi/includes/components/ccm/
Running:
/usr/bin/wget http://localhost/nagiosxi/includes/components/ccm/
--2024-01-23 15:11:05-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27 [text/html]
Saving to: '/usr/local/nagiosxi/tmp/ccm_index.tmp'

0K 100% 3.98M=0s

2024-01-23 15:11:05 (3.98 MB/s) - '/usr/local/nagiosxi/tmp/ccm_index.tmp' saved [27/27]

Network Settings


Nagios XI Components
actions 2.2.4
alertcloud 1.2.1
alertstream 2.1.1
autodiscovery 2.2.6
backendapiurl 1.0.5
bandwidthreport 2.0.4
bbmap 2.0.0
birdseye 3.2.5
bulkmodifications 2.3.4
capacityplanning 2.3.2
ccm 3.2.1
custom-includes 1.1.2
customlogin 1.0.0
customlogo 1.2.0
deploydashboard 1.3.2
deploynotification 1.3.4
duo 1.1.1
escalationwizard 1.5.1
favorites 1.1.0
customvariabletab 1.1.1
globaleventhandler 1.3.0
graphexplorer 2.3.0
helpsystem 2.0.1
highcharts
homepagemod 1.1.12
hopscotch-tours 1.0.0
hypermap 1.2.3
hypermap_replay 1.2.2
latestalerts 1.2.8
ldap_ad_integration
map 1.2.0
massacknowledge 2.2.2
massimmediatecheck 1.0.2
massnotifications 1.0.0
metrics 1.3.10
minemap 1.2.6
msp 1.2.0
mtr 1.0.4
nagiosbpi 3.0.7
nagioscore
nagioscorecfg
nagiosna 1.4.5
nagiosql
nagvis 2.1.6
nocscreen 1.4.3
nrdsconfigmanager 1.6.11
nxti 1.0.4
opscreen 1.8.1
perfdata
pingaction 1.1.2
pnp
profile 1.4.1
proxy 1.1.5
rdp 1.0.5
rename 1.7.0
scheduledbackups 1.2.1
scheduledreporting
similetimeline 1.5.1
snmptrapsender 1.6.6
statusmap 1.0.3
tracerouteaction 1.2.0
twilio 1.0.2
usermacros 1.1.0
xicore
Nagios XI Config Wizards
activedirectory 2.0.0
ec2 1.1.6
s3 2.0.0
java_tomcat 2.0.0
autodiscovery 1.4.6
bpiwizard 2.0.0
bulkhostimport 2.1.4
capacity-planning 1.0.3
dhcp 2.0.0
dnsquery 2.0.0
digitalocean 2.0.0
eventhandler_notify_discord 1.0.0
docker 1.1.5
domain_expiration 2.0.0
email-delivery 2.0.6
esensors_websensor 2.0.0
exchange 3.0.0
ftpserver 2.0.0
folder_watch 1.0.8
genericnetdevice 2.0.0
java_glassfish 2.0.0
google-cloud 2.0.0
hyperv 2.0.0
java_jboss 2.0.0
json 2.0.0
java_jetty 2.0.0
ldapserver 2.0.0
linode 2.0.0
linux_snmp 1.6.1
linux-server 3.0.0
linux-server_legacy 1.6.1
mssql_database 3.0.0
mssql_query 2.0.0
mssql_server 3.0.0
macosx 3.0.0
mailserver 1.2.8
microsoft-azure 2.0.0
microsoft_365 1.0.3
mongodb_database 2.0.0
mongodbserver 2.0.0
mountpoint 2.0.0
mysqlquery 2.0.0
mysqlserver 2.0.0
ncpa 4.0.0
nrpe 1.6.1
nsclient 1.0.1
nagioslogserver 2.0.0
nna 2.0.0
nagiosxiserver 2.0.0
nagiostats 2.0.0
switch 3.0.0
openai_usage 1.0.0
oraclequery 2.0.0
oracleserverspace 2.0.0
oracletablespace 2.0.0
passivecheck 2.0.0
postgresdb 2.0.0
postgresquery 2.0.0
postgresserver 2.0.0
printer 2.0.0
radiusserver 3.0.0
rackspace 2.0.0
sla 2.0.0
snmp 2.0.0
snmp_trap 2.0.0
snmpwalk 3.0.0
sshproxy 1.5.10
eventhandler_notify_slack 1.0.0
solaris 2.0.0
tcpudpport 2.0.0
tftp 2.0.0
passiveobject 1.1.4
vmware 1.7.6
watchguard 2.0.0
webtransaction 1.2.9
java_weblogic 2.0.0
website 2.0.0
website_defacement 2.0.0
websiteurl 2.0.0
windowsdesktop 3.0.0
windowseventlog 3.0.0
windowssnmp 1.6.2
windows-ssh 1.0.0
windowsserver 3.0.0
windowswmi 2.3.2
xml 2.0.0
Nagios XI Dashlets
alertcloud
bbmap
capacityplanning
graphexplorer
hypermap
latestalerts
metrics
metricsguage
minemap
xicore_getting_started
xicore_admin_tasks
xicore_eventqueue_chart
xicore_component_status
xicore_server_stats
xicore_monitoring_stats
xicore_monitoring_perf
xicore_monitoring_process
xicore_perfdata_chart
xicore_host_status_summary
xicore_service_status_summary
xicore_comments
xicore_hostgroup_status_overview
xicore_hostgroup_status_grid
xicore_servicegroup_status_overview
xicore_servicegroup_status_grid
xicore_hostgroup_status_summary
xicore_servicegroup_status_summary
xicore_available_updates
xicore_network_outages
xicore_network_outages_summary
xicore_network_health
xicore_host_status_tac_summary
xicore_service_status_tac_summary
xicore_feature_status_tac_summary
availability
custom_dashlet 1.0.7
gauges 1.2.2
googlemapdashlet 1.1.0
highchart-dashlet 1.0.0
internettrafficreport
modern_gauge 1.0.0
rss_dashlet 1.1.6
sansrisingports 3.0
sla
snmptraps 1.0.0
worldtimeserver 2.0.0
User avatar
jmichaelson
Posts: 117
Joined: Wed Aug 23, 2023 1:02 pm

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by jmichaelson »

Are you able to revert the CCM configuration to a previously good snapshot?
Please let us know if you have any other questions or concerns.

-Jason
mattlarson
Posts: 5
Joined: Fri Apr 03, 2020 8:53 am

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by mattlarson »

i am not able to roll back - the command returns a message that the rollback is scheduled, but it never seems to occur.

Checking the logs now to see if it shows an error.
User avatar
jmichaelson
Posts: 117
Joined: Wed Aug 23, 2023 1:02 pm

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by jmichaelson »

Did the logs show a similar error?
Please let us know if you have any other questions or concerns.

-Jason
mattlarson
Posts: 5
Joined: Fri Apr 03, 2020 8:53 am

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by mattlarson »

The logs don't seem to show any error after the rollback is queued.
User avatar
jmichaelson
Posts: 117
Joined: Wed Aug 23, 2023 1:02 pm

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by jmichaelson »

I think I'm going to have to encourage you to open a ticket with support. https://answerhub.nagios.com/support/s/
Please let us know if you have any other questions or concerns.

-Jason
mattlarson
Posts: 5
Joined: Fri Apr 03, 2020 8:53 am

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by mattlarson »

Will do, thanks.
otisjame
Posts: 5
Joined: Mon Sep 18, 2023 11:54 pm

Re: Cannot apply config in Nagios XI 2024R1.0.1

Post by otisjame »

mattlarson wrote: Tue Jan 23, 2024 9:34 am Greetings!

When I attempt to apply configuration changes in Nagios XI 2024R1.01, the "verifying configuration" step hangs.

Searching logs reveals an issue in /var/log/apache2:

PHP Warning: Undefined array key "config_name" in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1498, referer: https://nagios.isoc.org/nagiosxi/includ ... ost&page=1 buckshot roulette
PHP Warning: Undefined array key "service_description" in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1499, referer: https://nagios.isoc.org/nagiosxi/includ ... ost&page=1

It appears something is borked in the latest release?
If you have access to the PHP codebase of Nagios XI, you can try debugging the PHP warnings mentioned in the logs. The warnings indicate that there are undefined array keys in the data.class.php file. You can review the code at the specified line numbers and try to identify and resolve the issue.
Post Reply