Apply Configuration does not work after 2.6 upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

I fixed the \n problem by upgrading to the latest gearman as described in Integrating_Mod_Gearman_with_Nagios_XI.pdf.

check_gearman: version 1.5.0b1 running on libgearman 1.1.8

Guess what, suddenly the Apply Configuration started to work fine again.
Will confirm again tomorrow if it still works.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by lmiltchev »

I'm glad your issue has been resolved! Let us know if it is safe to lock this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

lmiltchev wrote:I'm glad your issue has been resolved! Let us know if it is safe to lock this topic.
Can you please advice how to have the services start up in correct sequence on reboot?
Looks like gearman is not starting up since I just uninstalled and installed a new version.
This is easily fixed but I want to ensure it follows the correct sequence.

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

Bad news. Apply Configuration does not work anymore.
It seems Nagios starts for a moment and dies.

I was checking using service nagios status when Apply Configuration.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by abrist »

Did you update gearman on your workers as well?
Do you have multiple nagios parent processes running?

Code: Select all

ps -aef | grep nagios.cfg
Also, Are the old gearman processes still running?

Code: Select all

ps -aef | grep gearman
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.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

abrist wrote:Did you update gearman on your workers as well?
Do you have multiple nagios parent processes running?

Code: Select all

ps -aef | grep nagios.cfg
Also, Are the old gearman processes still running?

Code: Select all

ps -aef | grep gearman

Currently we have only 1 worker in the same machine.

Code: Select all

[nagios@nagiosprodxi1 ~]$ ps -aef | grep nagios.cfg
nagios    2205     1 10 Mar18 ?        01:19:14 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    4645  1696  0 07:07 pts/0    00:00:00 grep nagios.cfg
nagios    7250  2205  0 Mar18 ?        00:00:20 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Code: Select all

[nagios@nagiosprodxi1 ~]$ ps -aef | grep gearman
nagios     682  1512  0 05:56 ?        00:00:13 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1131  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1132  1512  0 06:55 ?        00:00:02 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1133  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1134  1512  0 06:55 ?        00:00:02 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
gearmand  1295     1 19 Mar18 ?        02:31:47 /usr/sbin/gearmand -d
nagios    1317  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1318  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1319  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1320  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1321  1512  0 06:55 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1448  1512  0 06:17 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1451  1512  0 06:17 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1512     1  0 Mar18 ?        00:00:17 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1623  1512  0 06:17 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    1626  1512  0 06:17 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    2197  1512  0 05:59 ?        00:00:12 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    2198  1512  0 05:59 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    3577  1512  0 05:02 ?        00:00:24 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    4135  1512  1 07:01 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    4702 26338 44 07:02 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    4970  1512  0 05:40 ?        00:00:16 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6062  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6064  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6065  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6066  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6310  1512  0 04:38 ?        00:00:25 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6456  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6457  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6458  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6459  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6460  1512  0 07:00 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6901  1512  0 06:03 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    6906  1512  0 06:03 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    8676  1512  0 06:26 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    8686  1696  0 07:02 pts/0    00:00:00 grep gearman
nagios    8853  1512  0 06:29 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    8855  1512  0 06:29 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    9171  1512  0 06:59 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios    9416  1512  0 05:21 ?        00:00:19 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   10720  1512  0 04:52 ?        00:00:26 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   11772  1512  0 05:25 ?        00:00:19 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   11973  1512  0 06:47 ?        00:00:03 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   11974  1512  0 06:47 ?        00:00:03 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   11975  1512  0 06:47 ?        00:00:02 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   11976  1512  0 06:47 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   12188  1512  0 06:31 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   12763  1512  0 06:28 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   12764  1512  0 06:28 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   12765  1512  0 06:28 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   16542  1512  0 05:41 ?        00:00:14 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   17514  1512  0 06:54 ?        00:00:01 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   18354  1512  0 04:25 ?        00:00:30 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   19036  1512  0 06:39 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   19039  1512  0 06:39 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   19040  1512  0 06:39 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   19569  1512  0 04:05 ?        00:00:31 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   20023  1512  0 06:00 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   20092  1512  0 07:01 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   21069  1512  0 06:19 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   21070  1512  0 06:19 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   22343  1512  0 05:28 ?        00:00:17 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   22585  1512  0 06:04 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   23941  1512  0 06:31 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   23946  1512  0 06:31 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   24021  1512  0 05:22 ?        00:00:18 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   24195  1512  0 05:54 ?        00:00:12 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   24197  1512  0 05:54 ?        00:00:11 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   25945  1512  0 06:34 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26241  1512  0 04:05 ?        00:00:30 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26338  1512  0 06:14 ?        00:00:09 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26342  1512  0 06:14 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26343  1512  0 06:14 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26652  1512  0 06:14 ?        00:00:09 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26653  1512  0 06:14 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26656  1512  0 06:14 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   26907  1512  0 05:50 ?        00:00:12 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   27997  1512  0 06:43 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   27999  1512  0 06:43 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28000  1512  0 06:43 ?        00:00:03 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28001  1512  0 06:43 ?        00:00:04 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28714  1512  0 06:34 ?        00:00:06 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28715  1512  0 06:34 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28716  1512  0 06:34 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   28848  1512  0 05:08 ?        00:00:21 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   29000  1512  0 06:13 ?        00:00:08 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   29003  1512  0 06:13 ?        00:00:09 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   29274  1512  0 05:25 ?        00:00:17 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   29277  1512  0 05:25 ?        00:00:17 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   30434  1512  0 05:32 ?        00:00:18 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   30576  1512  0 06:49 ?        00:00:02 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   32524  6310 16 07:02 ?        00:00:00 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pid
nagios   32761  1512  0 06:36 ?        00:00:05 /usr/bin/mod_gearman_worker -d --config=/etc/mod_gearman/mod_gearman_worker.conf --pidfile=/var/mod_gearman/mod_gearman_worker.pidps -e
How to tell if the old version is running?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Apply Configuration does not work after 2.6 upgrade

Post by Box293 »

Code: Select all

gearmand -V
/usr/bin/mod_gearman_worker -V
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

Box293 wrote:

Code: Select all

gearmand -V
/usr/bin/mod_gearman_worker -V

Code: Select all

[nagios@nagiosprodxi1 ~]$ gearmand -V

gearmand 1.1.8 - https://bugs.launchpad.net/gearmand
[nagios@nagiosprodxi1 ~]$ /usr/bin/mod_gearman_worker -V
mod_gearman_worker: version 1.5.0b1 running on libgearman 1.1.8

[nagios@nagiosprodxi1 ~]$
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Apply Configuration does not work after 2.6 upgrade

Post by tgriep »

Are you still having problems Applying Configurations?
If so, login as root and run the following and post the results here.

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

tgriep wrote:Are you still having problems Applying Configurations?
If so, login as root and run the following and post the results here.

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Yes, still having issues. Sometimes it works fine which baffles me.
CPU, Memory everything checks out ok.

Running the script under root no errors.
Nagios starts up and then dies

Starting up nagios using root - service nagios start
Nagios does not start up

Starting up nagios using nagios id - service nagios start
Nagios starts up

Output is listed below.

Code: Select all

[root@nagiosprodxi1 ~]# cd /usr/local/nagiosxi/scripts
[root@nagiosprodxi1 scripts]# ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-20 07:00:59--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ

    [ <=>                                                            ] 10,320      --.-K/s   in 0.006s

2015-03-20 07:01:00 (1.69 MB/s) - ânagiosql.loginâ

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=nagiosqldb' -O nagiosql.login--2015-03-20 07:01:02--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ

    [ <=>                                                            ] 10,320      --.-K/s   in 0.01s

2015-03-20 07:01:02 (1.01 MB/s) - ânagiosql.loginâ

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-03-20 07:01:02--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.export.monitoringâ

    [          <=>                                                   ] 13,172      4.79K/s   in 8.0s

2015-03-20 07:01:11 (1.60 KB/s) - ânagiosql.export.monitoringâ

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
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...
   Read main config file okay...
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_UAT_SIT_DR' (config file '/usr/local/nagios/etc/services/TRACSPROD-AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 16)
Warning: Duplicate definition found for service 'AS400 Disk Usage System Alt' on host 'Cambodia_S06FF69' (config file '/usr/local/nagios/etc/services/AS400-ALT-Disk-Usage_XSSL.cfg', starting on line 14)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 13911 services.
        Checked 1763 hosts.
        Checked 208 host groups.
        Checked 11 service groups.
        Checked 155 contacts.
        Checked 46 contact groups.
        Checked 175 commands.
        Checked 67 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 1763 hosts
        Checked 690 service dependencies
        Checked 0 host dependencies
        Checked 67 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
RET: 0
Running configuration check...done.
Stopping nagios: ..done.
Starting nagios: done.
[root@nagiosprodxi1 scripts]# service nagios status
nagios (pid 19686) is running...

[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running
You have new mail in /var/spool/mail/root

[root@nagiosprodxi1 scripts]# service nagios start
Starting nagios: done.
You have new mail in /var/spool/mail/root

[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running
You have new mail in /var/spool/mail/root

[root@nagiosprodxi1 scripts]# su - nagios service nagios start
Starting nagios: done.

[root@nagiosprodxi1 scripts]# service nagios status
nagios (pid 15363) is running...
[root@nagiosprodxi1 scripts]#
Here is the nagios.log with SERVICE ALERT and SERVICE NOTIFICATION removed.
nagios.log.test.gz
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked