Hi Jochen!

Thank you very much, it helps me a lot!

Also, can you show me how is your Apache conf? The <Location> part specifically 
if it is possible.

Thank you.
NĂ­colas

________________________________
De: Jochen Kellner <joc...@jochen.org>
Enviado: segunda-feira, 29 de agosto de 2022 18:46
Para: Nicolas Sonoda via Ganglia-general <ganglia-general@lists.sourceforge.net>
Cc: Nicolas Sonoda <nicolas.son...@versatushpc.com.br>
Assunto: Re: [Ganglia-general] Ganglia user login

Nicolas Sonoda via Ganglia-general
<ganglia-general@lists.sourceforge.net> writes:

> Can I create more than one user login on Ganglia? And select which nodes that 
> user will see?

In functions.php we have checkAccess():

 968 /**
 969  * Check if current user has a privilege (view, edit, etc) on a resource.
 970  * If resource is unspecified, we assume GangliaAcl::ALL.
 971  *
 972  * Examples
 973  *   checkAccess( GangliaAcl::ALL_CLUSTERS, GangliaAcl::EDIT, $conf ); // 
user has global edit?
 974  *   checkAccess( GangliaAcl::ALL_CLUSTERS, GangliaAcl::VIEW, $conf ); // 
user has global view?
 975  *   checkAccess( $cluster, GangliaAcl::EDIT, $conf ); // user can edit 
current cluster?
 976  *   checkAccess( 'cluster1', GangliaAcl::EDIT, $conf ); // user has edit 
privilege on cluster1?
 977  *   checkAccess( 'cluster1', GangliaAcl::VIEW, $conf ); // user has view 
privilege on cluster1?
 978  */
 979 function checkAccess($resource, $privilege, $conf) {

On my system I have (with apache auth - but currently inactive):

$acl = GangliaAcl::getInstance();

//$acl->addPrivateCluster( 'unspecified' );
$acl->addRole( 'admin', GangliaAcl::ADMIN );

$acl->addRole( 'guest', GangliaAcl::GUEST );

An older thread was
https://www.mail-archive.com/ganglia-general@lists.sourceforge.net/msg09109.html

Some docu:
https://github.com/ganglia/ganglia-web/wiki/Authorization-System
https://www.oreilly.com/library/view/monitoring-with-ganglia/9781449330637/ch04.html

Does that help?

Jochen
--
This space is intentionally left blank.
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to