Mystery dependency
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Mystery dependency
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
If you verify manually does it show you?:
CCM > Tools > Write Configs
Or:
CCM > Tools > Write Configs
Or:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Mystery dependency
Not anywhere that I can see.
Re: Mystery dependency
Please run
grep -R "ARSNAPSAN0001R" /usr/local/nagios/etc/
and post the output here.
grep -R "ARSNAPSAN0001R" /usr/local/nagios/etc/
and post the output here.
Former Nagios employee
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Mystery dependency
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
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)
(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.
"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.
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Mystery dependency
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
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!
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Mystery dependency
That took care of it, thanks!