[omd-commits] OMD Git: omd: Added python module pysphere to make ESX monitoring easier

git version control git at mathias-kettner.de
Fri Apr 5 11:52:08 CEST 2013


Module:   omd
Branch:   master
Commit:   9f2733a855fbd3bebafe708a31a32620164fa5cc
URL:      http://omdistro.org/projects/omd/repository/revisions/9f2733a855fbd3bebafe708a31a32620164fa5cc

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Fri Apr  5 11:51:10 2013 +0200
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Fri Apr  5 11:51:13 2013 +0200

Added python module pysphere to make ESX monitoring easier

---

 Changelog                                      |    1 +
 Makefile                                       |    1 +
 packages/python-modules/Makefile               |   31 ++++++++++++++++++++++++
 packages/python-modules/src/pysphere-0.1.7.zip |  Bin 0 -> 516848 bytes
 4 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index 05323e5..4ce4ab9 100644
--- a/Changelog
+++ b/Changelog
@@ -26,6 +26,7 @@ This file documents the revision history for the Open Monitoring Distribution
           - rrdtool: compile and install Python binding
           - nagios: Changed init script to kill still running processes during 
 	            "stop" call after 60 seconds waiting
+          - Added python module pysphere to make ESX monitoring easier
 
 0.56     Sep 25 2012
           - omd:
diff --git a/Makefile b/Makefile
index 7d73346..56b6bec 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ SHELL = /bin/bash
 # You can select a subset of the packages by overriding this
 # variale, e.g. make PACKAGES='nagios rrdtool' pack
 PACKAGES=perl-modules \
+	 python-modules \
          apache-omd \
          mod_python \
          check_logfiles \
diff --git a/packages/python-modules/Makefile b/packages/python-modules/Makefile
new file mode 100644
index 0000000..2952e17
--- /dev/null
+++ b/packages/python-modules/Makefile
@@ -0,0 +1,31 @@
+include ../../Makefile.omd
+
+NAME     = python-modules
+VERSION  = $(OMD_VERSION)
+DISTRO   = $(shell ../../distro)
+
+MODULES = pysphere-0.1.7.zip
+
+build:
+	mkdir -p dest
+	cd dest && \
+	    for M in $(MODULES); do \
+		unzip -o ../src/$$M ; \
+		cd $M ; \
+	    done
+
+install:
+	mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/python
+	pwd
+	cd dest && \
+	    export PYTHONPATH=$$PYTHONPATH:$(DESTDIR)$(OMD_ROOT)/lib/python ; \
+	    for M in $(shell ls dest); do \
+		cd $$M ; \
+		python setup.py install --home=$(DESTDIR)$(OMD_ROOT) ; \
+		cd .. ; \
+	    done
+
+skel:
+
+clean:
+	rm -rf dest
diff --git a/packages/python-modules/src/pysphere-0.1.7.zip b/packages/python-modules/src/pysphere-0.1.7.zip
new file mode 100644
index 0000000..576fbc2
Binary files /dev/null and b/packages/python-modules/src/pysphere-0.1.7.zip differ



More information about the omd-commits mailing list