[csw-devel] SF.net SVN: gar:[3120] csw/mgar/pkg
j_arndt at users.sourceforge.net
j_arndt at users.sourceforge.net
Mon Feb 16 15:09:01 CET 2009
Revision: 3120
http://gar.svn.sourceforge.net/gar/?rev=3120&view=rev
Author: j_arndt
Date: 2009-02-16 14:09:01 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
nagios: Initial commit
Added Paths:
-----------
csw/mgar/pkg/nagios/
csw/mgar/pkg/nagios/branches/
csw/mgar/pkg/nagios/tags/
csw/mgar/pkg/nagios/trunk/
csw/mgar/pkg/nagios/trunk/Makefile
csw/mgar/pkg/nagios/trunk/checksums
csw/mgar/pkg/nagios/trunk/files/
csw/mgar/pkg/nagios/trunk/files/CSWnagios.checkinstall
csw/mgar/pkg/nagios/trunk/files/CSWnagios.depend
csw/mgar/pkg/nagios/trunk/files/CSWnagios.gspec
csw/mgar/pkg/nagios/trunk/files/CSWnagios.postinstall
csw/mgar/pkg/nagios/trunk/files/CSWnagios.preinstall
csw/mgar/pkg/nagios/trunk/files/CSWnagios.preremove
csw/mgar/pkg/nagios/trunk/files/CSWnagios.prototype
csw/mgar/pkg/nagios/trunk/files/configure.diff
csw/mgar/pkg/nagios/trunk/files/doc.diff
csw/mgar/pkg/nagios/trunk/files/install-opts.diff
csw/mgar/pkg/nagios/trunk/files/nagios
csw/mgar/pkg/nagios/trunk/files/nagios.xml
csw/mgar/pkg/nagios/trunk/files/patch.diff
csw/mgar/pkg/nagios/trunk/files/svc-nagios
csw/mgar/pkg/nagios/trunk/files/webconf.diff
Property changes on: csw/mgar/pkg/nagios/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v1
Added: csw/mgar/pkg/nagios/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nagios/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/nagios/trunk/Makefile 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,55 @@
+GARNAME = nagios
+GARVERSION = 3.0.6
+CATEGORIES = apps
+
+DESCRIPTION = nagios network monitoring base package (no plugins)
+define BLURB
+ Nagios is a powerful, enterprise-class host, service, application, and network monitoring program. Designed to be fast, flexible, and rock-solid stable. Nagios runs on *NIX hosts and can monitor Windows, Linux/Unix/BSD, Netware, and network devices.
+endef
+
+MASTER_SITES = http://kent.dl.sourceforge.net/sourceforge/nagios/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+#DISTFILES += $(call admfiles,CSWnagios)
+DISTFILES += $(call admfiles,CSWnagios,prototype checkinstall preinstall preremove postinstall depend)
+DISTFILES += nagios nagios.xml svc-nagios
+
+PATCHFILES = patch.diff # cgi/cmd.c - GNU macro __attribute__ unknown to compiler
+ # http://article.gmane.org/gmane.network.nagios.devel/4726
+ # (Error 2)
+PATCHFILES += configure.diff # configure.in
+ # http://unix.derkeiler.com/Mailing-Lists/SunManagers/2004-11/0424.html
+ # -lsunmath is needed in configure for checking of libgd
+PATCHFILES += install-opts.diff # sets in every Makefile.in "INSTALL_OPT="" (empty)
+ # necessary, so ginstall doesn't get -o and -g options
+PATCHFILES += webconf.diff # global Makefile.in
+ # nagios httpd-config is renamed to httpd-nagios.conf
+PATCHFILES += doc.diff # Makefile.in - copies READMes ... to /opt/csw/share/doc/nagios/
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --prefix=/opt/csw/nagios
+CONFIGURE_ARGS += --exec-prefix=/opt/csw/nagios
+CONFIGURE_ARGS += --with-command-user=nagios
+CONFIGURE_ARGS += --with-command-group=nagios
+CONFIGURE_ARGS += --with-httpd-conf=/opt/csw/nagios/etc
+CONFIGURE_ARGS += --enable-embedded-perl
+
+#prefix ?= /opt/csw/nagios
+sysconfdir ?= $(prefix)/nagios/etc
+localstatedir ?= $(prefix)/nagios/var
+bindir ?= $(prefix)/nagios/bin
+sbindir ?= $(prefix)/nagios/sbin
+libexecdir ?= $(prefix)/libexec/nagios-plugins
+datadir ?= $(prefix)/nagios/share
+
+EXTRA_LIB = /opt/csw/lib
+
+BUILD_ARGS = all
+
+TEST_TARGET = none
+
+INSTALL_ARGS += install-init
+INSTALL_ARGS += install-config
+INSTALL_ARGS += install-webconf
+INSTALL_ARGS += install-commandmode
+INSTALL_ARGS += install-docs
+include gar/category.mk
Added: csw/mgar/pkg/nagios/trunk/checksums
===================================================================
--- csw/mgar/pkg/nagios/trunk/checksums (rev 0)
+++ csw/mgar/pkg/nagios/trunk/checksums 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,16 @@
+900e3f4164f4b2a18485420eeaefe812 download/nagios-3.0.6.tar.gz
+799f1b92197d0d0fabfc09631abab3f9 download/CSWnagios.gspec
+4a34971d496bff77fc2bfd0eb2007c37 download/CSWnagios.prototype
+e407a4b179bd7de72b3e8c21f309f9b7 download/CSWnagios.checkinstall
+47cc36016f5518dfd5614b870f56e944 download/CSWnagios.preinstall
+92437323de0cceaa58c6238ec9e6c954 download/CSWnagios.preremove
+2ed96c2fb28a30112681b772465bf2a6 download/CSWnagios.postinstall
+95cce43182ddef277c1556c1607e3bb5 download/CSWnagios.depend
+eee3268b11eb94d797f0f606d53cfb97 download/nagios
+2bca004216ac8d8774e8bf3f974eca10 download/nagios.xml
+66adfde9e041150b29e31ea8f8c0b604 download/svc-nagios
+0ef601e30d01a511822dd27df6b0e531 download/patch.diff
+4faa5ec86586be23dfbbd9165f50046d download/configure.diff
+f3161bcb7c65f89707ee37b0a8d861d5 download/install-opts.diff
+f1c09f43c8994b97608a9f57cef28191 download/webconf.diff
+d4b9518af39194e571fcb894b3aac6d2 download/doc.diff
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.checkinstall
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.checkinstall (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.checkinstall 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,71 @@
+# See if user group are needed
+NEEDNAGUSER=0
+NEEDNAGGROUP=0
+NEEDCMDGROUP=0
+
+#First check target machines password file, THEN check
+#NIS/NIS+/whatever
+
+grep '^nagios:' /etc/passwd >/dev/null
+if [ $? -ne 0 ] ; then
+ getent passwd nagios >/dev/null
+ if [ $? -ne 0 ] ; then
+ NEEDNAGUSER=1
+ fi
+fi
+
+grep '^nagios:' /etc/group >/dev/null
+if [ $? -ne 0 ] ; then
+ getent group nagios >/dev/null
+ if [ $? -ne 0 ] ; then
+ NEEDNAGGROUP=1
+ fi
+fi
+
+# Next, verify that group nagioscm exists.
+# First check target machines group file, THEN check
+# NIS/NIS+/whatever
+
+/usr/bin/grep '^nagioscm:' /etc/group >/dev/null
+if [ $? -ne 0 ] ; then
+ /usr/bin/getent group nagioscm >/dev/null
+ if [ $? -ne 0 ] ; then
+ NEEDCMDGROUP=1
+ fi
+fi
+
+if [ "$NEEDNAGUSER" = 1 ] ; then
+ echo "***"
+ echo "User nagios must exist for this package install."
+ echo "nagios user will be added."
+ ADDNAGUSER=1
+else
+ echo "nagios user detected"
+fi
+
+if [ "$NEEDNAGGROUP" = 1 ] ; then
+ echo "***"
+ echo "Group nagios must exist for this package install."
+ echo "nagios group will be added."
+ ADDNAGGROUP=1
+else
+ echo "nagios group detected"
+fi
+
+if [ "$NEEDCMDGROUP" = 1 ] ; then
+ echo "***"
+ echo "Group nagioscm must exist for this package install."
+ echo "nagioscm group will be added."
+ ADDCMDGROUP=1
+else
+ echo "nagioscm group detected"
+fi
+
+# Make env variables available to other packaging scripts
+
+cat >$1 <<!
+CLASSES='$CLASSES'
+NEEDNAGUSER='$NEEDNAGUSER'
+NEEDNAGGROUP='$NEEDNAGGROUP'
+NEEDCMDGROUP='$NEEDCMDGROUP'
+!
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.depend
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.depend (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.depend 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,14 @@
+P CSWapache apache - apache webserver with mod_ssl included
+P CSWgd gd - libgd, Graphics creation library and utilities
+P CSWggettext ggettext - GNU gettext
+P CSWglib2 glib2 - The low-level core lib for GNOME and GTK+
+P CSWiconv libiconv - GNU iconv library
+P CSWjpeg jpeg - JPEG library and tools by the Independent JPEG Group
+P CSWlibtool libtool - Generic library support script
+P CSWlibtoolrt libtool_rt - Generic library support runtime libraries
+P CSWosslrt openssl_rt - Openssl runtime libraries
+P CSWperl perl - A high-level, general-purpose programming language.
+P CSWpng png - library for Portable Network Graphics format (PNG)
+P CSWzlib zlib - Zlib Data Compression Library
+P CSWnagiosp nagiosp - Plugins for Nagios
+P CSWnrpeplugin nrpeplugin - plugin for checking nrpe daemons
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.gspec
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.gspec (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.gspec 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,9 @@
+%var bitname nagios
+%var pkgname CSWnagios
+%var SERVICE_CONF_FILES /opt/csw/nagios/etc/nagios.cfg
+%var RC_INIT_SCRIPT nagios
+%var SMF_SCRIPT svc-nagios
+%var SMF_MANIFEST nagios.xml
+%include url file://%{PKGLIB}/csw_dyndepend.gspec
+%include url file://%{PKGLIB}/smf_enabled.gspec
+%copyright url file://%{WORKSRC}/LICENSE
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.postinstall
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.postinstall (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.postinstall 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,99 @@
+# postinstall for nagios package
+# 2007-01-19 Add csw.conf support
+# 2007-09-11 Fix PKG_INSTALL_ROOT usage. BASEDIR is not used for non
+# relocatable packages.
+#
+
+# daemons are started by default
+enable_daemon=yes
+
+# Source csw.conf, if it exists
+if [ -f $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf ] ; then
+ . $PKG_INSTALL_ROOT/opt/csw/etc/csw.conf
+fi
+if [ -f $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+ . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# If defined, autoenable for the specific daemon name takes precedence
+if [ "$autoenable_nagios" = "no" ] ; then
+ enable_daemon=no
+elif [ "$autoenable_daemons" = "no" -a ! -n "$autoenable_nagios" ] ; then
+ enable_daemon=no
+fi
+
+# Set variable for the availability of SMF
+smf=no
+if [ -f /usr/sbin/svccfg -a -f $BASEDIR/usr/sbin/svcadm ]
+ then
+ smf=yes
+fi
+
+# Stop nagios if it is running
+if pgrep nagios >/dev/null 2>&1 ; then
+ echo "## Stopping nagios"
+ if [ $smf = yes ]; then
+ /usr/sbin/svcadm disable svc:/application/cswnagios >/dev/null 2>&1
+ else
+ /etc/init.d/cswnagios stop >/dev/null 2>&1
+ fi
+ while pgrep nagios > /dev/null
+ do
+ sleep 1
+ done
+fi
+
+if [ $smf = yes ]; then
+ # Register with SMF
+ echo "Configuring service in SMF"
+ /usr/sbin/svccfg import /opt/csw/var/svc/manifest/application/nagios.xml >/dev/null 2>&1
+ /usr/sbin/svcadm disable svc:application/cswnagios >/dev/null 2>&1
+ echo "nagios is using Service Management Facility. The FMRI is:"
+ echo " svc:/application/cswnagios:default"
+fi
+
+# Start nagios
+if [ "$enable_daemon" = "yes" ] ; then
+ if [ -f $BASEDIR/opt/csw/nagios/etc/nagios.cfg ]; then
+ echo "## Starting nagios"
+ if [ $smf = yes ]; then
+ /usr/sbin/svcadm enable svc:/application/cswnagios >/dev/null 2>&1
+ else
+ /etc/init.d/cswnagios start >/dev/null 2>&1
+ fi
+ else
+ echo "## Not starting nagios - configuration file not found"
+ if [ $smf = yes ] ; then
+ /usr/sbin/svcadm disable svc:/application/cswnagios >/dev/null 2>&1
+ fi
+ fi
+fi
+
+#
+PREFIX=/opt/csw/nagios
+NAGHTTPD=httpd-nagios.conf
+
+if [ -d /opt/csw/apache/conf ]; then
+ APACHE_CONF=/opt/csw/apache/conf
+ cp $PREFIX/etc/$NAGHTTPD $APACHE_CONF
+elif [ -d /etc/apache ]; then
+ APACHE_CONF=/etc/apache
+ cp $PREFIX/etc/$NAGHTTPD $APACHE_CONF
+else
+ APACHE_CONF=$PREFIX/etc
+fi
+
+cat <<EOF
+___________________________________________________________________________
+The Nagios system has been installed but you must update the files in
+$PREFIX/etc/ to reflect your monitoring setup.
+
+Additionally you must make Nagios accessible from your Apache webserver.
+
+The file $APACHE_CONF/$NAGHTTPD lists the exact configuration
+directives required.
+
+Add those lines into your httpd.conf and restart your Apache server.
+___________________________________________________________________________
+EOF
+
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.preinstall
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.preinstall (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.preinstall 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,34 @@
+# This script exists to make sure the required user
+# accounts nagios and groups nagios, nagioscm exist.
+# 2006-02-27: group nagioscm is required.
+# 2007-09-11 Fix PKG_INSTALL_ROOT usage. BASEDIR is not used for non
+# relocatable packages.
+
+echo "Executing preinstall"
+
+#If installing package on a filesystem tree not running the OS; then exit.
+if [ ! x"$PKG_INSTALL_ROOT" = x"" ] ; then exit 0 ; fi
+
+NAGIOSHOME=/opt/csw/nagios
+
+if [ "$NEEDNAGGROUP" = 1 ] ; then
+ echo adding nagios group
+ /usr/sbin/groupadd nagios
+fi
+
+if [ "$NEEDNAGUSER" = 1 ] ; then
+ echo adding nagios user
+ /usr/sbin/useradd -g nagios nagios
+ /usr/sbin/usermod -s /bin/false -d $NAGIOSHOME nagios
+else
+ echo not adding user
+fi
+
+if [ "$NEEDCMDGROUP" = 1 ] ; then
+ echo adding nagioscm group
+ /usr/sbin/groupadd nagioscm
+ echo adding nagios user to nagioscm group
+ /usr/sbin/usermod -G nagioscm nagios
+fi
+
+exit 0
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.preremove
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.preremove (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.preremove 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,27 @@
+# nagios - preremove script
+# 2007-09-11 Fix PKG_INSTALL_ROOT usage. BASEDIR is not used for non
+# relocatable packages.
+#
+# Stop nagios if it is running.
+
+#If removing package from a filesystem tree not running the OS; then exit.
+if [ ! x"$PKG_INSTALL_ROOT" = x"" ] ; then exit 0 ; fi
+
+smf=no
+if [ -f /usr/sbin/svccfg -a -f /usr/sbin/svcadm ] ; then smf=yes ; fi
+
+ echo "## Stopping nagios"
+ if [ $smf = yes ]
+ then
+ # Disable service
+ /usr/sbin/svcadm disable -s svc:application/cswnagios:default >/dev/null 2>&1
+ else
+ /etc/init.d/cswnagios stop >/dev/null 2>&1
+ fi
+
+if [ $smf = yes ] ; then
+ # Unregister with SMF
+ /usr/sbin/svccfg delete svc:application/cswnagios:default >/dev/null 2>&1
+fi
+
+exit 0
Added: csw/mgar/pkg/nagios/trunk/files/CSWnagios.prototype
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/CSWnagios.prototype (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/CSWnagios.prototype 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,393 @@
+d none /opt/csw/nagios/bin 0755 nagios nagios
+f none /opt/csw/nagios/bin/nagios 0774 nagios nagios
+f none /opt/csw/nagios/bin/nagiostats 0774 nagios nagios
+f none /opt/csw/nagios/bin/p1.pl 0664 nagios nagios
+d none /opt/csw/nagios/etc 0755 nagios nagios
+f none /opt/csw/nagios/etc/cgi.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/httpd-nagios.conf 0644 nagios nagios
+f none /opt/csw/nagios/etc/nagios.cfg 0664 nagios nagios
+d none /opt/csw/nagios/etc/objects 0755 nagios nagios
+f none /opt/csw/nagios/etc/objects/commands.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/contacts.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/localhost.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/printer.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/switch.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/templates.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/timeperiods.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/objects/windows.cfg 0664 nagios nagios
+f none /opt/csw/nagios/etc/resource.cfg 0660 nagios nagios
+d none /opt/csw/nagios/libexec 0755 nagios nagios
+d none /opt/csw/nagios/sbin 0755 nagios nagios
+f none /opt/csw/nagios/sbin/avail.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/cmd.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/config.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/extinfo.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/histogram.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/history.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/notifications.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/outages.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/showlog.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/status.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/statusmap.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/statuswml.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/statuswrl.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/summary.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/tac.cgi 0775 nagios nagios
+f none /opt/csw/nagios/sbin/trends.cgi 0775 nagios nagios
+d none /opt/csw/nagios/share 0755 nagios nagios
+d none /opt/csw/nagios/share/contexthelp 0755 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/A7.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/B1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/C1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/D1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/E1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/F1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/G6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H7.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/H8.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I7.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I8.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/I9.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/J1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/K1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L10.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L11.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L12.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L13.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L7.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L8.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/L9.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/M6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N1.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N2.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N3.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N4.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N5.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N6.html 0664 nagios nagios
+f none /opt/csw/nagios/share/contexthelp/N7.html 0664 nagios nagios
+d none /opt/csw/nagios/share/docs 0755 nagios nagios
+f none /opt/csw/nagios/share/docs/about.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/activechecks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/adaptive.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/addons.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/beginners.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/cachedchecks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/cgiauth.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/cgiincludes.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/cgis.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/cgisecurity.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/checkscheduling.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/clusters.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/config.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/configcgi.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/configmain.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/configobject.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/customobjectvars.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/dependencies.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/dependencychecks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/distributed.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/downtime.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/embeddedperl.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/epnplugins.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/escalations.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/eventhandlers.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/extcommands.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/faststartup.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/flapping.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/freshness.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/funstuff.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/hostchecks.html 0664 nagios nagios
+d none /opt/csw/nagios/share/docs/images 0755 nagios nagios
+f none /opt/csw/nagios/share/docs/images/activechecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cachedcheckgraphs.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cachedchecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cachedchecks1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-avail-a.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-avail-b.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-cmd.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-config.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-extinfo-a.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-extinfo-b.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-extinfo-c.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-extinfo-d.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-histogram.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-history.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-notifications.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-outages.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-showlog.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-status-a.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-status-b.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-status-c.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-status-d.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-statusmap.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-statuswml.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-statuswrl.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-summary.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-tac.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/cgi-trends.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/checkmark.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/checktiming.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/configoverview.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/distributed.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/downtime.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/epn.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/eventhandlers.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/externalcommands.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/fast-startup.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/fast-startup1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/fast-startup2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/freshness.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/host-dependencies.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/important.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/integrationoverview.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/interleaved1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/interleaved2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/interleaved3.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/logofullsize.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/monitoring-printers.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/monitoring-routers.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/monitoring-windows.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-activehostchecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-activelychecked.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-activeservicechecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-cachedchecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-commandbuffers.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-externalcommands.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-hostperfstats.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-hoststatechange.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-passivechecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-passivelychecked.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-serviceperfstats.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/mrtg-servicestatechange.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/multiple-templates1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/multiple-templates2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/nagios.jpg 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/ndoutils.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/network-outage1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/network-outage2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/noninterleaved1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/noninterleaved2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/note.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/nrpe.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/nsca.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/nscpp.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/objects-commands.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/objects-contacts.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/objects-hosts.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/objects-services.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/objects-timeperiods.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/passivechecks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/passivehosttranslation.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/plugins.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/predictive-dependency-checks.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/printer.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/reachability1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/reachability2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/reachability3.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/reachability4.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/redudancy.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/redundancy.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/security.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/security1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/security2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/security3.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/seealso.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/service-dependencies.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/statetransitions.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/statetransitions2.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/stoprestart.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/switch.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/tcpwrappers.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/tip.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/tuning.png 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/images/upto.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/index.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/int-snmptrap.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/int-tcpwrappers.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/integration.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/largeinstalltweaks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/macrolist.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/macros.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-linux.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-netware.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-printers.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-publicservices.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-routers.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/monitoring-windows.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/mrtggraphs.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/nagiostats.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/networkreachability.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/notifications.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/objectdefinitions.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/objectinheritance.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/objecttricks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/oncallrotation.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/passivechecks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/passivestatetranslation.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/perfdata.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/pluginapi.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/plugins.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/quickstart-fedora.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/quickstart-opensuse.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/quickstart-ubuntu.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/quickstart.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/redundancy.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/robots.txt 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/security.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/servicechecks.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/stalking.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/startstop.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/statetypes.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/timeperiods.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/toc.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/tuning.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/upgrading.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/verifyconfig.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/volatileservices.html 0664 nagios nagios
+f none /opt/csw/nagios/share/docs/whatsnew.html 0664 nagios nagios
+d none /opt/csw/nagios/share/images 0755 nagios nagios
+f none /opt/csw/nagios/share/images/NagiosEnterprises-whitebg-112x46.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/ack.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/action.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/command.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/comment.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/contexthelp1.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/contexthelp2.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/critical.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/delay.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/delete.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/detail.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/disabled.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/down.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/downtime.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/empty.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/enabled.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/extinfo.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/favicon.ico 0664 nagios nagios
+f none /opt/csw/nagios/share/images/flapping.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/globe-support-150x150.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/greendot.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/histogram.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/history.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/hostevent.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/info.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/left.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logofullsize.png 0664 nagios nagios
+d none /opt/csw/nagios/share/images/logos 0755 nagios nagios
+f none /opt/csw/nagios/share/images/logos/nagios.gd2 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logos/nagios.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logos/nagiosvrml.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logos/unknown.gd2 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logos/unknown.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/logrotate.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/ndisabled.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/noack.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/notes.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/notify.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/orangedot.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/passiveonly.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/recovery.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/redudancy.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/redundancy.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/restart.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/right.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/sblogo.jpg 0664 nagios nagios
+f none /opt/csw/nagios/share/images/serviceevent.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/splunk1.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/splunk2.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/start.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/status.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/status2.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/status3.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/status4.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/stop.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/tacdisabled.jpg 0664 nagios nagios
+f none /opt/csw/nagios/share/images/tacdisabled.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/tacenabled.jpg 0664 nagios nagios
+f none /opt/csw/nagios/share/images/tacenabled.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/thermcrit.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/thermok.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/thermwarn.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/trends.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/trendshost.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/trendssvc.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/unknown.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/up.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/warning.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/weblogo1.png 0664 nagios nagios
+f none /opt/csw/nagios/share/images/zoom1.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/images/zoom2.gif 0664 nagios nagios
+f none /opt/csw/nagios/share/index.html 0664 nagios nagios
+f none /opt/csw/nagios/share/main.html 0664 nagios nagios
+d none /opt/csw/nagios/share/media 0755 nagios nagios
+f none /opt/csw/nagios/share/robots.txt 0664 nagios nagios
+f none /opt/csw/nagios/share/side.html 0664 nagios nagios
+d none /opt/csw/nagios/share/ssi 0755 nagios nagios
+d none /opt/csw/nagios/share/stylesheets 0755 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/avail.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/checksanity.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/cmd.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/common.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/config.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/extinfo.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/histogram.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/history.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/ministatus.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/notifications.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/outages.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/showlog.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/status.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/statusmap.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/summary.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/tac.css 0664 nagios nagios
+f none /opt/csw/nagios/share/stylesheets/trends.css 0664 nagios nagios
+d none /opt/csw/nagios/var 0755 nagios nagios
+d none /opt/csw/nagios/var/archives 0755 nagios nagios
+d none /opt/csw/nagios/var/rw 2770 nagios nagioscm
+d none /opt/csw/nagios/var/spool/checkresults 0755 nagios nagios
+d none /opt/csw/share/doc/nagios 0755 root bin
+f none /opt/csw/share/doc/nagios/Changelog 0644 root bin
+f none /opt/csw/share/doc/nagios/INSTALLING 0644 root bin
+f none /opt/csw/share/doc/nagios/README 0644 root bin
+f none /opt/csw/share/doc/nagios/UPGRADING 0644 root bin
+i checkinstall=CSWnagios.checkinstall
+i preinstall=CSWnagios.preinstall
+i copyright=CSWnagios.copyright
+i depend=CSWnagios.depend
+i pkginfo=CSWnagios.pkginfo
+i postinstall=CSWnagios.postinstall
+i preremove=CSWnagios.preremove
Added: csw/mgar/pkg/nagios/trunk/files/configure.diff
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/configure.diff (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/configure.diff 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,12 @@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/configure nagios-3.0.6/configure
+--- nagios-3.0.6.orig/configure 2008-12-02 04:48:17.000000000 +0100
++++ nagios-3.0.6/configure 2008-12-16 16:48:29.610038929 +0100
+@@ -5848,7 +5848,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_save_LIBS="$LIBS"
+- LIBS="-lgd $ICONV -lpng -ljpeg -lz -lm $LIBS"
++ LIBS="-lgd $ICONV -lpng -ljpeg -lz -lm -lsunmath $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
Added: csw/mgar/pkg/nagios/trunk/files/doc.diff
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/doc.diff (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/doc.diff 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,24 @@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/Makefile.in nagios-3.0.6/Makefile.in
+--- nagios-3.0.6.orig/Makefile.in 2008-12-25 14:35:24.040581755 +0100
++++ nagios-3.0.6/Makefile.in 2008-12-25 14:31:46.669473752 +0100
+@@ -28,6 +28,7 @@
+ CGIDIR=@sbindir@
+ LIBEXECDIR=@libexecdir@
+ HTMLDIR=@datadir@
++DOCDIR=$(prefix)/../share/doc/nagios
+ INSTALL=@INSTALL@
+ INSTALL_OPTS=
+ COMMAND_OPTS=
+@@ -268,6 +269,12 @@
+ @echo "*** External command directory configured ***"
+ @echo ""
+
++install-docs:
++ $(INSTALL) -m 755 -d $(INSTALL_OPTS) -d $(DESTDIR)$(DOCDIR)
++ $(INSTALL) -m 664 $(INSTALL_OPTS) ./Changelog $(DESTDIR)$(DOCDIR)
++ $(INSTALL) -m 664 $(INSTALL_OPTS) ./INSTALLING $(DESTDIR)$(DOCDIR)
++ $(INSTALL) -m 664 $(INSTALL_OPTS) ./README $(DESTDIR)$(DOCDIR)
++ $(INSTALL) -m 664 $(INSTALL_OPTS) ./UPGRADING $(DESTDIR)$(DOCDIR)
+
+ fullinstall: install install-init install-commandmode install-webconf
+
Added: csw/mgar/pkg/nagios/trunk/files/install-opts.diff
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/install-opts.diff (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/install-opts.diff 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,90 @@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/Makefile.in nagios-3.0.6/Makefile.in
+--- nagios-3.0.6.orig/Makefile.in 2008-12-18 21:34:10.373532942 +0100
++++ nagios-3.0.6/Makefile.in 2008-12-18 21:33:53.350125017 +0100
+@@ -29,11 +29,11 @@
+ LIBEXECDIR=@libexecdir@
+ HTMLDIR=@datadir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
+-COMMAND_OPTS=@COMMAND_OPTS@
++INSTALL_OPTS=
++COMMAND_OPTS=
+ HTTPD_CONF=@HTTPD_CONF@
+ INIT_DIR=@init_dir@
+-INIT_OPTS=-o root -g root
++INIT_OPTS=
+ CGICFGDIR=$(CGIDIR)
+ PERLDIR=@PERLDIR@
+
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/base/Makefile.in nagios-3.0.6/base/Makefile.in
+--- nagios-3.0.6.orig/base/Makefile.in 2008-02-28 20:25:45.000000000 +0100
++++ nagios-3.0.6/base/Makefile.in 2008-12-18 21:33:44.879394311 +0100
+@@ -39,7 +39,7 @@
+ CGIDIR=@sbindir@
+ HTMLDIR=@datadir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+ COMMAND_OPTS=@COMMAND_OPTS@
+ STRIP=@STRIP@
+
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/cgi/Makefile.in nagios-3.0.6/cgi/Makefile.in
+--- nagios-3.0.6.orig/cgi/Makefile.in 2008-11-02 18:32:03.000000000 +0100
++++ nagios-3.0.6/cgi/Makefile.in 2008-12-18 21:33:44.881180126 +0100
+@@ -18,7 +18,7 @@
+ CGIDIR=@sbindir@
+ HTMLDIR=@datadir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+ COMMAND_OPTS=@COMMAND_OPTS@
+ STRIP=@STRIP@
+
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/common/Makefile.in nagios-3.0.6/common/Makefile.in
+--- nagios-3.0.6.orig/common/Makefile.in 2003-04-10 05:46:01.000000000 +0200
++++ nagios-3.0.6/common/Makefile.in 2008-12-18 21:33:44.882663564 +0100
+@@ -20,7 +20,7 @@
+ CGIDIR=@sbindir@
+ HTMLDIR=@datadir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+ COMMAND_OPTS=@COMMAND_OPTS@
+
+ CP=@CP@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/contrib/Makefile.in nagios-3.0.6/contrib/Makefile.in
+--- nagios-3.0.6.orig/contrib/Makefile.in 2008-05-19 20:01:58.000000000 +0200
++++ nagios-3.0.6/contrib/Makefile.in 2008-12-18 21:33:44.884211256 +0100
+@@ -15,7 +15,7 @@
+ # Generated automatically from configure script
+ SNPRINTF_O=@SNPRINTF_O@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+
+
+ prefix=@prefix@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/html/Makefile.in nagios-3.0.6/html/Makefile.in
+--- nagios-3.0.6.orig/html/Makefile.in 2008-11-02 18:32:03.000000000 +0100
++++ nagios-3.0.6/html/Makefile.in 2008-12-18 21:33:44.885749503 +0100
+@@ -10,7 +10,7 @@
+ CGIDIR=@sbindir@
+ HTMLDIR=@datadir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+ COMMAND_OPTS=@COMMAND_OPTS@
+
+ CP=@CP@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/module/Makefile.in nagios-3.0.6/module/Makefile.in
+--- nagios-3.0.6.orig/module/Makefile.in 2008-12-18 21:34:09.878424799 +0100
++++ nagios-3.0.6/module/Makefile.in 2008-12-18 21:33:44.887184503 +0100
+@@ -19,7 +19,7 @@
+ exec_prefix=@exec_prefix@
+ BINDIR=@bindir@
+ INSTALL=@INSTALL@
+-INSTALL_OPTS=@INSTALL_OPTS@
++INSTALL_OPTS=
+ COMMAND_OPTS=@COMMAND_OPTS@
+ STRIP=@STRIP@
+
Added: csw/mgar/pkg/nagios/trunk/files/nagios
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/nagios (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/nagios 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,171 @@
+#!/bin/sh
+#
+# chkconfig: 345 99 01
+# description: Nagios network monitor
+#
+# File : nagios
+#
+# Author : Jorge Sanchez Aymar (jsanchez at lanchile.cl)
+#
+# Changelog :
+#
+# 1999-07-09 Karl DeBisschop <kdebisschop at infoplease.com>
+# - setup for autoconf
+# - add reload function
+# 1999-08-06 Ethan Galstad <nagios at nagios.org>
+# - Added configuration info for use with RedHat's chkconfig tool
+# per Fran Boon's suggestion
+# 1999-08-13 Jim Popovitch <jimpop at rocketship.com>
+# - added variable for nagios/var directory
+# - cd into nagios/var directory before creating tmp files on startup
+# 1999-08-16 Ethan Galstad <nagios at nagios.org>
+# - Added test for rc.d directory as suggested by Karl DeBisschop
+# 2000-07-23 Karl DeBisschop <kdebisschop at users.sourceforge.net>
+# - Clean out redhat macros and other dependencies
+#
+# Description: Starts and stops the Nagios monitor
+# used to provide network services status.
+#
+# Modified for CSW by Alex Moore 2006-02-27
+
+
+status_nagios ()
+{
+
+ if test ! -f $NagiosRun; then
+ echo "No lock file found in $NagiosRun"
+ return 1
+ fi
+
+ NagiosPID=`head -n 1 $NagiosRun`
+ if test -x $NagiosCGI/daemonchk.cgi; then
+ if $NagiosCGI/daemonchk.cgi -l $NagiosRun; then
+ return 0
+ else
+ return 1
+ fi
+ else
+ if ps -p $NagiosPID; then
+ return 0
+ else
+ return 1
+ fi
+ fi
+
+ return 1
+}
+
+
+killproc_nagios ()
+{
+
+ if [ ! -f $NagiosRun ]; then
+ echo "No lock file found in $NagiosRun"
+ return 1
+ fi
+
+ NagiosPID=`head -n 1 $NagiosRun`
+ kill $2 $NagiosPID
+}
+
+
+# Source function library
+# Solaris doesn't have an rc.d directory, so do a test first
+if [ -f /etc/rc.d/init.d/functions ]; then
+ . /etc/rc.d/init.d/functions
+elif [ -f /etc/init.d/functions ]; then
+ . /etc/init.d/functions
+fi
+
+prefix=/opt/csw/nagios
+exec_prefix=${prefix}
+NagiosBin=${exec_prefix}/bin/nagios
+NagiosCfg=${prefix}/etc/nagios.cfg
+NagiosLog=${prefix}/var/status.log
+NagiosTmp=${prefix}/var/nagios.tmp
+NagiosSav=${prefix}/var/status.sav
+NagiosCmd=${prefix}/var/rw/nagios.cmd
+NagiosVar=${prefix}/var
+NagiosRun=${prefix}/var/nagios.lock
+NagiosLckDir=/var/lock/subsys
+NagiosLckFile=nagios
+NagiosCGI=${exec_prefix}/sbin
+Nagios=nagios
+
+
+# Check that nagios exists.
+test -f $NagiosBin || exit 0
+
+# Check that nagios.cfg exists.
+test -f $NagiosCfg || exit 0
+
+# See how we were called.
+case "$1" in
+
+ start)
+ echo "Starting network monitor: nagios"
+ su - $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"
+ rm -f $NagiosCmd
+ $NagiosBin -d $NagiosCfg
+ if [ -d $NagiosLckDir ]; then touch $NagiosLckDir/$NagiosLckFile; fi
+ sleep 1
+ status_nagios nagios
+ ;;
+
+ stop)
+ echo "Stopping network monitor: nagios"
+ killproc_nagios nagios
+ rm -f $NagiosLog $NagiosTmp $NagiosRun $NagiosLckDir/$NagiosLckFile $NagiosCmd
+ ;;
+
+ status)
+ status_nagios nagios
+ ;;
+
+ restart)
+ printf "Running configuration check..."
+ $NagiosBin -v $NagiosCfg > /dev/null 2>&1;
+ if [ $? -eq 0 ]; then
+ echo "done"
+ $0 stop
+ $0 start
+ else
+ $NagiosBin -v $NagiosCfg
+ echo "failed - aborting restart."
+ exit 1
+ fi
+ ;;
+
+ reload|force-reload)
+ printf "Running configuration check..."
+ $NagiosBin -v $NagiosCfg > /dev/null 2>&1;
+ if [ $? -eq 0 ]; then
+ echo "done"
+ if test ! -f $NagiosRun; then
+ $0 start
+ else
+ NagiosPID=`head -n 1 $NagiosRun`
+ if status_nagios > /dev/null; then
+ printf "Reloading nagios configuration..."
+ killproc_nagios nagios -HUP
+ echo "done"
+ else
+ $0 stop
+ $0 start
+ fi
+ fi
+ else
+ $NagiosBin -v $NagiosCfg
+ echo "failed - aborting reload."
+ exit 1
+ fi
+ ;;
+
+ *)
+ echo "Usage: nagios {start|stop|restart|reload|force-reload|status}"
+ exit 1
+ ;;
+
+esac
+
+# End of this script
Added: csw/mgar/pkg/nagios/trunk/files/nagios.xml
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/nagios.xml (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/nagios.xml 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,89 @@
+<?xml version='1.0'?>
+ <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
+<!--
+
+ Alex Moore 01/06
+ Service manifest for nagios
+ -->
+
+ <service_bundle type='manifest' name='CSWnagios:nagios'>
+
+ <service
+ name='application/cswnagios'
+ type='service'
+ version='1'>
+
+ <create_default_instance enabled='false' />
+
+ <single_instance />
+
+ <dependency name='filesystem'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/filesystem/local' />
+ </dependency>
+
+ <dependency
+ name='config-file'
+ grouping='require_any'
+ restart_on='refresh'
+ type='path'>
+ <service_fmri
+ value='file://localhost/opt/csw/nagios/etc/nagios.cfg' />
+ </dependency>
+
+
+ <dependency name='net'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/network/loopback' />
+ </dependency>
+
+ <dependency name='network'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/network/service' />
+ </dependency>
+
+ <dependency name='syslog'
+ grouping='optional_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/system-log' />
+ </dependency>
+
+ <dependent
+ name='cswnagios_multi-user'
+ grouping='optional_all'
+ restart_on='none'>
+ <service_fmri
+ value='svc:/milestone/multi-user' />
+ </dependent>
+
+ <exec_method
+ type='method'
+ name='start'
+ exec='/opt/csw/lib/svc/method/svc-nagios start'
+ timeout_seconds='30'>
+ </exec_method>
+
+ <exec_method
+ type='method'
+ name='stop'
+ exec='/opt/csw/lib/svc/method/svc-nagios stop'
+ timeout_seconds='60'>
+ </exec_method>
+
+ <exec_method
+ type='method'
+ name='restart'
+ exec='/opt/csw/lib/svc/method/svc-nagios restart'
+ timeout_seconds='60'>
+ </exec_method>
+
+ </service>
+
+ </service_bundle>
Added: csw/mgar/pkg/nagios/trunk/files/patch.diff
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/patch.diff (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/patch.diff 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,45 @@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/cgi/cmd.c nagios-3.0.6/cgi/cmd.c
+--- nagios-3.0.6.orig/cgi/cmd.c 2008-11-30 18:22:58.000000000 +0100
++++ nagios-3.0.6/cgi/cmd.c 2008-12-16 14:01:20.459641641 +0100
+@@ -1885,7 +1885,7 @@
+ return;
+ }
+
+-__attribute__((format(printf, 2, 3)))
++/* __attribute__((format(printf, 2, 3))) */
+ static int cmd_submitf(int id, const char *fmt, ...)
+ {
+ char cmd[MAX_EXTERNAL_COMMAND_LENGTH];
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/include/nebmodules.h nagios-3.0.6/include/nebmodules.h
+--- nagios-3.0.6.orig/include/nebmodules.h 2008-11-30 18:22:59.000000000 +0100
++++ nagios-3.0.6/include/nebmodules.h 2008-12-16 14:02:22.859426641 +0100
+@@ -31,7 +31,7 @@
+
+ /***** MODULE VERSION INFORMATION *****/
+
+-#define NEB_API_VERSION(x) int __neb_api_version = x;
++#define NEB_API_VERSION(x) int __neb_api_version = x
+ #define CURRENT_NEB_API_VERSION 3
+
+
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/module/Makefile.in nagios-3.0.6/module/Makefile.in
+--- nagios-3.0.6.orig/module/Makefile.in 2007-12-15 00:02:24.000000000 +0100
++++ nagios-3.0.6/module/Makefile.in 2008-12-16 14:01:52.009192953 +0100
+@@ -25,13 +25,13 @@
+
+ CP=@CP@
+
+-all: helloworld.o
++all: helloworld
+
+-helloworld.o: helloworld.c
+- $(CC) $(MOD_CFLAGS) $(CFLAGS) -o helloworld.o helloworld.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS)
++helloworld: helloworld.c
++ $(CC) $(MOD_CFLAGS) $(CFLAGS) -o helloworld helloworld.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS)
+
+ clean:
+- rm -f helloworld.o
++ rm -f helloworld
+ rm -f core *.o
+ rm -f *~ *.*~
+
Added: csw/mgar/pkg/nagios/trunk/files/svc-nagios
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/svc-nagios (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/svc-nagios 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,172 @@
+#!/bin/sh
+#
+# chkconfig: 345 99 01
+# description: Nagios network monitor
+#
+# File : nagios
+#
+# Author : Jorge Sanchez Aymar (jsanchez at lanchile.cl)
+#
+# Changelog :
+#
+# 1999-07-09 Karl DeBisschop <kdebisschop at infoplease.com>
+# - setup for autoconf
+# - add reload function
+# 1999-08-06 Ethan Galstad <nagios at nagios.org>
+# - Added configuration info for use with RedHat's chkconfig tool
+# per Fran Boon's suggestion
+# 1999-08-13 Jim Popovitch <jimpop at rocketship.com>
+# - added variable for nagios/var directory
+# - cd into nagios/var directory before creating tmp files on startup
+# 1999-08-16 Ethan Galstad <nagios at nagios.org>
+# - Added test for rc.d directory as suggested by Karl DeBisschop
+# 2000-07-23 Karl DeBisschop <kdebisschop at users.sourceforge.net>
+# - Clean out redhat macros and other dependencies
+#
+# Description: Starts and stops the Nagios monitor
+# used to provide network services status.
+#
+# Modified for CSW by Alex Moore 2006-02-27
+
+. /lib/svc/share/smf_include.sh
+
+status_nagios ()
+{
+
+ if test ! -f $NagiosRun; then
+ echo "No lock file found in $NagiosRun"
+ return 1
+ fi
+
+ NagiosPID=`head -n 1 $NagiosRun`
+ if test -x $NagiosCGI/daemonchk.cgi; then
+ if $NagiosCGI/daemonchk.cgi -l $NagiosRun; then
+ return 0
+ else
+ return 1
+ fi
+ else
+ if ps -p $NagiosPID; then
+ return 0
+ else
+ return 1
+ fi
+ fi
+
+ return 1
+}
+
+
+killproc_nagios ()
+{
+
+ if [ ! -f $NagiosRun ]; then
+ echo "No lock file found in $NagiosRun"
+ return 1
+ fi
+
+ NagiosPID=`head -n 1 $NagiosRun`
+ kill $2 $NagiosPID
+}
+
+
+# Source function library
+# Solaris doesn't have an rc.d directory, so do a test first
+if [ -f /etc/rc.d/init.d/functions ]; then
+ . /etc/rc.d/init.d/functions
+elif [ -f /etc/init.d/functions ]; then
+ . /etc/init.d/functions
+fi
+
+prefix=/opt/csw/nagios
+exec_prefix=${prefix}
+NagiosBin=${exec_prefix}/bin/nagios
+NagiosCfg=${prefix}/etc/nagios.cfg
+NagiosLog=${prefix}/var/status.log
+NagiosTmp=${prefix}/var/nagios.tmp
+NagiosSav=${prefix}/var/status.sav
+NagiosCmd=${prefix}/var/rw/nagios.cmd
+NagiosVar=${prefix}/var
+NagiosRun=${prefix}/var/nagios.lock
+NagiosLckDir=/var/lock/subsys
+NagiosLckFile=nagios
+NagiosCGI=${exec_prefix}/sbin
+Nagios=nagios
+
+
+# Check that nagios exists.
+test -f $NagiosBin || exit 0
+
+# Check that nagios.cfg exists.
+test -f $NagiosCfg || exit 0
+
+# See how we were called.
+case "$1" in
+
+ start)
+ echo "Starting network monitor: nagios"
+ su - $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"
+ rm -f $NagiosCmd
+ $NagiosBin -d $NagiosCfg
+ if [ -d $NagiosLckDir ]; then touch $NagiosLckDir/$NagiosLckFile; fi
+ sleep 1
+ status_nagios nagios
+ ;;
+
+ stop)
+ echo "Stopping network monitor: nagios"
+ killproc_nagios nagios
+ rm -f $NagiosLog $NagiosTmp $NagiosRun $NagiosLckDir/$NagiosLckFile $NagiosCmd
+ ;;
+
+ status)
+ status_nagios nagios
+ ;;
+
+ restart)
+ printf "Running configuration check..."
+ $NagiosBin -v $NagiosCfg > /dev/null 2>&1;
+ if [ $? -eq 0 ]; then
+ echo "done"
+ $0 stop
+ $0 start
+ else
+ $NagiosBin -v $NagiosCfg
+ echo "failed - aborting restart."
+ exit 1
+ fi
+ ;;
+
+ reload|force-reload)
+ printf "Running configuration check..."
+ $NagiosBin -v $NagiosCfg > /dev/null 2>&1;
+ if [ $? -eq 0 ]; then
+ echo "done"
+ if test ! -f $NagiosRun; then
+ $0 start
+ else
+ NagiosPID=`head -n 1 $NagiosRun`
+ if status_nagios > /dev/null; then
+ printf "Reloading nagios configuration..."
+ killproc_nagios nagios -HUP
+ echo "done"
+ else
+ $0 stop
+ $0 start
+ fi
+ fi
+ else
+ $NagiosBin -v $NagiosCfg
+ echo "failed - aborting reload."
+ exit 1
+ fi
+ ;;
+
+ *)
+ echo "Usage: nagios {start|stop|restart|reload|force-reload|status}"
+ exit 1
+ ;;
+
+esac
+
+# End of this script
Added: csw/mgar/pkg/nagios/trunk/files/webconf.diff
===================================================================
--- csw/mgar/pkg/nagios/trunk/files/webconf.diff (rev 0)
+++ csw/mgar/pkg/nagios/trunk/files/webconf.diff 2009-02-16 14:09:01 UTC (rev 3120)
@@ -0,0 +1,12 @@
+diff --speed-large-files --minimal -Nru nagios-3.0.6.orig/Makefile.in nagios-3.0.6/Makefile.in
+--- nagios-3.0.6.orig/Makefile.in 2008-12-19 08:48:37.252900900 +0100
++++ nagios-3.0.6/Makefile.in 2008-12-19 08:48:20.644359694 +0100
+@@ -243,7 +243,7 @@
+ @echo ""
+
+ install-webconf:
+- $(INSTALL) -m 644 sample-config/httpd.conf $(DESTDIR)$(HTTPD_CONF)/nagios.conf
++ $(INSTALL) -m 644 sample-config/httpd.conf $(DESTDIR)$(HTTPD_CONF)/httpd-nagios.conf
+
+ @echo ""
+ @echo "*** Nagios/Apache conf file installed ***"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list