Page 1 of 2

CCM Changes Disappearing

Posted: Mon Aug 21, 2017 10:11 am
by chicjo01
Nagios XI: 5.4.2

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/unix+default+_.cfg', starting on line 16)

Problem: When I attach a hostgroup to a service template and save. The hostgroup disappears and is no longer attached in the CCM. Only happens with the remote database.

The Apache Logs show the below error when I click on the service template:
[Mon Aug 21 15:07:19.150990 2017] [:error] [pid 83958] [client XXX.XXX.XXX.XXX:1532] PHP Warning: base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utils-macros.inc.php on line 32, referer: http://10.193.20.112/nagiosxi/includes/ ... ate&page=1

Re: CCM Changes Disappearing

Posted: Mon Aug 21, 2017 1:36 pm
by cdienger
Can you provide screenshots of the behavior so we can get a better idea of what is occuring?

Also, please go to Configure > Core Config Manager > Tools > Config File Management and click:

1. Delete Files
2. Write Configs
3. Verify Files (note any warnings or errors
4. Restart Nagios Core

Re: CCM Changes Disappearing

Posted: Tue Aug 22, 2017 12:33 pm
by chicjo01
Capture.PNG

Re: CCM Changes Disappearing

Posted: Tue Aug 22, 2017 1:12 pm
by scottwilkerson
I just tested thin in 5.4.8 and it works as expected, and I thought I remembered seeing this bug in the past but couldn't put my finger on it in the change log.

Would it be possible to upgrade to the latest?

Re: CCM Changes Disappearing

Posted: Tue Aug 22, 2017 2:19 pm
by chicjo01
Will check if it is possible to upgrade and will let you know.

Re: CCM Changes Disappearing

Posted: Tue Aug 22, 2017 3:04 pm
by scottwilkerson
I also didn't notice that you mentioned this "only happens with the remote database"

Are you switching back and forth?

Re: CCM Changes Disappearing

Posted: Wed Aug 23, 2017 9:52 am
by chicjo01
After upgrading to the latest version of Nagios, the problem continues to happen. We discovered the problem is happening only on the remote database and not local through troubleshooting.

Re: CCM Changes Disappearing

Posted: Wed Aug 23, 2017 9:57 am
by scottwilkerson
chicjo01 wrote:After upgrading to the latest version of Nagios, the problem continues to happen. We discovered the problem is happening only on the remote database and not local through troubleshooting.
Are you switching back and forth between databases? I'm a little confused about this part.

Re: CCM Changes Disappearing

Posted: Wed Aug 23, 2017 10:14 am
by chicjo01
We are trying to use a remote database, to ensure we have better performance. We are seeing the problem, where the CCM change is disappearing when we have Nagios setup to use a remote database.

The reason I only mentioned the local database is that we did troubleshooting and found this problem is only happening when we setup Nagios to only use the remote database. We are not switching them, we want to use the remote database only.

Re: CCM Changes Disappearing

Posted: Wed Aug 23, 2017 11:29 am
by cdienger
Please generate a profile on the XI machine(Admin > System Config > System Profile), email it to [email protected], and reference this thread. We'll open a ticket to take a closer look.