Upgrading from 3.5.1 to 4.0.0

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.
mlong
Posts: 26
Joined: Mon Aug 12, 2013 12:36 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by mlong »

of course now changes i make in nagiosql no longer take effect from the gui. I have to restart nagios from the command line to get them to take effect.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by abrist »

Nagiosql may have issues with the init script or with core 4 in general. The real init script fix may have to wait until they fix the bug on tracker.
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.
mlong
Posts: 26
Joined: Mon Aug 12, 2013 12:36 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by mlong »

abrist wrote:Nagiosql may have issues with the init script or with core 4 in general. The real init script fix may have to wait until they fix the bug on tracker.
Ive had to productionalize the Nagios server over the weekend, so I was forced to revert to 3.5.1.

Ill have to wait for any updates til our next quarterly maintenance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrading from 3.5.1 to 4.0.0

Post by scottwilkerson »

Thanks for updating, talking to the dev's this week, I believe a few incremental releaser are planned to catch some bugs that emerged in 4.0.0
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nigelb
Posts: 2
Joined: Sat Oct 12, 2013 10:04 am

Re: Upgrading from 3.5.1 to 4.0.0

Post by nigelb »

I replaced the /etc/init.d/nagios file with the init script from mlong's post 27th Sept and it now works fine.

I'm running Debian Wheezey 64 bit.
(fresh install, Nagios is the first app I've installed on the box)

Nige
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by abrist »

Great. That script is not perfect, but it is working and will remain as an ugly hack until it gets fixed proper by the core devs.
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.
nigelb
Posts: 2
Joined: Sat Oct 12, 2013 10:04 am

Re: Upgrading from 3.5.1 to 4.0.0

Post by nigelb »

If there is a new release for testing, I'm happy to blitz the box, re-install wheezey and try out a new build if that helps.

Cheers

Nige
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by abrist »

A new init script would not require reinstalling. Unfortunately, I do not think a new debian init script has been officially released as of yet.
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.
alfl
Posts: 3
Joined: Mon Oct 17, 2011 3:04 am

Re: Upgrading from 3.5.1 to 4.0.0

Post by alfl »

I am upgrading from version 3.5.1 to 4.0.1 on my ubuntu 12.04 box but the problem is still there. I changed the init script as mentioned in this and other posts but i still am unable to get the service running.
After changing the init script it appears that nagios is started up, checked the config etc. but an /etc/init.d/nagios status still gives an error saying nagios is not running and the website itself says the same.

Also an manual start of nagios doesn't give any error but also fails to start.

Status message of website:

Whoops!

Error: Could not read host and service status information!

Any news on this ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrading from 3.5.1 to 4.0.0

Post by abrist »

Does it work with systemd?

Code: Select all

service nagios restart
service nagios status
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.
Locked