Module: check_mk
Branch: master
Commit: 1bcfb277227d7760a0250178ebcfc85346dc27b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1bcfb277227d77…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jan 30 15:59:02 2011 +0100
Create RPM for oracle agent plugin
---
Makefile | 4 ++--
check_mk.spec | 20 ++++++++++++++++++--
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 7dceaf7..8be004f 100644
--- a/Makefile
+++ b/Makefile
@@ -149,12 +149,12 @@ deb-base:
mv -v deb.bauen/*.deb .
rm -rf deb.bauen
-deb-agent: $(NAME)-agent-$(VERSION)-1.noarch.rpm
$(NAME)-agent-logwatch-$(VERSION)-1.noarch.rpm
+deb-agent: $(NAME)-agent-$(VERSION)-1.noarch.rpm
$(NAME)-agent-logwatch-$(VERSION)-1.noarch.rpm
$(NAME)-agent-oracle-$(VERSION)-1.noarch.rpm
@echo "Sorry. Debian packages currently via alien"
@for pac in $^ ; do \
fakeroot alien --scripts -d $$pac ; \
done
- @for p in agent agent-logwatch ; do \
+ @for p in agent agent-logwatch agent-oracle ; do \
pac="check-mk-$${p}_$(VERSION)-2_all.deb" ; \
echo "Repackaging $$pac" ; \
rm -rf deb-unpack && \
diff --git a/check_mk.spec b/check_mk.spec
index 72ef3de..eea4224 100644
--- a/check_mk.spec
+++ b/check_mk.spec
@@ -78,6 +78,17 @@ specify patters for log messages that should raise a warning or
critical state. For each logfile the current position is remembered.
This way only new messages are being sent.
+%package agent-oracle
+Group: System/Monitoring
+Requires: check_mk-agent
+Summary: ORACLE-Plugin for check_mk agent
+AutoReq: off
+AutoProv: off
+%description agent-logwatch
+The ORACLE plugin for the check_mk agent allows you to monitor
+several aspects of ORACLE databases. You need to adapt the
+script /etc/check_mk/sqlplus.sh to your needs.
+
%package web
Group: System/Monitoring
Requires: python
@@ -110,9 +121,10 @@ install -m 755 $R/usr/share/check_mk/agents/waitmax $R/usr/bin
mkdir -p $R/usr/lib/check_mk_agent/plugins
mkdir -p $R/usr/lib/check_mk_agent/local
-# logwatch extension
-install -m 755 $R/usr/share/check_mk/agents/mk_logwatch
$R/usr/lib/check_mk_agent/plugins
+# logwatch and oracle extension
+install -m 755 $R/usr/share/check_mk/agents/plugins/mk_*
$R/usr/lib/check_mk_agent/plugins
install -m 755 $R/usr/share/check_mk/agents/logwatch.cfg $R/etc/check_mk
+install -m 644 $R/usr/share/check_mk/agents/sqlplus.sh $R/etc/check_mk
%clean
rm -rf $RPM_BUILD_ROOT
@@ -170,6 +182,10 @@ rm -rf $RPM_BUILD_ROOT
/usr/lib/check_mk_agent/plugins/mk_logwatch
%config(noreplace) /etc/check_mk/logwatch.cfg
+%files agent-oracle
+/usr/lib/check_mk_agent/plugins/mk_oracle
+%config(noreplace) /etc/check_mk/sqlplus.sh
+
%files web
/usr/share/check_mk/web
%config(noreplace) /etc/apache2/conf.d/*