remysaissy / ansible-ganglia Goto Github PK
View Code? Open in Web Editor NEWInstalls and configure the Ganglia monitoring system.
License: MIT License
Installs and configure the Ganglia monitoring system.
License: MIT License
After the installation of httpd/apache2 and the ganglia conf template, there is a permission denied when accessing to the /ganglia URL even though permissions on the /usr/share/ganglia path are rx for others.
[Wed Oct 07 06:48:38.751497 2015] [authz_core:error] [pid 5610] [client 88.165.13.185:51051] AH01630: client denied by server configuration: /usr/share/ganglia
I am new to Ansible. I am trying to get the gmond.conf to apply.
I modified the defaults/main.yml ds1 cluster just to see if that would work.
Then I tried to call out the variable directly using the following syntax
ganglia_config_gmond: 'ds1' but that is apparently the wrong syntax. Could you give an example in your readme?
Thank you for making this role!
Some comments in the defaults/main.yml
file are prone to being misunderstood. In particular, this one in the map for ganglia_config_gmetad
:
# Optional parameters. Values below are gmeta's default values.
That makes it sound like you don't need to copy those map entries into your group variables files. But in fact you do need to do so, or you get errors like this one:
TASK: [ganglia | Ensure the gmetad user exists] *******************************
fatal: [xxx.xxx.xxx.xxx] => One or more undefined variables: 'dict object' has no attribute 'setuid_username'
Amazon Linux is a Redhat variant, so I thought the role would work with that, but I get a failure like this:
TASK: [ganglia | Add the EPEL {{ ansible_distribution_version|int }} repository] ***
changed: [xxx.xxx.xxx.xxx]
TASK: [ganglia | Install Ganglia Monitor] *************************************
failed: [xxx.xxx.xxx.xxx] => (item=ganglia-gmond,ganglia-gmond-python) => {"failed": true, "item": "ganglia-gmond,ganglia-gmond-python"}
msg: Error from repoquery: ['/usr/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '-q', '--disablerepo', '', '--enablerepo', '', '--qf', '%{name}-%{version}-%{release}.%{arch}', 'ganglia-gmond']: Cannot find a valid baseurl for repo: epel/x86_64
Could not match packages: Cannot find a valid baseurl for repo: epel/x86_64
I suspect that this literal {{ ansible_distribution_version|int }}
template value appearing in the first task name is probably the cause for this. The value of ansible_distribution_version
on these machines is "2015.03"
.
Using handlers dynamically loaded depending on the ansible_os_family.
Somehow the web front end is picking up its configurations from the following file in Amazon Linux:
/usr/share/ganglia/conf.php
This file has no settings in it, so the effect is that there is no default view shown in the UI (none of the summary graphs appear at the top of the pages). Editing that file and restarting httpd gets around the issues.
Note that there is a good default configuration file at this location, but it's not being read:
/etc/ganglia/conf.php
So the fix would be to modify the role so that the configuration is loaded from there. I haven't yet figured out how to do it, but hopefully I will.
The README.md
mentions a LICENSE
file that does not exist in the repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.