Page 1 of 1

Link to "Edit in CCM" in Service status configuration not wo

Posted: Sun May 08, 2016 8:13 am
by sizmek_il
Hello,

I've noticed that when clicking "Edit in CCM" button which is under the "Re-configure this service" in the
service status detail" its always leads to an error message " This object is currently set as Inactive and will not be written to the configuration files." although there is an active service.

It does work great in another nagios we have...
1.serviceStatus.png
2.EditInCCM.png
3.Error.png
We running XI 5.2.7.

Would appreciate your assistance with solving this issue.


uploaded some screenshots for example.

Thanks in advance :)
Alex.

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Sun May 08, 2016 7:10 pm
by Box293
Can you find the service in CCM and click the disk icon.

Paste the text config of the service here in a code block.

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Sun May 08, 2016 10:49 pm
by sizmek_il
Guess the disk icon is the "Relationship info"

Code: Select all

Database Relationships for service:
PHY_NIC_IF_status

Items labeled as: 'Dependent relationships' will prohibit deletion
Object ID: 5374 of table tbl_service:
Relation to Hostgroups, entry: HP_ProLian_Physical_Servers
Relation to Servicetemplates, entry: critical-service
Thanks!

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Mon May 09, 2016 12:04 am
by Box293
No there is an icon that looks like a floppy disk, it will open up another tab with the text definition of the service.

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Mon May 09, 2016 2:31 am
by sizmek_il
Oh, sorry... the correct one is below.

Code: Select all

###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date:	      2016-05-09 07:23:08
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
	service_description		PHY_NIC_IF_status
	use				critical-service
	hostgroup_name			HP_ProLian_Physical_Servers
	check_command			check_NicIfPhsStatus!cac!!!!!!!
	register			1
	}	

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Mon May 09, 2016 3:02 am
by Box293
Great, thanks for that.

Here is why you cannot edit the service from the "Re-configure this service" link:

Code: Select all

hostgroup_name         HP_ProLian_Physical_Servers
Because the service is assigned to a hostgroup, you are not allowed to edit it via the "Re-configure this service" link. This is expected behaviour, you have to do it in CCM.

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Mon May 09, 2016 5:27 am
by sizmek_il
OK, Got it!
Thank you !!!

Re: Link to "Edit in CCM" in Service status configuration no

Posted: Mon May 09, 2016 9:37 am
by tmcdonald
Are we all good to close this up now?