CCM Bug

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

CCM Bug

Post by mopp »

I found the following bug in Nagios XI 5.4.2.

To reproduce do the following.
Create a Service Template (in my case "generic-service_bug") with the necessary settings.
Create a Services and assign the newly created Service Template
=> Apply Configuration
=> Everything should be okay.
Disable the new created Service Template
=> Apply Configuration

Code: Select all

Error: Template 'generic-service_bug' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/localhost_copy_1.cfg', starting on line 16)
Checked the configuration snapshot:

Code: Select all

define service {
	host_name			localhost
	service_description		Dummy
	use				generic-service_bug
[...]
	register			1
	}	
The template generic-service_bug is used, but it is disabled.
In Object relationships I see the relationship between generic-service_bug and Dummy on the Service Template. On the Service you see one active relationship, but the relation is not shown.
So CCM knows there is an active relationship but allows to disable the service. From my point of view it is a bug.

If you accept this as a bug you can close the thread.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: CCM Bug

Post by avandemore »

I don't understand why you think this should be a bug. If you disable a template, Nagios Core will not know about it's existence.

Currently there is no way to work out relationships with disabled objects. Is this what you view as a bug?
Previous Nagios employee
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Re: CCM Bug

Post by mopp »

If you disable a template and the template is used by a service then "Apply Configuration" will try to generate a invalid configuration.
CCM is something like a high level user friendly web tool, it should prevent errors.
In case of this error you will just get the error message: Something went wrong, go back to the latest snapshot.
It would be much nicer if CCM will not allow you to disable an used template.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: CCM Bug

Post by avandemore »

I have put in a feature request for this. CCM itself I think is slated for some work, perhaps this type of thing will be addressed at that point.
Previous Nagios employee
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Re: CCM Bug

Post by mopp »

For me it is more a bug, but thank you for adding this to the feature request list.

You can close the thread.
Locked