Mystery dependency

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Mystery dependency

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mystery dependency

Post 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
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Mystery dependency

Post by snapon_admin »

Not anywhere that I can see.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Mystery dependency

Post by tmcdonald »

Please run

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

and post the output here.
Former Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Mystery dependency

Post 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 ~]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mystery dependency

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Mystery dependency

Post 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
#
###############################################################################
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Mystery dependency

Post by lmiltchev »

Go to CCM->Host Dependencies and see what you have in there. If the "ARSNAPSAN0001R" host is listed there, remove the dependency.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Mystery dependency

Post by snapon_admin »

That took care of it, thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Mystery dependency

Post by tmcdonald »

Closing up now.
Former Nagios employee
Locked