Upgrade to Nagios 2014 failed
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Upgrade to Nagios 2014 failed
Did you remove the broker_module line at the bottom of your config referencing mod_gearman? Maybe it would be easier to ask for the nagios.cfg again and we can also verify.
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.
Re: Upgrade to Nagios 2014 failed
HI Team,
before I share the nagios.cfg, Please suggest the best way to proceed here. I have restored back to Nagios 2012R2.8c, Do you suggest I comment out the Modgearman broker module line in nagios.cfg file, stop the modgearman and worker services and then proceed with upgrade or run upgrade and then follow the above steps before restarting the nagios service?
before I share the nagios.cfg, Please suggest the best way to proceed here. I have restored back to Nagios 2012R2.8c, Do you suggest I comment out the Modgearman broker module line in nagios.cfg file, stop the modgearman and worker services and then proceed with upgrade or run upgrade and then follow the above steps before restarting the nagios service?
Thanks & Regards,
I2MP Team.
I2MP Team.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Upgrade to Nagios 2014 failed
You can either comment it out and stop the modgearman service, then try to upgrade, or you can completely remove it. Now, not upgrading mod_gearman will not cause your upgrade to fail alone, but once you do upgrade you will need to update your gearman install to one that is compatible with Nagios Core 4 following my post here, page 2:
http://support.nagios.com/forum/viewtop ... n&start=10
http://support.nagios.com/forum/viewtop ... n&start=10
Re: Upgrade to Nagios 2014 failed
Hi,
I'm planning to run this upgrade again today and install the mod-gearman after I get the error message, however, I'm stuck with a question now, what if the upgrade still fails? will a restore change the mod-gearman files as well (I mean would it revert the version of mod-gearman as well)?
Also, Please suggest how I uninstall Mod-Gearman from my System
I'm planning to run this upgrade again today and install the mod-gearman after I get the error message, however, I'm stuck with a question now, what if the upgrade still fails? will a restore change the mod-gearman files as well (I mean would it revert the version of mod-gearman as well)?
Also, Please suggest how I uninstall Mod-Gearman from my System
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Upgrade to Nagios 2014 failed
well, an XI restore would not entirely revert mod_gearman. Your best bet would be to do what Sam suggested:RIDS_I2MP wrote:what if the upgrade still fails? will a restore change the mod-gearman files as well (I mean would it revert the version of mod-gearman as well)?
stop the gearmand and mod_gearman_worker processes:
Code: Select all
service gearmand stop
service mod_gearman_worker stopCode: Select all
#broker_module=.../mod_gearman.o server=localhost:4730 eventhandler=yes services=yes hosts=yeshttp://support.nagios.com/forum/viewtop ... =10#p97980
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.
"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.
Re: Upgrade to Nagios 2014 failed
If you see a config error during an upgrade to XI 2014, where it is NOT shown WHAT the error actually is, the error is most probably associated with service dependencies or service escalations. If you have any service dependencies or escalations defined, you can try just deactivating them in the CCM, and trying to run the upgrade again. I've seen this a few times already...
Regarding Mod Gearman, you can see what packages you have on your system by running:
Then you can remove them by running:
Regarding Mod Gearman, you can see what packages you have on your system by running:
Code: Select all
yum list installed | grep gearmanCode: Select all
yum remove <package1> <package2> ...Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade to Nagios 2014 failed
My Upgrade from Nagios 2012R2.9 to 2014 lates version also fails, with the same error.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg --> 0 warning and 0 errors
NDO2DB 1.5.2
Mod gearman is not installed.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.6'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
after the upgrade NagiosXI2014 fails - monitoring Engine wil not start. Error
Have to roll back VMWare snapshot
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg --> 0 warning and 0 errors
NDO2DB 1.5.2
Mod gearman is not installed.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.6'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
after the upgrade NagiosXI2014 fails - monitoring Engine wil not start. Error
Have to roll back VMWare snapshot
You do not have the required permissions to view the files attached to this post.
Last edited by tribbink on Wed Jun 11, 2014 3:49 pm, edited 1 time in total.
Re: Upgrade to Nagios 2014 failed
Did you try this?If you see a config error during an upgrade to XI 2014, where it is NOT shown WHAT the error actually is, the error is most probably associated with service dependencies or service escalations. If you have any service dependencies or escalations defined, you can try just deactivating them in the CCM, and trying to run the upgrade again. I've seen this a few times already...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade to Nagios 2014 failed
i dont have configured those dependicies
They are empty
They are empty
Re: Upgrade to Nagios 2014 failed
Both are empty?
Can you rerun the upgrade as such:
and post the "debug.txt" file that was generated in the "/tmp/" directory by running the above command?
Code: Select all
cat /usr/local/nagios/etc/serviceescalations.cfg
cat /usr/local/nagios/etc/servicedependencies.cfgCode: Select all
cd /tmp/nagiosxi
./upgrade | tee /tmp/debug.txtBe sure to check out our Knowledgebase for helpful articles and solutions!