PDA

View Full Version : Problem with central centreon and network graphs on satelite nagios


RJF
30th June 2009, 18:50
Hi,


I have problem's with a create of the buffer files on central server ( centreon)

Check mod for temporary file : /var/lib/centreon/centplugin/traffic_if268436480_192.168.20.254 !

the network graphs is from a satellite poller.

Another graphs is ok ( like ping) only network graphs with need files to make buffer, give error's .

I try to create the files in /var/lib/centreon/centplugin manual on central server but don't work.

Any solution ?

the directory have permission 775 and nagios user can create files there


Installation

Central server

Centos 5.2 & centreon 2 & nagios 3.0.6 & NDO

Satellite server

Centos 5.2 & nagios 3.0.6 & NDO

Dounia
2nd July 2009, 11:00
i believe that a chmod 664 not 775 with nagios user
try to lunch you command in a shell not centreon with nagios user
if you have the same error it's a probleme access user

AkHeNaToN
2nd July 2009, 12:17
Your temp file is root:root or all for nagios:nagios ?

RJF
2nd July 2009, 14:33
hi


thanks for your help.

I believe that traffic files for buffering need to be in a master distributed monitoring because the error give the directory " Check mod for temporary file : /var/lib/centreon/centplugins/traffic_if268436224_192.168.20.254" and I don't have Centreon install on satellite server.

I resolve the problem create a directory /var/lib/centreon/centplugins on satellite server it's logical because the data is transfer to master server together the ndoutils.


Now my issue is that a generated conf files to satelite but the file ndomod.cfg is clean and after that the satelite nagios stop connection with Master because ndoutils don't the ip of centralserver

I know that can resolve that changing permission file "ndomod.cfg" on satelite Nagios but i want to understand why Centreon don't put information on the file


regards,

Ricardo Freitas

Portugal

AkHeNaToN
2nd July 2009, 14:55
Do you have one ndomod.cfg file by poller ?

RJF
2nd July 2009, 15:17
yes , I have 3 files , one for central , 2 for the 2 satilete server's

on error.log of apache i have this error's:

[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fopen(/usr/local/nagios/libexec/centreon.conf) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /usr/local/centreon/www/include/configuration/configGenerate/centreon_pm.php on line 51, referer: http://ip/centreon/main.php?p=607
[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fopen(/usr/local/nagios/libexec/centreon.conf) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /usr/local/centreon/www/include/configuration/configGenerate/DB-Func.php on line 672, referer: http://ip/centreon/main.php?p=607
[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/centreon/www/include/configuration/configGenerate/DB-Func.php on line 690, referer: http://ip/centreon/main.php?p=607
[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/centreon/www/include/configuration/configGenerate/DB-Func.php on line 697, referer: http://ip/centreon/main.php?p=607
[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/centreon/www/include/configuration/configGenerate/DB-Func.php on line 697, referer: http://ip/centreon/main.php?p=607
[Thu Jul 02 13:11:46 2009] [error] [client ip] PHP Warning: fwrite(): supplied argument is not a valid st


regards,

Ricardo Freitas

Portugal

mayfield1814
10th December 2009, 18:39
was this ever resolved? I'm having a similar issue. I can update my remote nagios config from the centreon interface on the master, but i none of the hosts monitored by the remote poller show up. Any help is greatly appreciated. Thanks

RJF
10th December 2009, 18:46
yes i resolve the problem

your problem is the NDO config

mayfield1814
11th December 2009, 22:24
thanks for the tip. do you know of any links that will help me troubleshoot my issue? I've looked, but i haven't seen a lot concerning troubleshooting ndo.