Re: Apply Configuration does not work after 2.6 upgrade
Posted: Sun Mar 29, 2015 7:15 pm
Done. Txabrist wrote:Can you open a ticket by emailing [email protected]? I would like to move this to a remote session.
Support for Nagios products and services
https://support.nagios.com/forum/
Done. Txabrist wrote:Can you open a ticket by emailing [email protected]? I would like to move this to a remote session.
Code: Select all
sudo /etc/init.d/$service $actionIt seems to be working fine now. Apply configuration works fine without requiring manual service start.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.
Unfortunately, Apply Configuration started acting up again.cmerchant wrote:I will keep this thread open. Keep us updated.
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.