Revision: 3775 http://gar.svn.sourceforge.net/gar/?rev=3775&view=rev Author: j_arndt Date: 2009-03-16 10:47:24 +0000 (Mon, 16 Mar 2009)
Log Message: ----------- pnp: initial commit Added Paths: ----------- csw/mgar/pkg/pnp/ csw/mgar/pkg/pnp/branches/ csw/mgar/pkg/pnp/tags/ csw/mgar/pkg/pnp/trunk/ csw/mgar/pkg/pnp/trunk/Makefile csw/mgar/pkg/pnp/trunk/checksums csw/mgar/pkg/pnp/trunk/files/ csw/mgar/pkg/pnp/trunk/files/CSWpnp.gspec csw/mgar/pkg/pnp/trunk/files/CSWpnp.prototype csw/mgar/pkg/pnp/trunk/files/cswpnp csw/mgar/pkg/pnp/trunk/files/makefile.diff csw/mgar/pkg/pnp/trunk/files/npcd.diff Property changes on: csw/mgar/pkg/pnp/trunk ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2 Added: csw/mgar/pkg/pnp/trunk/Makefile =================================================================== --- csw/mgar/pkg/pnp/trunk/Makefile (rev 0) +++ csw/mgar/pkg/pnp/trunk/Makefile 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,140 @@ +GARNAME = pnp +GARVERSION = 0.4.13 +CATEGORIES = apps + +DESCRIPTION = Analyzing Nagios performance data with RRD databases. +define BLURB + PNP is an addon to nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases +endef + +SF_PROJ = pnp4nagios +MASTER_SITES = $(SF_MIRRORS) +DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz +DISTFILES += $(call admfiles,CSWpnp, prototype ) +DISTFILES += cswpnp +#DISTFILES += cswpnp cswpnp.xml svc-cswpnp + +PATCHFILES += makefile.diff +PATCHFILES += npcd.diff + +# We define upstream file regex so we can be notifed of new upstream software release +#UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz + +# If the url used to check for software update is different of MASTER_SITES, then +# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES +# UPSTREAM_MASTER_SITES = + +LDFLAGS += -L/usr/ucblib +LIBS += -lucb + +datadir = /opt/csw/nagios/share/pnp +sysconfdir = $(prefix)/nagios/etc/pnp +bindir = $(prefix)/nagios/bin +libexecdir = $(prefix)/libexec/nagios-plugins + +REQUIRED_PKGS_sparc = SUNWscpux +REQUIRED_PKGS_i386 = SUNWscpu +REQUIRED_PKGS = CSWphp5 CSWphp5gd CSWap2modphp5 CSWrrd $(REQUIRED_PKGS_$(GARCH)) CSWcswclassutils +SPKG_CLASSES = none cswinitsmf + +PROTOTYPE_FILTER = awk '$$$$3 ~ /\/init.d\/cswpnp$$$$/ { $$$$2 = "cswinitsmf" } { print }' + +CONFIGURE_ARGS = $(DIRPATHS) +CONFIGURE_ARGS += --with-perl_lib_path=/opt/csw/lib/perl/csw +CONFIGURE_ARGS += --with-perfdata-logfile=/opt/csw/nagios/var/perfdata.log +CONFIGURE_ARGS += --with-perfdata-dir=/opt/csw/nagios/share/perfdata +CONFIGURE_ARGS += --with-perfdata-spool-dir=/opt/csw/var/spool/perfdata +CONFIGURE_ARGS += --htmldir=/opt/csw/nagios/share/pnp + +BUILD_ARGS = all +TEST_SCRIPTS = + +INSTALL_SCRIPTS = base-custom +INSTALL_SCRIPTS += html-custom +INSTALL_SCRIPTS += scripts-custom +INSTALL_SCRIPTS += config-custom +INSTALL_SCRIPTS += contrib-custom + +include gar/category.mk + +DATAROOTDIR = $(datadir) +CONTRIBDIR = $(DATAROOTDIR)/contrib +SYSCONFDIR = $(sysconfdir) +LIBEXECDIR = $(libexecdir) +BINDIR = $(bindir) +PERFDATA_SPOOL_DIR=/opt/csw/nagios/var/spool/perfdata/ +PERFDATADIR = /opt/csw/nagios/share/perfdata + +install-base-custom: + @echo "$(GARCH)" + @echo "$(GARCH)" + @echo "$(GARCH)" + @ginstall -m 755 -d $(DESTDIR)$(BINDIR) + @ginstall -m 755 -d $(DESTDIR)$(PERFDATA_SPOOL_DIR) + @ginstall -m 754 $(WORKSRC)/src/npcd $(DESTDIR)$(BINDIR) + @ginstall -m 754 $(WORKSRC)/src/npcdmod $(DESTDIR)$(BINDIR) + @ginstall -d $(DESTDIR)/etc/opt/csw/init.d + @ginstall -m 755 $(FILEDIR)/cswpnp $(DESTDIR)/etc/opt/csw/init.d/cswpnp + +install-html-custom: + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR) + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/images + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/include + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/include/font + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/include/font/makefont + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/include/js + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/lang/ + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/templates/ + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/templates.dist/ + @ginstall -m 755 -d $(DESTDIR)$(DATAROOTDIR)/templates.special/ + for file in $(WORKSRC)/share/pnp/*.php; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR); done + for file in $(WORKSRC)/share/pnp/templates.dist/*.php; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/templates.dist; done + for file in $(WORKSRC)/share/pnp/templates.special/*.php; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/templates.special; done + for file in $(WORKSRC)/share/pnp/lang/*.php; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/lang; done + for file in $(WORKSRC)/share/pnp/images/*; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/images; done + for file in $(WORKSRC)/share/pnp/include/*.*; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/include; done + for file in $(WORKSRC)/share/pnp/include/js/*; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/include/js; done + for file in $(WORKSRC)/share/pnp/include/font/*.php; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/include/font; done + for file in $(WORKSRC)/share/pnp/include/font/makefont/*; \ + do ginstall -m 644 $$file $(DESTDIR)$(DATAROOTDIR)/include/font/makefont; done + +install-scripts-custom: + @ginstall -m 755 -d $(DESTDIR)$(PERFDATADIR) + @ginstall -m 755 -d $(DESTDIR)$(LIBEXECDIR) + @ginstall -m 755 $(WORKSRC)/scripts/process_perfdata.pl $(DESTDIR)$(LIBEXECDIR) + #...@ginstall -m 755 $(WORKSRC)/scripts/pcheck_pnp_rrds.pl $(DESTDIR)$(LIBEXECDIR) + +install-config-custom: + -rm -f $(DESTDIR)$(HTMLDIR)/conf/config.php + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR)/check_commands + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR)/pages + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/pnp4nagios_release $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/config.php $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/background.pdf $(DESTDIR)$(SYSCONFDIR) + -rm -f $(DESTDIR)$(HTMLDIR)/conf/config.php + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR)/check_commands + @ginstall -m 755 -d $(DESTDIR)$(SYSCONFDIR)/pages + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/config.php $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/process_perfdata.cfg-sample $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/rra.cfg-sample $(DESTDIR)$(SYSCONFDIR) + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/check_commands/check_nwstat.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/pages/web_traffic.cfg-sample $(DESTDIR)$(SYSCONFDIR)/pages + @ginstall -m 644 $(WORKSRC)/sample-config/pnp/npcd.cfg-sample $(DESTDIR)$(SYSCONFDIR)/npcd.cfg + +install-contrib-custom: + @ginstall -m 755 -d $(DESTDIR)$(CONTRIBDIR) + @ginstall -m 755 -d $(DESTDIR)$(CONTRIBDIR)/ssi + @ginstall -m 644 $(WORKSRC)/contrib/makeserviceextinfo.pl $(DESTDIR)$(CONTRIBDIR) + @ginstall -m 644 $(WORKSRC)/contrib/verify_pnp_config $(DESTDIR)$(CONTRIBDIR) + @ginstall -m 644 $(WORKSRC)/contrib/verify_pnp_config.txt $(DESTDIR)$(CONTRIBDIR) + @ginstall -m 644 $(WORKSRC)/contrib/ssi/status-header.ssi $(DESTDIR)$(CONTRIBDIR)/ssi Added: csw/mgar/pkg/pnp/trunk/checksums =================================================================== --- csw/mgar/pkg/pnp/trunk/checksums (rev 0) +++ csw/mgar/pkg/pnp/trunk/checksums 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,5 @@ +20a96f81edba29dcd21215bde4af8b57 download/pnp-0.4.13.tar.gz +216b8ed50919642c3fae2a6520724dd3 download/CSWpnp.gspec +e96576b61cabf446d0d38bd19a45b2b8 download/CSWpnp.prototype +30e8699531bb0249542b3012a00a73b1 download/makefile.diff +b1229d599c2ce12c3aacf0a44e1588d6 download/npcd.diff Added: csw/mgar/pkg/pnp/trunk/files/CSWpnp.gspec =================================================================== --- csw/mgar/pkg/pnp/trunk/files/CSWpnp.gspec (rev 0) +++ csw/mgar/pkg/pnp/trunk/files/CSWpnp.gspec 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,3 @@ +%var bitname pnp +%var pkgname CSWpnp +%include url file://%{PKGLIB}/csw_dyndepend.gspec Added: csw/mgar/pkg/pnp/trunk/files/CSWpnp.prototype =================================================================== --- csw/mgar/pkg/pnp/trunk/files/CSWpnp.prototype (rev 0) +++ csw/mgar/pkg/pnp/trunk/files/CSWpnp.prototype 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,167 @@ +d none /opt/csw/nagios 0755 root bin +d none /opt/csw/nagios/bin 0755 nagios nagios +f none /opt/csw/nagios/bin/npcd 0754 nagios nagios +f none /opt/csw/nagios/bin/npcdmod 0754 nagios nagios +d none /opt/csw/nagios/etc/pnp 0755 nagios nagios +f none /opt/csw/nagios/etc/pnp/background.pdf 0644 nagios nagios +d none /opt/csw/nagios/etc/pnp/check_commands 0755 nagios nagios +f none /opt/csw/nagios/etc/pnp/check_commands/check_nwstat.cfg-sample 0644 nagios nagios +f none /opt/csw/nagios/etc/pnp/config.php 0644 nagios nagios +f none /opt/csw/nagios/etc/pnp/npcd.cfg 0644 nagios nagios +d none /opt/csw/nagios/etc/pnp/pages 0755 nagios nagios +f none /opt/csw/nagios/etc/pnp/pages/web_traffic.cfg-sample 0644 nagios nagios +f none /opt/csw/nagios/etc/pnp/pnp4nagios_release 0644 nagios nagios +f none /opt/csw/nagios/etc/pnp/process_perfdata.cfg-sample 0644 nagios nagios +f none /opt/csw/nagios/etc/pnp/rra.cfg-sample 0644 nagios nagios +d none /opt/csw/libexec/nagios-plugins 0755 root bin +f none /opt/csw/libexec/nagios-plugins/process_perfdata.pl 0755 root bin +d none /opt/csw/nagios/share 0755 nagios nagios +d none /opt/csw/nagios/share/perfdata 0755 nagios nagios +d none /opt/csw/nagios/share/pnp 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/ajax.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/images 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/images/ack.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/action.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/calendar.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/critical.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/eps.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/graph.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/int.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/int2.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/link.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/noack.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/notify.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/ok.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/pages.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/pdf.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/pnp.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/recovery.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/rrdtool.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/svg.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/trends.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/warning.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/xml.png 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/images/zoom.png 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/include 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/include/debug.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/include/font 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/courier.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/helvetica.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/helveticab.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/helveticabi.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/helveticai.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/include/font/makefont 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1250.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1251.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1252.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1253.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1254.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1255.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1257.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp1258.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/cp874.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-1.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-11.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-15.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-16.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-2.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-4.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-5.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-7.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/iso-8859-9.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/koi8-r.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/koi8-u.map 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/makefont/makefont.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/symbol.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/times.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/timesb.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/timesbi.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/timesi.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/font/zapfdingbats.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/fpdf.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/fpdf_tpl.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/fpdi.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/fpdi_pdf_parser.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/function.inc.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/include/js 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/builder.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/calendar-blue.css 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/calendar-de.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/calendar-en.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/calendar-setup.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/calendar.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/controls.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/dragdrop.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/effects.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/menuarrow.gif 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/overlib_mini.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/prototype.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/scriptaculous.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/slider.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/sound.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/unittest.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/js/zoom.js 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/pdf_context.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/pdf_parser.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/site.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/style.css 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/tpl_function.inc.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/include/wrapper_functions.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/index.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/lang 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/lang/lang_de.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/lang/lang_en.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/lang/lang_fr.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/lang/lang_nl.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/lang/lang_se.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/templates 0755 nagios nagios +d none /opt/csw/nagios/share/pnp/templates.dist 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check-host-alive.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_disk.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_dns.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_fping.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_http.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_http_url.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_iftraffic_counter.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_iftraffic_pct.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_load.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_messpc_temp.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_multi.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nt_cpu.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nt_disk.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nt_mem.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_CONNS.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_LOAD.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_LOAD1.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_LOAD15.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_LOAD5.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_nwstat_ofiles.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_connection-time.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_health_connection-time.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_health_pga-in-memory-sort-ratio.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_health_redo-io-traffic.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_health_switch-interval.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_oracle_health_tablespace-usage.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_ping.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_pnp_rrds.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_smtp.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_snmp_int-bits.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_snmp_int.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_swap.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_tcp.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/check_users.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/default.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.dist/response.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/templates.special 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/templates.special/loop.php 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/zoom.php 0644 nagios nagios +d none /opt/csw/nagios/share/pnp/contrib 0755 nagios nagios +d none /opt/csw/nagios/share/pnp/contrib/ssi 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/contrib/makeserviceextinfo.pl 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/contrib/verify_pnp_config 0755 nagios nagios +f none /opt/csw/nagios/share/pnp/contrib/verify_pnp_config.txt 0644 nagios nagios +f none /opt/csw/nagios/share/pnp/contrib/ssi/status-header.ssi 0644 nagios nagios +d none /opt/csw/nagios/var 0755 nagios nagios +d none /opt/csw/nagios/var/spool 0755 nagios nagios +d none /opt/csw/nagios/var/spool/perfdata 0755 nagios nagios +f cswinitsmf /etc/opt/csw/init.d/cswpnp 0755 root bin Added: csw/mgar/pkg/pnp/trunk/files/cswpnp =================================================================== --- csw/mgar/pkg/pnp/trunk/files/cswpnp (rev 0) +++ csw/mgar/pkg/pnp/trunk/files/cswpnp 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Copyright (c) 1992 - 2001 by Sun Microsystems, Inc. +# All rights reserved. +# +#ident "@(#)pnp 1.19 01/12/05 SMI" +# Modified for CSW by Alex Moore 2005-12-03 +# 2007-08-18 Add pid file support. +# 2007-08-19 Fix nagios uid used for pgrep. Thanks to Will McDonald for this. +# 2009-03-08 Fix for "user = nagios" and awk + +CONFIG_FILE=/etc/opt/csw/pnp.cfg +if [ ! -f $CONFIG_FILE ] ; then + CONFIG_FILE=/opt/csw/nagios/etc/pnp/npcd.cfg +fi +BIN_FILE="/opt/csw/nagios/bin/npcd" +pidfile=`grep '^pid_file' $CONFIG_FILE |awk '{ FS = "=" } {print $2;}'` +PNP_USER=`awk '/^user/ { print $NF }' $CONFIG_FILE` + +case "$1" in +'restart') + [ -n "`pgrep -x -u 0,1,$PNP_USER npcd`" ] && /usr/bin/kill `head -1 $pidfile` + # remove pid file + if [ -f "$pidfile" ]; then + rm "$pidfile" + fi + if [ -f $CONFIG_FILE ]; then + wait 1 + $BIN_FILE -c $CONFIG_FILE -d + fi + ;; + +'start') + if [ -f $CONFIG_FILE ]; then + $BIN_FILE -c $CONFIG_FILE -d + fi + ;; + +'stop') + [ -n "`pgrep -x -u 0,1,$PNP_USER npcd`" ] && /usr/bin/kill `head -1 $pidfile` + # remove pid file + if [ -f "$pidfile" ]; then + rm "$pidfile" + fi + ;; + +*) + echo "Usage: $0 { start | stop | restart }" + exit 1 + ;; +esac +exit 0 Added: csw/mgar/pkg/pnp/trunk/files/makefile.diff =================================================================== --- csw/mgar/pkg/pnp/trunk/files/makefile.diff (rev 0) +++ csw/mgar/pkg/pnp/trunk/files/makefile.diff 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,43 @@ +diff --speed-large-files --minimal -Nru pnp-0.4.13.orig/src/Makefile.in pnp-0.4.13/src/Makefile.in +--- pnp-0.4.13.orig/src/Makefile.in 2009-02-19 18:28:41.000000000 +0100 ++++ pnp-0.4.13/src/Makefile.in 2009-03-04 20:55:35.296449068 +0100 +@@ -9,7 +9,7 @@ + SRC_INCLUDE=../include + + c...@cc@ +-cfla...@cflags@ @DEFS@ -DNSCORE ++cfla...@cflags@ @DEFS@ -DNSCORE -L/usr/ucblib -R/usr/ucblib -lucb + + # Compiler flags for use with Valgrind + #CFLAGS=-O0 -g -DHAVE_CONFIG_H -DNSCORE +@@ -52,7 +52,7 @@ + + OBJDEPS= + +-all: npcd npcdmod.o ++all: npcd npcdmod + + # Required Objects + +@@ -87,8 +87,8 @@ + # NPCDMOD + # + ############################### +-npcdmod.o: npcdmod.c +- $(CC) $(MOD_CFLAGS) $(CFLAGS) -o npcdmod.o npcdmod.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) -fPIC ++npcdmod: npcdmod.c ++ $(CC) $(MOD_CFLAGS) $(CFLAGS) -o npcdmod npcdmod.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) -fPIC + + ############################### + # +@@ -124,8 +124,8 @@ + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR) + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(PERFDATA_SPOOL_DIR) + $(INSTALL) -m 754 $(INSTALL_OPTS) @npcd_name@ $(DESTDIR)$(BINDIR) +- $(INSTALL) -m 754 $(INSTALL_OPTS) npcdmod.o $(DESTDIR)$(BINDIR) ++ $(INSTALL) -m 754 $(INSTALL_OPTS) npcdmod $(DESTDIR)$(BINDIR) + + strip-post-install: + $(STRIP) $(DESTDIR)$(BINDIR)/@npcd_name@ +- $(STRIP) $(DESTDIR)$(BINDIR)/npcdmod.o ++ $(STRIP) $(DESTDIR)$(BINDIR)/npcdmod Added: csw/mgar/pkg/pnp/trunk/files/npcd.diff =================================================================== --- csw/mgar/pkg/pnp/trunk/files/npcd.diff (rev 0) +++ csw/mgar/pkg/pnp/trunk/files/npcd.diff 2009-03-16 10:47:24 UTC (rev 3775) @@ -0,0 +1,15 @@ +diff --speed-large-files --minimal -Nru pnp-0.4.13.orig/src/npcd.c pnp-0.4.13/src/npcd.c +--- pnp-0.4.13.orig/src/npcd.c 2009-02-19 18:28:41.000000000 +0100 ++++ pnp-0.4.13/src/npcd.c 2009-03-04 20:39:15.803376720 +0100 +@@ -56,6 +56,11 @@ + const char *directory = NULL; + const char progname[5] = "npcd"; + ++int alphasort(const struct dirent **a, const struct dirent **b) ++{ ++ return(strcmp((*a)->d_name, (*b)->d_name)); ++} ++ + static void start_daemon(const char *log_name, int facility) { + int i; + pid_t pid; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel