--- /dev/null
+# WITHOUT SSL
+<IfModule !mod_ssl.c>
+ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
+<Directory /usr/lib/nagios/cgi/>
+ Options ExecCGI
+ order deny,allow
+ deny from all
+ allow from 127.0.0.1
+</Directory>
+
+Alias /nagios/ /usr/share/nagios/
+<Directory /usr/share/nagios/>
+ Options None
+ order deny,allow
+ deny from all
+ allow from 127.0.0.1
+</Directory>
+</IfModule>
+
+# WITH SSL ENABLED
+<IfModule mod_ssl.c>
+ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
+<Directory /usr/lib/nagios/cgi/>
+ Options ExecCGI
+ SSLRequireSSL
+ order deny,allow
+ deny from all
+ AuthType Basic
+ AuthUserFile /etc/nagios/passwd
+ AuthGroupFile /etc/nagios/group
+ AuthName "nagios"
+ require group nagios
+ Satisfy Any
+</Directory>
+
+Alias /nagios/ /usr/share/nagios/
+<Directory /usr/share/nagios/>
+ Options None
+ SSLRequireSSL
+ order deny,allow
+ deny from all
+ AuthType Basic
+ AuthUserFile /etc/nagios/passwd
+ AuthGroupFile /etc/nagios/group
+ AuthName "nagios"
+ require group nagios
+ Satisfy Any
+</Directory>
+</IfModule>
--- /dev/null
+diff -Nur netsaint-0.0.7b7.orig/xdata/xcddb.c netsaint-0.0.7b7/xdata/xcddb.c
+--- netsaint-0.0.7b7.orig/xdata/xcddb.c Tue Aug 7 03:36:50 2001
++++ netsaint-0.0.7b7/xdata/xcddb.c Fri Dec 14 13:29:04 2001
+@@ -51,7 +51,7 @@
+ #endif
+
+ #ifdef USE_XCDPGSQL
+-#include <pgsql/libpq-fe.h>
++#include <libpq-fe.h>
+ #endif
+
+
+diff -Nur netsaint-0.0.7b7.orig/xdata/xeddb.c netsaint-0.0.7b7/xdata/xeddb.c
+--- netsaint-0.0.7b7.orig/xdata/xeddb.c Sat Aug 4 22:35:40 2001
++++ netsaint-0.0.7b7/xdata/xeddb.c Fri Dec 14 13:29:09 2001
+@@ -44,7 +44,7 @@
+ #endif
+
+ #ifdef USE_XEDPGSQL
+-#include <pgsql/libpq-fe.h>
++#include <libpq-fe.h>
+ #endif
+
+
+diff -Nur netsaint-0.0.7b7.orig/xdata/xrddb.c netsaint-0.0.7b7/xdata/xrddb.c
+--- netsaint-0.0.7b7.orig/xdata/xrddb.c Sat Aug 4 22:35:40 2001
++++ netsaint-0.0.7b7/xdata/xrddb.c Fri Dec 14 13:29:14 2001
+@@ -43,7 +43,7 @@
+ #endif
+
+ #ifdef USE_XRDPGSQL
+-#include <pgsql/libpq-fe.h>
++#include <libpq-fe.h>
+ #endif
+
+
+diff -Nur netsaint-0.0.7b7.orig/xdata/xsddb.c netsaint-0.0.7b7/xdata/xsddb.c
+--- netsaint-0.0.7b7.orig/xdata/xsddb.c Sat Aug 4 22:35:40 2001
++++ netsaint-0.0.7b7/xdata/xsddb.c Fri Dec 14 13:29:46 2001
+@@ -48,7 +48,7 @@
+ #endif
+
+ #ifdef USE_XSDPGSQL
+-#include <pgsql/libpq-fe.h>
++#include <libpq-fe.h>
+ #endif
+
+
--- /dev/null
+#!/bin/sh
+#
+# nagios Host/service/network monitoring daemon
+#
+# chkconfig: 345 50 50
+# description: Host/service/network monitoring daemon which uses snort as NIDS
+#
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/sysconfig/nagios ] && . /etc/sysconfig/nagios
+
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+ if [ ! -f /var/lock/subsys/network ]; then
+ # nls "ERROR: Networking is down. %s can't be run." <service>
+ msg_network_down nagios
+ exit 1
+ fi
+else
+ exit 0
+fi
+
+# See how we were called.
+case "$1" in
+ start)
+ # Check if the service is already running?
+ if [ ! -f /var/lock/subsys/nagios ]; then
+ msg_starting nagios
+ # remove stale cmd pipe (or nagios won't start if it exists)
+ rm -f /var/log/nagios/rw/nagios.cmd
+ daemon nagios -d /etc/nagios/nagios.cfg </dev/null
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nagios
+ chgrp http /var/lib/nagios/rw/nagios.cmd
+ else
+ msg_already_running nagios
+ exit 1
+ fi
+ ;;
+ stop)
+ # Stop daemons.
+ if [ -f /var/lock/subsys/nagios ]; then
+ msg_stopping nagios
+ killproc nagios -TERM
+ rm -f /var/lock/subsys/nagios > /dev/null 2>&1
+ else
+ msg_not_running nagios
+ exit 1
+ fi
+ ;;
+ status)
+ status nagios
+ RETVAL=$?
+ ;;
+ restart|reload)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ msg_usage "$0 {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
+exit $RETVAL
+