Page 1 of 1

Mystery dependency

Posted: Mon Feb 24, 2014 1:01 pm
by snapon_admin
I'm trying to delete a host and Nagios keeps yelling at me that there's a dependency that prevents me from deleting the host. Any idea how I can figure out what the dependency is? Screenshot of host info attached.

Re: Mystery dependency

Posted: Mon Feb 24, 2014 2:03 pm
by slansing
If you verify manually does it show you?:

CCM > Tools > Write Configs

Or:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Mystery dependency

Posted: Mon Feb 24, 2014 3:39 pm
by snapon_admin
Not anywhere that I can see.

Re: Mystery dependency

Posted: Mon Feb 24, 2014 3:42 pm
by tmcdonald
Please run

grep -R "ARSNAPSAN0001R" /usr/local/nagios/etc/

and post the output here.

Re: Mystery dependency

Posted: Mon Feb 24, 2014 3:56 pm
by snapon_admin

Code: Select all

[root@lisl-ngos-01-pv ~]# grep -R "ARSNAPSAN0001R" /usr/local/nagios/etc/
/usr/local/nagios/etc/hosts/ARSNAPSAN0001R.cfg: host_name                       ARSNAPSAN0001R
[root@lisl-ngos-01-pv ~]#

Re: Mystery dependency

Posted: Mon Feb 24, 2014 4:50 pm
by abrist
Can you post the full host config? Go to --> Configure --> Core Config Manager --> Hosts --> search for "ARSNAPSAN0001R" --> click the "floppy disk" icon and post the text file here.
(obfuscate sensitive bits)

Re: Mystery dependency

Posted: Mon Feb 24, 2014 4:56 pm
by snapon_admin

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2014-02-24 15:56:26
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define host {
	host_name			ARSNAPSAN0001R
	use				xiwizard_switch_host
	alias				[REMOVED]
	address				[REMOVED]
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	event_handler			xi_host_notification_handler
	low_flap_threshold		10
	high_flap_threshold		40
	flap_detection_enabled		1
	contact_groups			null
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	first_notification_delay	0
	notification_options		d,u,r,f,s,
	notifications_enabled		1
	icon_image			att.png
	_xiwizard			switch
	register			1
	}	

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

Re: Mystery dependency

Posted: Mon Feb 24, 2014 5:30 pm
by lmiltchev
Go to CCM->Host Dependencies and see what you have in there. If the "ARSNAPSAN0001R" host is listed there, remove the dependency.

Re: Mystery dependency

Posted: Tue Feb 25, 2014 4:38 pm
by snapon_admin
That took care of it, thanks!

Re: Mystery dependency

Posted: Tue Feb 25, 2014 4:41 pm
by tmcdonald
Closing up now.