Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ganglia GPU Monitoring Enhancements #243

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
68b0fff
Source1 not needed. apache.conf already in current directory.
olahaye74 Feb 28, 2014
c20d878
[build & packaging] Reworked the install and packaging so it results …
olahaye74 Feb 28, 2014
b0140cf
Merge remote-tracking branch 'upstream/master'
olahaye74 Mar 4, 2014
3e6bbc0
Fix --with values unwanted dashes conversion to underscores.
olahaye74 Mar 5, 2014
5766642
fix a stupid copy-past error from me.
olahaye74 Mar 5, 2014
c01651b
No need to fold since gmetad returns upper-case
Jun 3, 2014
15ec29c
Lock the cache file while writing to prevent partial reads
Jun 3, 2014
7fff792
Merge remote-tracking branch 'upstream/master'
olahaye74 Jul 22, 2014
316e2e1
[Makefile + rpm spec file] Make Makefile more smart and more verbose,…
olahaye74 Jul 22, 2014
cb74646
* graph.php changes to support no of GPU generalization.
Jul 29, 2014
08beb2b
Added the capability to control the timezone used to display rrd metr…
Aug 22, 2014
65a6674
Merge pull request #231 from olahaye74/master
vvuksan Aug 23, 2014
dd378f0
Use moment for date/time manipulation in Javascript
Aug 25, 2014
118a94b
Add a timezone-picker to the time manipulation toolbar.
Aug 25, 2014
a521cbb
Fixed issue in overlay event logic. Expanded rrd variable regular exp…
Aug 25, 2014
8b9512b
Encode summary and host_regex parameters when adding events
Aug 26, 2014
cd84ec3
Upgraded to jQueryUI 1.11.1
Aug 28, 2014
629dcf6
Upgraded to jQueryUI 1.11.1
Aug 28, 2014
06e2982
Upgraded to jQuery/UI 1.11.1
Aug 28, 2014
0cef828
Upgraded to jQuery/UI 1.11.1
Aug 28, 2014
8c58e71
Merge remote branch 'upstream/master'
Aug 28, 2014
a3fd5b2
Upgrade to version 1.4.13 of the jquery.scrollTo plugin
Sep 7, 2014
e60a91f
When selecting a custom date-time range using the date-time picker on…
Sep 9, 2014
91a9f3c
Merge pull request #245 from pcpiela/master
vvuksan Sep 9, 2014
1bbffef
Merge pull request #246 from cddude229/lock-cache-file
vvuksan Sep 9, 2014
88cdaa9
Merge pull request #247 from cddude229/xml-folding
vvuksan Sep 9, 2014
3d8294e
* Alternate implementation for device generalization: https://docs.go…
ranacseruet Sep 13, 2014
13cae47
Merge pull request #1 from ganglia/master
Oct 2, 2014
f51f0ac
Don't global unused variables.
Jun 3, 2014
c206ceb
Get rid of global debug call to save time in production.
Jun 3, 2014
52a02b3
Micro-optimize globals inside the XML parsing functions
Jun 3, 2014
c989e6d
Merge pull request #252 from cddude229/microoptimize-xml-2
vvuksan Oct 2, 2014
c7ece58
conflict resolve with master branch
ranacseruet Oct 4, 2014
1e84f5d
Merge remote-tracking branch 'upstream/master'
ranacseruet Nov 30, 2014
a5014cc
* show error if mapping directory doesn't exist.
ranacseruet Nov 30, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 114 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,66 +13,148 @@ GWEB_STATEDIR = /var/lib/ganglia-web
# Gmetad rootdir (parent location of rrd folder)
GMETAD_ROOTDIR = /var/lib/ganglia

APACHE_USER = www-data
#APACHE_USER = www-data
#APACHE_GROUP = www-data
##########################################################

ifndef APACHE_USER
$(info APACHE_USER is not set using www-data)
APACHE_USER = www-data
endif

ifndef APACHE_GROUP
$(info APACHE_GROUP is not set, using $(APACHE_USER))
APACHE_GROUP = $(APACHE_USER)
endif

# Gweb version
GWEB_VERSION = 3.7.0

DIST_NAME = ganglia-web
DIST_DIR = $(DIST_NAME)-$(GWEB_VERSION)
DIST_TARBALL = $(DIST_DIR).tar.gz

TARGETS = conf_default.php ganglia-web.spec version.php apache.conf
# TARGETS: Files that needs to be patched with user chosen variables
TARGETS = conf_default.php conf_redirect.php apache.conf

# DIST_GZIP_TARGETS targets that needs to be patched once before dist-gzip
# basicaly version and default values.
DIST_GZIP_TARGETS = ganglia-web.spec version.php

all: default

default: $(TARGETS)

clean:
rm -rf $(TARGETS) $(DIST_DIR) $(DIST_TARBALL) rpmbuild
@echo -n "Cleaning build files ............................... "
@rm -rf $(TARGETS) $(DIST_DIR) $(DIST_TARBALL) rpmbuild
@echo "DONE."

conf_default.php: conf_default.php.in
sed -e "s|@vargmetadir@|$(GMETAD_ROOTDIR)|" -e "s|@vargwebstatedir@|$(GWEB_STATEDIR)|g" conf_default.php.in > conf_default.php
@echo -n "Generating conf_default.php ........................ "
@sed -e "s|@vargmetadir@|$(GMETAD_ROOTDIR)|" -e "s|@vargwebdir@|$(GWEB_STATEDIR)|g" conf_default.php.in > conf_default.php
@echo "DONE."

conf_redirect.php: conf_redirect.php.in
@echo -n "Generating conf_redirect.php ....................... "
@sed -e "s|@etcdir@|$(GCONFDIR)|" conf_redirect.php.in > conf_redirect.php
@echo "DONE."

ganglia-web.spec: ganglia-web.spec.in
sed -e s/@GWEB_VERSION@/$(GWEB_VERSION)/ -e "s|@vargwebdir@|$(GWEB_STATEDIR)|" -e "s|@varapacheuser@|$(APACHE_USER)|g" -e "s|@etcdir@|$(GCONFDIR)|g" ganglia-web.spec.in > ganglia-web.spec
@echo -n "Generating ganglia-web.spec ........................ "
@sed -e s/@GWEB_VERSION@/$(GWEB_VERSION)/ -e "s|@vargwebdir@|$(GWEB_STATEDIR)|" -e "s|@GDESTDIR@|$(GDESTDIR)|g" -e "s|@etcdir@|$(GCONFDIR)|g" ganglia-web.spec.in > ganglia-web.spec
@echo "DONE."

version.php: version.php.in
sed -e s/@GWEB_VERSION@/$(GWEB_VERSION)/ version.php.in > version.php
@echo -n "Generating version.php ............................. "
@sed -e s/@GWEB_VERSION@/$(GWEB_VERSION)/ version.php.in > version.php
@echo "DONE."

apache.conf: apache.conf.in
sed -e "s|@GDESTDIR@|$(GDESTDIR)|g" apache.conf.in > apache.conf
@echo -n "Generating apache.conf ............................. "
@sed -e "s|@GDESTDIR@|$(GDESTDIR)|g" apache.conf.in > apache.conf
@echo "DONE."

dist-dir: default
rsync --exclude "rpmbuild" --exclude "*.gz" --exclude "Makefile" --exclude "*debian*" --exclude "$(DIST_DIR)" --exclude ".git*" --exclude "*.in" --exclude "*~" --exclude "#*#" --exclude "ganglia-web.spec" --exclude "apache.conf" -a . $(DIST_DIR)

install: dist-dir
mkdir -p $(DESTDIR)/$(GWEB_STATEDIR)/dwoo/compiled && \
mkdir -p $(DESTDIR)/$(GWEB_STATEDIR)/dwoo/cache && \
mkdir -p $(DESTDIR)/$(GWEB_STATEDIR) && \
rsync -a $(DIST_DIR)/conf $(DESTDIR)/$(GWEB_STATEDIR) && \
mkdir -p $(DESTDIR)/$(GDESTDIR) && \
rsync --exclude "conf" -a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR) && \
chown -R $(APACHE_USER):$(APACHE_USER) $(DESTDIR)/$(GWEB_STATEDIR)

dist-gzip: dist-dir
if [ -f $(DIST_TARBALL) ]; then \
rm -rf $(DIST_TARBALL) ;\
fi ;\
tar -czf $(DIST_TARBALL) $(DIST_DIR)/*
@echo -n "Filling dist dir ................................... "
@rsync --exclude "rpmbuild" \
--exclude "debian/ganglia-webfrontend" \
--exclude "*.gz" \
--exclude "$(DIST_DIR)" \
--exclude ".git*" \
--exclude "version.php.in" \
--exclude "ganglia-web.spec.in" \
--exclude "apache.conf" \
--exclude "conf_default.php" \
--exclude "*~" \
--exclude "#*#" \
-a . $(DIST_DIR)
@echo "DONE."

install: install-files
@echo -n "Setting ownership to the sharedstattedir files ..... "
@chown -R $(APACHE_USER):$(APACHE_GROUP) $(DESTDIR)/$(GWEB_STATEDIR)
@echo "DONE."


install-files: dist-dir
@echo -n "Creating dwoo sharedstattedir tree ................. "
@mkdir -p $(DESTDIR)/$(GWEB_STATEDIR)/dwoo/compiled
@mkdir -p $(DESTDIR)/$(GWEB_STATEDIR)/dwoo/cache
@mkdir -p $(DESTDIR)/$(GWEB_STATEDIR)/filters
@echo "DONE."
@echo -n "Installing ganglia-webfrontend low level conf ...... "
@rsync -a $(DIST_DIR)/conf $(DESTDIR)/$(GWEB_STATEDIR)
@echo "DONE."
@echo -n "Installing php files ............................... "
@mkdir -p $(DESTDIR)/$(GDESTDIR)
@rsync --exclude "conf" \
--exclude conf_redirect.php \
--exclude "*.in" \
--exclude "*.spec" \
-a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR)
@echo "DONE."
@echo -n "Intalling redirect conf.php ........................ "
@# so it can be seen as a config file under debian packages.
@# Do the same for all distro to avoid specific case for debian.
@cp -f conf_redirect.php $(DESTDIR)/$(GDESTDIR)/conf.php
@echo "DONE."
@echo -n "Installing the generated conf_default.php file ..... "
@cp -f conf_default.php $(DESTDIR)/$(GDESTDIR)/conf_default.php
@echo "DONE."
@echo -n "Creating the etc/ganglia-webfrontend directory ..... "
@mkdir -p $(DESTDIR)/$(GCONFDIR)
@echo "DONE."
@echo -n "Installing apache.conf ............................. "
@cp -f apache.conf $(DESTDIR)/$(GCONFDIR)/
@echo "DONE."
@echo -n "Installing the editable copy of conf_default.php ... "
@cp -f conf_default.php $(DESTDIR)/$(GCONFDIR)/conf.php
@echo "DONE."

dist-gzip: dist-dir $(DIST_GZIP_TARGETS)
@echo -n "Creating tarball ................................... "
@if [ -f $(DIST_TARBALL) ]; then \
rm -rf $(DIST_TARBALL) ;\
fi
@cp -pf $(DIST_GZIP_TARGETS) $(DIST_DIR)
@tar -czf $(DIST_TARBALL) $(DIST_DIR)/*
@echo "DONE."

rpm: dist-gzip ganglia-web.spec apache.conf
rm -rf rpmbuild
mkdir rpmbuild
mkdir rpmbuild/SOURCES
mkdir rpmbuild/BUILD
mkdir rpmbuild/RPMS
mkdir rpmbuild/SRPMS
cp $(DIST_TARBALL) rpmbuild/SOURCES
cp apache.conf rpmbuild/SOURCES
rpmbuild --define '_topdir $(PWD)/rpmbuild' --define 'custom_web_prefixdir $(GDESTDIR)' -bb ganglia-web.spec
@echo -n "Creating binary rpm ................................ "
@rm -rf rpmbuild
@mkdir rpmbuild
@mkdir rpmbuild/SOURCES
@mkdir rpmbuild/BUILD
@mkdir rpmbuild/RPMS
@mkdir rpmbuild/SRPMS
@ln -s ../../$(DIST_TARBALL) rpmbuild/SOURCES/$(DIST_TARBALL)
@rpmbuild --define '_topdir $(PWD)/rpmbuild' --define 'web_prefixdir $(GDESTDIR)' -bb ganglia-web.spec
@echo "DONE."

uninstall:
@echo -n "Uninstalling ganglia-web. (conf files untouched) ... "
rm -rf $(DESTDIR)/$(GDESTDIR) $(DESTDIR)/$(GWEB_STATEDIR)
@echo "DONE."

2 changes: 1 addition & 1 deletion conf_default.php.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Gmetad-webfrontend version. Used to check for updates.
#
$conf['gweb_root'] = dirname(__FILE__);
$conf['gweb_confdir'] = "@vargwebstatedir@";
$conf['gweb_confdir'] = "@vargwebdir@";

include_once $conf['gweb_root'] . "/version.php";

Expand Down
5 changes: 5 additions & 0 deletions conf_redirect.php.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
if( file_exists( "@etcdir@/conf.php" ) ) {
include_once "@etcdir@/conf.php";
}
?>
Binary file removed css/smoothness/images/animated-overlay.gif
Binary file not shown.
Binary file modified css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions css/smoothness/jquery-ui-1.10.2.custom.min.css

This file was deleted.

Loading