Page 4 of 5

Re: Ram disk and config errors

Posted: Wed Oct 22, 2014 10:15 am
by Box293
Ok I think what you need to do is:
  • Edit the host template xiwizard_linuxserver_host
    Alert Settings tab
    Manage Contactgroups button
    Under Contactgroup Options select the + radio
    Click Close
    Click Save
    Apply Configuation
Let me know if this works.

Re: Ram disk and config errors

Posted: Wed Oct 22, 2014 11:40 am
by jbennett
I just made the change as requested, applied changes after saving, and went to write configs to file, then verify, and I'm still getting a long list of hosts that have no default contacts or contactgroups defined.

Re: Ram disk and config errors

Posted: Thu Oct 23, 2014 1:32 pm
by Box293
Can you please PM me your system profile:
  • Click the Admin menu
    System Config > System Profile
    Click the Download Profile button and PM me that file

Re: Ram disk and config errors

Posted: Thu Oct 23, 2014 2:04 pm
by jbennett
Done!

Re: Ram disk and config errors

Posted: Thu Oct 23, 2014 4:08 pm
by Box293
Thanks for the profile.

I can still see some issue with some hosts having a contact_groups directive but no values assigned (which would override the template regardless).

Let's try this:

Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Click the Verify button

At this point do you still get the warning about hosts not having default contact groups?

In any case you should finish off with.
Quick Tools > Apply Configuration
Click the Apply Configuration button

Re: Ram disk and config errors

Posted: Fri Oct 24, 2014 1:43 pm
by jbennett
:(

Unfortunately, they're all coming back still:

Code: Select all

Warning: Host 'xxxx' has no default contacts or contactgroups defined! 

Re: Ram disk and config errors

Posted: Fri Oct 24, 2014 1:54 pm
by lmiltchev
Can you post the host definition of Host 'xxxx'? Hide sensitive info.

Re: Ram disk and config errors

Posted: Fri Oct 24, 2014 1:58 pm
by jbennett

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.2.2
# Date:	      2014-10-24 13:57:34
# 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 host {
	host_name			xxxx
	use				xiwizard_genericnetdevice_host_xxxx
	alias				xxxx 
	display_name			xxxx 
	address				xx.xx.xx.xx
	check_command			check_ping!3000.0,80%!5000.0,100%!!!!!!
	passive_checks_enabled		1
	check_freshness			0
	contact_groups			
	action_url			http://xx.xx.xx.xx/
	icon_image			snmp.png
	_xiwizard			snmp
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Re: Ram disk and config errors

Posted: Fri Oct 24, 2014 2:07 pm
by Box293
I'm going to be out of the office for a few days and the team is going to look into it more.

From what you are demonstrating, it seems like there is a bug in the bulk modification tool which is causing this blank "contact_groups" directive in the host objects.

Re: Ram disk and config errors

Posted: Fri Oct 24, 2014 2:28 pm
by jbennett
Sounds good to me. Thanks!