Ticket #92 (closed defect: Fixed)

Opened 3 months ago

Last modified 2 months ago

ACL'd users can not view monitoring.

Reported by: quano Owned by: jmathis
Priority: trivial Milestone: Centreon-2.0
Component: CentWeb Version: beta5
Keywords: Cc:

Description

When i create a user only for view all monitoring services, like a new guest whith right to see Home, and Monitoring, this user can not see nothing, no service count on top of the page, and when this user clicks on "all services" (for example) the screen shows everything but the data only displaying "waiting for xml data".

At CentAcl?.log i see this errors:
Warning: include_once(): Failed opening '/www/include/common/common-Func-ACL.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/centreon/cron/centAcl.php on line 25

Warning: include_once(): Failed opening '/www/include/common/common-Func.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/centreon/cron/centAcl.php on line 24

Change History

Changed 3 months ago by jmathis

  • owner set to jmathis
  • status changed from new to assigned

can you edit centACL.php and give me line 20 to 26 ?

Thanks

Changed 3 months ago by quano

Lines 20 to 26 in centACL.php:

include_once("DB.php");
include_once("/etc/centreon/centreon.conf.php");
include_once($centreon_path."/www/DBconnect.php");
include_once($centreon_path."/www/DBNDOConnect.php");
include_once($centreon_path."/www/include/common/common-Func.php");
include_once($centreon_path."/www/include/common/common-Func-ACL.php");

Changed 3 months ago by jmathis

do you have that in centreon.conf.php ?

$centreon_path='/usr/local/centreon/';

thanks

Changed 3 months ago by jmathis

do you move centreon after installing ? change directory ?

Changed 2 months ago by quano

This is my centreon.conf.php

$centreon_path='/usr/local/centreon/';

its just a Fresh install from tarballs installed in /usr/local/centreon/

i got this error when i create the ACL for a contact group:

DB Error : DELETE FROM centreon_acl WHERE group_id = '14' [nativecode=1146 ** Table 'ndonagios.centreon_acl' doesn't exist]<br />DB Error : DELETE FROM centreon_acl WHERE group_id = '15' [nativecode=1146 ** Table 'ndonagios.centreon_acl' doesn't exist]<br />DB Error : INSERT INTO centreon_acl ( host_name , service_description , group_id ) VALUES ('10.230.17.157', 'HTTP', 15) , ('10.230.17.157', 'SSH', 15) , ('10.230.17.157', 'SSH-bygroup', 15) , ('Alteon-G3', 'Telnet', 15) , ('Alteon-G3', 'SSH-bygroup', 15) , ('Alteon-G4', 'ping', 15) , ('Alteon-G4', 'Telnet', 15) , ('Centreon-Prensa', '/', 15) , ('Centreon-Prensa', '/home', 15) , ('Centreon-Prensa', '/opt', 15) , ('Centreon-Prensa', '/usr', 15) , ('Centreon-Prensa', '/var', 15) , ('Centreon-Prensa', 'load', 15) , ('Centreon-Prensa', 'ping', 15) , ('Centreon-Prensa', 'memory', 15) , ('Centreon-Prensa', 'SSH-byhost', 15) , ('Centreon-Prensa', 'HTTP', 15) , ('Centreon-Prensa', 'SSH', 15) , ('Centreon-Prensa', 'SSH-bygroup', 15) , ('Centreon-Server', '/', 15) , ('Centreon-Server', '/home', 15) , ('Centreon-Server', '/opt', 15) , ('Centreon-Server', '/usr', 15) , ('Centreon-Server', '/var', 15) , ('Centreon-Server', 'load', 15) , ('Centreon-Server', 'ping', 15) , ('Centreon-Server', 'memory', 15) , ('Centreon-Server', 'SSH-byhost', 15) , ('Centreon-Server', 'HTTP', 15) , ('Centreon-Server', 'SSH', 15) , ('Centreon-Server', 'SSH-bygroup', 15) , ('SVRFEE004', 'ping', 15) , ('SVRFEE004', 'LDAP', 15) , ('SVRFEE004', 'SSH', 15) , ('SVRFEE004', 'HTTP', 15) , ('SVRFEE004', 'SSH-bygroup', 15) [nativecode=1146 ** Table 'ndonagios.centreon_acl' doesn't exist]<br />

I will try to capture the first error to say better when happens.

Changed 2 months ago by jmathis

Oh ! :)

Table 'ndonagios.centreon_acl' doesn't exist

you have to create centreon_acl on ndo database... you can find this table in directory : www/install/CreateNDODB.sql...

you should follow wiki :)

So it's not a bug.

Changed 2 months ago by jmathis

  • status changed from assigned to closed
  • resolution set to fixed

Changed 2 months ago by quano

  • priority changed from minor to trivial

thanks, sorry for waste your time. I was sure that i readed all doc., i missed read something that says i have to do this. Thanks again.

Note: See TracTickets for help on using tickets.