Page 1 of 1

help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 9:45 am
by cliftondasilva
hey all,

I've been trying to get nagios updated since I had a an error regarding the localhost
the error is on the attachment provided in the post.


the upgrade failed with errors and now I have all these errors showing up. I've tried to comment (#) the errors out but when I apply the configuration it resets the .cfg files and removes my comments. hitting a wall with this and any help would be great. below is the errors I'm receiving since the upgrade failed.

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 160)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 145)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/devlfvc02.dev.wonderware.com.cfg', starting on line 77)
Error processing object config files!

Re: help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 10:02 am
by tmcdonald
Editing the config files by hand will not work as Nagios XI will overwrite them on an apply config. All configuration should be handled through the Core Config Manager.

The error you are seeing means that one of the services for devlfvc02.dev.wonderware.com does not have a service description, so look in devlfvc02.dev.wonderware.com.cfg on line 77 for that service, and set a description for it in the web interface, then apply. You might have several missing descriptions, so if they aren't all fixed you will need to repeat this process until the verify comes out clean.

Re: help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 10:16 am
by cliftondasilva
where in ccm would I be able to find the file and edit it?? sorry I am new to configuring .cfg files for nagios.

Re: help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 10:31 am
by tmcdonald
This doc was written for hosts, but it works the same for services:

http://assets.nagios.com/downloads/nagi ... gement.pdf

Just make sure of course that you go to the Services section and not the Hosts section.

Re: help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 11:47 am
by cliftondasilva
it seems that everytime I try to fix an error another one comes around and if clear that one another one is there. i'm hitting a wall with any configuration changes.

Re: help can get nagios updated to current version.

Posted: Thu Oct 02, 2014 12:06 pm
by tmcdonald
If you have multiple services that are missing the service definition you will want to fix them all before applying the config. The way the backend works, unfortunately, it will only catch the first error because it can't make assumptions about anything that may rely on that erroring host/service due to the missing fields.