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 »

abrist wrote:Can you open a ticket by emailing [email protected]? I would like to move this to a remote session.
Done. Tx
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 »

I worked with Raja today on this in a remote session.

We added sudo to one of the commands in the manage_services.sh file. Specifically:

/usr/local/nagiosxi/scripts/manage_services.sh

Code: Select all

sudo /etc/init.d/$service $action

This seemed to fix the problem. He is going to observe and report back to the ticket he logged. I am just updating here as it may be of help to others.
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:I worked with Raja today on this in a remote session.

We added sudo to one of the commands in the manage_services.sh file. Specifically:

/usr/local/nagiosxi/scripts/manage_services.sh

Code: Select all

sudo /etc/init.d/$service $action

This seemed to fix the problem. He is going to observe and report back to the ticket he logged. I am just updating here as it may be of help to others.
It seems to be working fine now. Apply configuration works fine without requiring manual service start.
Will update on Wed if we can close this case.
Thanks to Troy for the assistance.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Apply Configuration does not work after 2.6 upgrade

Post by cmerchant »

I will keep this thread open. Keep us updated.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Apply Configuration does not work after 2.6 upgrade

Post by rajasegar »

cmerchant wrote:I will keep this thread open. Keep us updated.
Unfortunately, Apply Configuration started acting up again.

Sent the logs to support ticket.
Apparently the services is not starting up when run as root.

Code: Select all

[root@nagiosprodxi1 ~]# cd /usr/local/nagiosxi/scripts/
[root@nagiosprodxi1 scripts]# ./reconfigure_nagios.sh | tail -20
--2015-03-31 06:55:09--  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.03s

2015-03-31 06:55:10 (381 KB/s) - ânagiosql.loginâ

--2015-03-31 06:55:11--  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-31 06:55:11 (1008 KB/s) - ânagiosql.loginâ

--2015-03-31 06:55:11--  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 13s

2015-03-31 06:55:24 (1.01 KB/s) - ânagiosql.export.monitoringâ

        Checked 73 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 1785 hosts
        Checked 706 service dependencies
        Checked 0 host dependencies
        Checked 73 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 is not running
[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running
[root@nagiosprodxi1 scripts]# service nagios start
Starting nagios: done.
[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running
[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running
[root@nagiosprodxi1 scripts]# service nagios status
nagios is not running

[root@nagiosprodxi1 scripts]# su - nagios  service nagios start
Starting nagios: done.
[root@nagiosprodxi1 scripts]# service nagios status
nagios (pid 30008) is running...
[root@nagiosprodxi1 scripts]# service nagios status
nagios (pid 30008) is running...
[root@nagiosprodxi1 scripts]# gearman_top -b
2015-03-31 06:56:31  -  localhost:4730  -  v1.1.8

 Queue Name           | Worker Available | Jobs Waiting | Jobs Running
-----------------------------------------------------------------------
 check_results        |               2  |           0  |           0
 eventhandler         |              60  |           0  |           0
 host                 |              60  |           0  |           2
 service              |              60  |           0  |          11
 worker_nagiosprodxi1 |               1  |           0  |           0
-----------------------------------------------------------------------
[root@nagiosprodxi1 scripts]#


Services is not starting up under root.
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 »

This issue has been handled in our email ticketing system. We will continue communicating via emails. I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked