Page 1 of 1

cannot modify Nagios configuration

Posted: Fri Jul 26, 2013 12:48 pm
by bmusson
There seems to be a change which was made that prevent nagios from taking the new configuration files.


the configuration error is:

Processing object config file '/usr/local/nagios/etc/services/itesx03.nimblestorage.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/win7-corp2.nimblestorage.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/gmini.nimblestorage.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/rdp.nimblestorage.com.cfg'...
Error: Could not expand dependent services specified in service dependency (config file '/usr/local/nagios/etc/servicedependencies.cfg', starting on line 14)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.


So looking at the /usr/local/nagios/etc/servicedependencies.cfg file, i don't see anything there. I've tried deleting the white space but that does not seem to fix the issue:

###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2013-06-28 22:16:22
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

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


please advise.

Re: cannot modify Nagios configuration

Posted: Fri Jul 26, 2013 1:18 pm
by lmiltchev
Go to: CCM->Advanced->Service Dependencies, click on the "View Text Config" actions button and post the config (hide the sensitive info).

Re: cannot modify Nagios configuration

Posted: Mon Jul 29, 2013 3:12 pm
by bmusson
###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2013-07-29 13:14:36
# 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 servicedependency {
hostgroup_name Linux-based network storage
service_description NFS health status
inherits_parent 1
execution_failure_criteria c,
notification_failure_criteria c,
dependency_period 24x7

}

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

Re: cannot modify Nagios configuration

Posted: Mon Jul 29, 2013 4:03 pm
by lmiltchev
I believe you are missing two directives in the config:

Code: Select all

dependent_hostgroup_name
dependent_service_description
You should have:
define servicedependency {
dependent_hostgroup_name <some_hostgroup>
dependent_service_description <some_service>

hostgroup_name Linux-based network storage
service_description NFS health status
inherits_parent 1
execution_failure_criteria c,
notification_failure_criteria c,
dependency_period 24x7

}
Under "Service Dependency Management" click on "Manage Dependent Hostgroups" and "Manage Service Dependencies" and make some mods. After that, run the Write Config Tool to check for config errors. If there are no errors, apply configuration.

Re: cannot modify Nagios configuration

Posted: Mon Jul 29, 2013 7:23 pm
by bmusson
My apologies, but i do not see "Service Dependency Management" anywhere on the interface. I've searched everywhere.

Re: cannot modify Nagios configuration

Posted: Tue Jul 30, 2013 12:28 am
by bmusson
this can be marked resolved. i removed the service dependency.
thanks for your help.

Re: cannot modify Nagios configuration

Posted: Tue Jul 30, 2013 9:20 am
by yancy
bmusson,

Thanks for letting us know!

-Yancy