help can get nagios updated to current version.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cliftondasilva
Posts: 5
Joined: Thu Oct 02, 2014 8:43 am

help can get nagios updated to current version.

Post 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!
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: help can get nagios updated to current version.

Post 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.
Former Nagios employee
cliftondasilva
Posts: 5
Joined: Thu Oct 02, 2014 8:43 am

Re: help can get nagios updated to current version.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: help can get nagios updated to current version.

Post 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.
Former Nagios employee
cliftondasilva
Posts: 5
Joined: Thu Oct 02, 2014 8:43 am

Re: help can get nagios updated to current version.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: help can get nagios updated to current version.

Post 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.
Former Nagios employee
Locked