Page 5 of 5

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Sun Mar 29, 2015 7:15 pm
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

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Sun Mar 29, 2015 10:09 pm
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.

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Mon Mar 30, 2015 12:58 am
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.

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Mon Mar 30, 2015 8:32 am
by cmerchant
I will keep this thread open. Keep us updated.

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Mon Mar 30, 2015 9:23 pm
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.

Re: Apply Configuration does not work after 2.6 upgrade

Posted: Tue Mar 31, 2015 5:03 pm
by lmiltchev
This issue has been handled in our email ticketing system. We will continue communicating via emails. I am locking this topic.