PDA

View Full Version : Weird behaviour reloading/restarting Centreon


pespinar
01-06-2008, 01:43 AM
Hello,

I like Centreon a lot, and it works like a champ in everything, but I am having one single problem. When I perform config changes, and I want to reload or restart nagios in order to changes take effect, I am getting an odd behaviour:

When I try to reload (always from Centreon itnerface):

...
Reloading nagios2 monitoring daemon configuration files: nagios2.


but nagios does not start...

reload again

Reloading nagios2 monitoring daemon configuration files: nagios2Not running.
failed!

nothing happens

restarting ..

Restarting nagios2 monitoring daemon: nagios2.

ok

reload again

Reloading nagios2 monitoring daemon configuration files: nagios2.

but nagios does not start...

restarting:

Restarting nagios2 monitoring daemon: nagios2.

ok


-------------------------------------

if I try ti restart directly then:

Restarting nagios2 monitoring daemon: nagios2already running!
failed!

and nothing happens

try it again:

Restarting nagios2 monitoring daemon: nagios2.

and things looks okay, but voila!: we have several nagios process running and host an services appearing and dissapearing...

So at this stage I have to reboot the server, and the I have all things okay again.

It is not very annoying but I am doing a lot of changes right now, and I would like not having these issues...

Any help will be wellcome...

Using vmware appliance 1.1 (so nice), so Debian 4.0, Nagios 2.6 and Centreon 1.4.1....

Un saludo,

Pablo

DonKiShoot
01-07-2008, 02:39 PM
check the sudo configuration for "restart".
check right on nagios pipe for external command who permit the "reload".
check that your /etc/init.d/nagios script is good and that there is only one.
There are maybe other check to do but the best is to check first in command line and to watch logfiles.

julio
01-07-2008, 02:47 PM
did you test with "external command" ?

pespinar
01-07-2008, 08:45 PM
As far I know, everything is ok with external commands and sudo.

But, when I try to do the same from the command line, I get:

# /etc/init.d/nagios2 reload
Reloading nagios2 monitoring daemon configuration files: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/: is a directory
.

julio
01-08-2008, 12:06 AM
I think you have a little problem with restarting script of nagios....

pespinar
01-08-2008, 12:46 PM
I see I have a problem :-)

Any hint for a solution?

Un saludo,

Pablo