Page 1 of 1

Nagios won't stop when type: service nagios top

Posted: Tue Feb 18, 2014 11:58 am
by misterfigaro
Hi guys,

i've recently upgraded from nagios 3 .2 to 4.0.2, now everything works fine but when i try to restart or stop the process it won't work.

I had to killall nagios and the start with service nagios start.

I checked the lock file path in nagios.cfg and seems correct, it's in /var/nagios/nagios.pid and the user nagios has right to access that folder.

What can be the problem?

many thanks

Re: Nagios won't stop when type: service nagios top

Posted: Tue Feb 18, 2014 2:11 pm
by slansing
What distro are you running on?

Re: Nagios won't stop when type: service nagios top

Posted: Wed Feb 19, 2014 11:05 am
by misterfigaro
Hi,

i'm using Centos 5.9, obviously before the upgrade everything was fine.

Re: Nagios won't stop when type: service nagios top

Posted: Wed Feb 19, 2014 11:55 am
by abrist
Do you receive any errors when stopping or starting the nagios service? If so, could you post them?

Re: Nagios won't stop when type: service nagios top

Posted: Thu Feb 20, 2014 4:21 am
by misterfigaro
Basically when i try to restart the service i get:

Stopping nagios: [FAILED]
Starting nagios: [ OK ]

the nagios.log file appear like this:

[1392887986] Warning: use_embedded_perl_implicitly is deprecated and will be removed.
[1392887986] Warning: enable_embedded_perl is deprecated and will be removed.
[1392887986] Warning: p1_file is deprecated and will be removed.
[1392887986] Warning: sleep_time is deprecated and will be removed.
[1392887986] Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
[1392887986] Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
[1392887986] Lockfile '/var/nagios/nagios.pid' looks like its already held by another instance of Nagios (PID 9557). Bailing out...

the nagios.log file is:

-rwxrwxrwx 1 nagios nagios 5 Feb 18 17:26 nagios.pid

any idea???

thx

Re: Nagios won't stop when type: service nagios top

Posted: Thu Feb 20, 2014 10:46 am
by abrist
You may have multiple nagios parent processes. Lets try to restart nagios cleanly:

Code: Select all

service nagios stop
killall nagios
kill -9 9557
service nagios status
ps -aef | grep nagios.cfg
service nagios start