PDA

View Full Version : Problem with "Move Export Files" to new poll


tiagocruz
27th May 2009, 17:18
Hello Guys,

I'm using Nagios 3.0.5 and Centreon 2.0 under RHEL 5.2.

I'm trying to setup this: http://en.doc.centreon.com/DistributedArchitecture

The old poller is able to access the new poller called "Partner" using ssh (w/ pass), using the user "nagios".

The old poller as been creating the your files in:
generation_files/filesGeneration/nagiosCFG/1/

and the files from the new poller on:
generation_files/filesGeneration/nagiosCFG/2/

But he is not coping this generated files to the "etc" directory from de other server:

Old Poller:

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Centreon : All configuration files copied with success.

Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done

New Poller:

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.

How can I fix this?
Thanks a lot!

tiagocruz
27th May 2009, 18:19
Done, I fix my problem using this post:
http://forum.centreon.com/showthread.php?t=7666

Error log from apache:

sh: /tools/centreon/bin-2.0/var/lib/centcore.cmd: Permission denied
sh: /tools/centreon/bin-2.0/var/lib/centcore.cmd: Permission denied

Now working (g+w from apache):

drwxrwxr-x 7 nagios apache 4.0K May 27 12:10 /tools/centreon/bin-2.0/var/lib/

-rw-r--r-- 1 apache apache 10 May 27 12:10 /tools/centreon/bin-2.0/var/lib/centcore.cmd_read

Error log from apache:
restart : /usr/bin/ssh nagios-partners sudo /etc/init.d/nagios restart