Then I make restart command and see:
Code: Select all
[root@bnbnagios ~]# /etc/init.d/nagios restart
Stopping nagios: [FAILED]
Starting nagios: [ OK ]
Code: Select all
[root@bnbnagios ~]# /etc/init.d/nagios restart
Stopping nagios: [FAILED]
Starting nagios: [ OK ]
Do you meanwhitest wrote:execute testconfig and reload commands
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios reload
Code: Select all
/etc/init.d/nagios restart
Code: Select all
restart)
if test "$checkconfig" = "true"; then
printf "Running configuration check...\n"
check_config
fi
$0 stop
$0 start
;;
reload|force-reload)
if test "$checkconfig" = "true"; then
printf "Running configuration check...\n"
check_config
fi
if test ! -f $NagiosRunFile; then
$0 start
else
pid_nagios
if status_nagios > /dev/null; then
printf "Reloading nagios configuration...\n"
killproc_nagios HUP
echo "done"
else
$0 stop
$0 start
fi
fi
;;
Code: Select all
[root@nagios ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[root@nagios ~]# /etc/init.d/nagios reload
nagios (pid 20747 20745 20743 20742 20741 20740 20739 20738) is running...
Reloading nagios: [ OK ]
[root@nagios ~]#
Code: Select all
[root@nagios ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.1.2-beta
Copyright (c) 2009-present Nagios Core Development Team and Community Contributo rs
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-25-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 881 services.
Checked 200 hosts.
Checked 49 host groups.
Checked 16 service groups.
Checked 33 contacts.
Checked 8 contact groups.
Checked 140 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 200 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 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
[root@nagios ~]#
[root@nagios ~]#
[root@nagios ~]# /etc/init.d/nagios reload
nagios (pid 24491 24489 24488 24487 24486 24485 24484 24483) is running...
Reloading nagios: [ OK ]
[root@nagios ~]#
[root@nagios ~]#
[root@nagios ~]# /etc/init.d/nagios status
nagios dead but subsys locked
[root@nagios ~]#
[root@nagios ~]#
[root@nagios ~]# /etc/init.d/nagios restart
Stopping nagios: [FAILED]
Starting nagios: [ OK ]
[root@nagios ~]#
Code: Select all
[1443018162] Nagios 4.1.2-beta starting... (PID=29865)
[1443018162] Local time is Wed Sep 23 17:22:42 FET 2015
[1443018162] LOG VERSION: 2.0
[1443018162] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1443018162] qh: core query handler registered
[1443018162] nerd: Channel hostchecks registered successfully
[1443018162] nerd: Channel servicechecks registered successfully
[1443018162] nerd: Channel opathchecks registered successfully
[1443018162] nerd: Fully initialized and ready to rock!
[1443018162] wproc: Successfully registered manager as @wproc with query handler
[1443018162] wproc: Registry request: name=Core Worker 29866;pid=29866
[1443018162] wproc: Registry request: name=Core Worker 29868;pid=29868
[1443018162] wproc: Registry request: name=Core Worker 29867;pid=29867
[1443018162] wproc: Registry request: name=Core Worker 29869;pid=29869
[1443018162] wproc: Registry request: name=Core Worker 29870;pid=29870
[1443018162] wproc: Registry request: name=Core Worker 29871;pid=29871
[1443018162] Successfully launched command file worker with pid 29874