Nagios upgrade from 3.5.0 to 4.0.8 issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by kalyan1709 »

Hi,

I have upgraded my Nagios Core 3.5.0 to 4.0.8.
After doing this I was not able to start nagios service. Also I can see "Unable to get process status" on the Nagios landing page.


# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

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: enable_embedded_perl is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: sleep_time 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: 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/objects/templates.cfg', starting at line 52)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 157)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 219)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 269)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 295)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/templates.cfg', starting at line 321)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/objects/maintenance.cfg', starting at line 12)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 1231 services.
Checked 221 hosts.
Checked 34 host groups.
Checked 2 service groups.
Checked 28 contacts.
Checked 27 contact groups.
Checked 125 commands.
Checked 7 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 221 hosts
Checked 0 service dependencies
Checked 172 host dependencies
Checked 7 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


Please suggest.

Thanks,
KalyanP
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by tmcdonald »

The warnings can be ignored, so let's check to see if the Nagios process truly is running or not:

Code: Select all

service nagios status
ls -l /usr/local/nagios/var/nagios.lock
Former Nagios employee
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by kalyan1709 »

Hi tmcdonald,

Thanks for the reply.

[root@nagios ~]# service nagios start
Starting nagios: done.
[root@nagios ~]# service nagios status
nagios is not running
[root@nagios ~]# ls -l /usr/local/nagios/var/nagios.lock
-rw-r--r-- 1 nagios nagios 6 Oct 10 06:49 /usr/local/nagios/var/nagios.lock
[root@nagios ~]#

Thanks,
KalyanP
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by tmcdonald »

I believe if you remove that file, nagios will start properly. The init script should look for that file as evidence of the Nagios process running, and if it is still there for whatever reason it may not start.
Former Nagios employee
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by kalyan1709 »

Hi tmcdonald ,

I have removed the lock file and tried starting Nagios service, But the no use.

Thanks,
KalyanP
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by tmcdonald »

After you remove it and try starting Nagios, is it still there? Can you share part of the nagios log file?

Code: Select all

tail -20 /usr/local/nagios/var/nagios.log
Make sure to point that command to wherever your log file is.
Former Nagios employee
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Re: Nagios upgrade from 3.5.0 to 4.0.8 issue

Post by kalyan1709 »

I found the fix.

The nagvis is blocking my nagios service to start. As Nagvis is not compatible with Nagios Core 4.0.8, I removed Nagvis broker module fron nagios.cfg and my service is UP.

Thanks,
KalyanP
Locked