SPECS: cacti-plugin-npc.spec - add todo - NFY - TODO compile modul...

wolvverine wolvverine at pld-linux.org
Mon Mar 27 05:01:11 CEST 2006


Author: wolvverine                   Date: Mon Mar 27 03:01:11 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add todo
- NFY
- TODO compile module for nagios
- TODO integration with nagios

---- Files affected:
SPECS:
   cacti-plugin-npc.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/cacti-plugin-npc.spec
diff -u SPECS/cacti-plugin-npc.spec:1.4 SPECS/cacti-plugin-npc.spec:1.5
--- SPECS/cacti-plugin-npc.spec:1.4	Mon Mar 20 22:09:25 2006
+++ SPECS/cacti-plugin-npc.spec	Mon Mar 27 05:01:05 2006
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+#TODO
+#-  Edit the MySQL options on line 143 of /cacti/plugins/npc/neb/inserter.c
 %define		namesrc	npc
 %include	/usr/lib/rpm/macros.perl
 Summary:	Plugin for Cacti - NPC
@@ -12,11 +14,14 @@
 # Source0-md5:	325f2e49070420346b55b7b4e2994d34
 URL:		http://www.divagater.com/npc/
 BuildRequires:	rpm-perlprov
-Requires:	cacti
-BuildArch:	noarch
+BuildRequires:	nagios-devel
+BuildRequires:	mysql-devel >= 4.1.0
+Requires:	cacti >= 0.8.6h # with plugin-architecture
+Requires:	nagios >= 2.0b4  ### compiled with --enable-event-broker
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
+%define		pathtonagiosmodules	/path/to/nagios/modules
 
 %description
 Plugin for Cacti - A UI replacement for Nagios integrated into Cacti.
@@ -28,11 +33,30 @@
 %prep
 %setup -q -n %{namesrc}
 
+%build
+# copy ./npc/neb/inserter.c and ./npc/neb/makefile to module/ under Nagios source directory and run make.
+cd ./neb
+%{__make}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
+install -d $RPM_BUILD_ROOT%{pathtonagiosmodules}
+install ./neb/inserter.o $RPM_BUILD_ROOT%{pathtonagiosmodules}
+rm -fr ./neb
 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
 
+# Edit nagios.cfg and set:
+#
+#        retain_state_information=0
+#        event_broker_options=-1
+#        broker_module=%{pathtonagiosmodules}/inserter.o
+
+# Setting retain_state_information=0 causes all hosts and services to
+# go to a pending state until rechecked by Nagios. Without this setting
+# the inserter module will never update any data in NPC. Its a minor
+# inconvenience that I will try to fix in the inserter module.
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -40,6 +64,7 @@
 %defattr(644,root,root,755)
 %doc TODO README 
 %{webcactipluginroot}
+%{pathtonagiosmodules}/inserter.o
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -47,6 +72,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2006/03/27 03:01:05  wolvverine
+- add todo
+- NFY
+- TODO compile module for nagios
+- TODO integration with nagios
+
 Revision 1.4  2006/03/20 21:09:25  qboosh
 - pl desc
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cacti-plugin-npc.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list