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
Nagios won't stop when type: service nagios top
-
misterfigaro
- Posts: 5
- Joined: Wed Aug 07, 2013 3:18 am
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios won't stop when type: service nagios top
What distro are you running on?
-
misterfigaro
- Posts: 5
- Joined: Wed Aug 07, 2013 3:18 am
Re: Nagios won't stop when type: service nagios top
Hi,
i'm using Centos 5.9, obviously before the upgrade everything was fine.
i'm using Centos 5.9, obviously before the upgrade everything was fine.
Re: Nagios won't stop when type: service nagios top
Do you receive any errors when stopping or starting the nagios service? If so, could you post them?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
misterfigaro
- Posts: 5
- Joined: Wed Aug 07, 2013 3:18 am
Re: Nagios won't stop when type: service nagios top
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
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
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.