Article 5EYGX Ganglia web config in httpd (apache server in slackware current)

Ganglia web config in httpd (apache server in slackware current)

by
iluvatar1
from LinuxQuestions.org on (#5EYGX)
Hi,
I hope you all are doing well.
I have a slackware current install. I am installing ganglia to monitor the server and some internal computers. I have already configured both the server and the clients, and the output of gstat -an in the server shows the server and clients info like
Code:CLUSTER INFORMATION
Name: clustername
Hosts: 26
Gexec Hosts: 0
Dead Hosts: 0
Localtime: Thu Mar 4 12:35:22 2021

CLUSTER HOSTS
Hostname LOAD CPU Gexec
CPUs (Procs/Total) [ 1, 5, 15min] [ User, Nice, System, Idle, Wio]

192.168.10.34
8 ( 0/ 207) [ 0.07, 0.08, 0.09] [ 0.8, 0.0, 0.1, 99.1, 0.0] OFF
...My problem is with ganglia-web. I cannot access it by simply going to http://localhost/ganglia as all tutorials indicate. After trying many old solutions or solutions suited for other distributions, currently my issue seems to be with permissions, since trying to navigate to the aforementioned page shows me the error: You don't have permission to access this resource.
Currently I have added the following to /etc/httpd/httpd.conf

Code:...
# Uncomment the following line to enable PHP:
#
Include /etc/httpd/mod_php.conf

Include /etc/httpd/extra/ganglia.confAnd the ganglia conf file reads
Code:alias /ganglia /var/www/htdocs/ganglia

<Directory "/var/www/htdocs/ganglia">
#Options +FollowSymLinks
AllowOverride All
Require all granted
#Order allow,deny
Allow from all
Deny from none
</Directory>I have played with .htaccess and so on with no success. Can someone give me a clue to make the ganglia web interface work?
Thanks in advance

Edit: This is the error message launched by httpd when I try to access the ganglia web page. I have googled it but none of the suggestions worked and are actually on different distributions or setups
Code:[Thu Mar 04 13:29:01.412368 2021] [autoindex:error] [pid 4777:tid 140403398608640] [client 127.0.0.1:38722] AH01276: Cannot serve directory /var/www/htdocs/ganglia/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directiveFrom this, I added a line in /etc/httpd/extra/ganglia.conf
Code:<IfModule dir_module> DirectoryIndex index.html index.php </IfModule>And now I can access the webpage, although it does not show all nodes, as gstat.

Edit2: After the previous and waiting some time, I can see the server and clients on ganglia web. I leave this here in case someone else needs it.latest?d=yIl2AUoC8zA latest?i=ydkmdp5JZik:WIQZCGeFks4:F7zBnMy latest?i=ydkmdp5JZik:WIQZCGeFks4:V_sGLiP latest?d=qj6IDK7rITs latest?i=ydkmdp5JZik:WIQZCGeFks4:gIN9vFwydkmdp5JZik
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments