Post Upgrade Process State won't turn green

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
At0mrail
Posts: 13
Joined: Fri Dec 20, 2013 11:56 am

Post Upgrade Process State won't turn green

Post by At0mrail »

Ran the upgrade successfully. Now we cannot change the process state from red to green. HELP!!!!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Post Upgrade Process State won't turn green

Post by lmiltchev »

Run the following commands and show us the output:

Code: Select all

service nagios status
service ndo2db status
/usr/local/nagios/bin/nagios | head -2
/usr/local/nagios/bin/ndo2db | head -2
Are you using Mod Gearman, Livestatus, etc.?
Be sure to check out our Knowledgebase for helpful articles and solutions!
At0mrail
Posts: 13
Joined: Fri Dec 20, 2013 11:56 am

Re: Post Upgrade Process State won't turn green

Post by At0mrail »

Last login: Fri May 23 14:06:20 2014 from 172.16.1.77
[root@clcsrv117 ~]# service nagios status
nagios is not running
[root@clcsrv117 ~]# service ndo2db status
ndo2db (pid 1462) is running...
[root@clcsrv117 ~]# /usr/local/nagios/bin/nagios | head -2

Nagios Core 4.0.5
[root@clcsrv117 ~]# /usr/local/nagios/bin/ndo2db | head -2

NDO2DB 2.0.0
[root@clcsrv117 ~]#

Ok, found this in the nagios log. This shows up when restarting the monitoring engine. something in there it doesn't like.

[1400872029] ndomod registered for retention data'
[1400872029] ndomod registered for contact data'
[1400872029] ndomod registered for contact notification data'
[1400872029] ndomod registered for acknowledgement data'
[1400872029] ndomod registered for state change data'
[1400872029] ndomod registered for contact status data'
[1400872029] ndomod registered for adaptive contact data'
[1400872029] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1400872029] Error: Module loading failed. Aborting.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Post Upgrade Process State won't turn green

Post by lmiltchev »

You didn't answer my question:
Are you using Mod Gearman, Livestatus, etc.?
Can you post the nagios.cfg file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Post Upgrade Process State won't turn green

Post by abrist »

Run a verification:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Post the output.
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.
At0mrail
Posts: 13
Joined: Fri Dec 20, 2013 11:56 am

Re: Post Upgrade Process State won't turn green

Post by At0mrail »

login as: root
root@clcsrv117's password:
Last login: Fri May 23 14:06:20 2014 from 172.16.1.77
[root@clcsrv117 ~]# service nagios status
nagios is not running
[root@clcsrv117 ~]# service ndo2db status
ndo2db (pid 1462) is running...
[root@clcsrv117 ~]# /usr/local/nagios/bin/nagios | head -2

Nagios Core 4.0.5
[root@clcsrv117 ~]# /usr/local/nagios/bin/ndo2db | head -2

NDO2DB 2.0.0
[root@clcsrv117 ~]# ^C
[root@clcsrv117 ~]# /usr/local/nagios/bin/nagios -v /usr/local/etc/nagios/etc/nagios.cfg

Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/etc/nagios/etc/nagios.cfg' for reading!
Error processing main config file!

[root@clcsrv117 ~]# /usr/local/nagios/bin/nagios -v /usr/local/etc/nagios/etc/nagios.cfg

Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/etc/nagios/etc/nagios.cfg' for reading!
Error processing main config file!

[root@clcsrv117 ~]#

We are thinking that we have to upgrade mod gearmon. Where and how are the next questions...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Post Upgrade Process State won't turn green

Post by scottwilkerson »

Can you confirm the permissions of the following file

Code: Select all

ls -l /usr/local/etc/nagios/etc/nagios.cfg
Also can you verify disk space

Code: Select all

df -h
df -i
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
At0mrail
Posts: 13
Joined: Fri Dec 20, 2013 11:56 am

Re: Post Upgrade Process State won't turn green

Post by At0mrail »

We ended up updating ModGearman. That seems to have solved that issue.


Of course now some of my service checks (server uptime) aren't working.

Good times, good times.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Post Upgrade Process State won't turn green

Post by sreinhardt »

Are those checks that are normally processed by gearman or something else like passive checks? Also just to confirm, verify now completes without any errors?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked