--- nagios2-2.5.orig/debian/apache2.conf
+++ nagios2-2.5/debian/apache2.conf
@@ -0,0 +1,48 @@
+# apache configuration for nagios 2.x
+# note to users of nagios 1.x:
+# throughout this file are commented out sections which preserve
+# backwards compatibility with bookmarks/config for nagios 1.x. simply
+# look for lines following "nagios 1.x:" comments.
+
+ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios2
+ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios2
+# nagios 1.x:
+#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios2
+#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios2
+
+# Where the HTML pages live
+Alias /nagios2 /usr/share/nagios2/htdocs
+# nagios 1.x:
+#Alias /nagios /usr/share/nagios2/htdocs
+
+
+ Options FollowSymLinks
+
+ DirectoryIndex index.html
+
+ AllowOverride AuthConfig
+ Order Allow,Deny
+ Allow From All
+
+ AuthName "Nagios Access"
+ AuthType Basic
+ AuthUserFile /etc/nagios2/htpasswd.users
+ # nagios 1.x:
+ #AuthUserFile /etc/nagios/htpasswd.users
+ require valid-user
+
+
+# Where the stylesheets (config files) reside
+#Alias /nagios2/stylesheets /etc/nagios2/stylesheets
+# nagios 1.x:
+#Alias /nagios/stylesheets /etc/nagios2/stylesheets
+
+# Enable this ScriptAlias if you want to enable the grouplist patch.
+# See http://apan.sourceforge.net/download.html for more info
+# It allows you to see a clickable list of all hostgroups in the
+# left pane of the Nagios web interface
+# XXX This is not tested for nagios 2.x use at your own peril
+#ScriptAlias /nagios2/side.html /usr/lib/cgi-bin/nagios2/grouplist.cgi
+# nagios 1.x:
+#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios2/grouplist.cgi
+
--- nagios2-2.5.orig/debian/control
+++ nagios2-2.5/debian/control
@@ -0,0 +1,125 @@
+Source: nagios2
+Section: net
+Priority: optional
+Maintainer: Debian Nagios Maintainer Group
+Uploaders: sean finney , Marc Haber , Joerg Jaspert
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), dpatch (>= 2.0.10), po-debconf, libperl-dev, libpng12-dev, libgd2-noxpm-dev (>= 2.0.1) | libgd2-xpm-dev (>= 2.0.1), iputils-ping, autotools-dev
+
+Package: nagios2-common
+Architecture: all
+Depends: nagios-plugins-basic, nagios2-doc, coreutils (>= 4.5.3), apache2 | httpd, mailx, adduser, lsb-base (>= 3.0-3), ucf, ${misc:Depends}, ${perl:Depends}
+Recommends: nagios-plugins, nagios-images (>> 0.1)
+Description: support files for nagios2
+ Nagios is a monitoring and management system for hosts, services and
+ networks. nagios2-common contains the common files for the nagios2 package.
+ .
+ Nagios' features include:
+ .
+ o Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP,
+ PING, etc.)
+ o Plugin interface to allow for user-developed service checks
+ o Contact notifications when problems occur and get resolved (via email,
+ pager, or user-defined method)
+ o Ability to define event handlers to be run during service or host events
+ (for proactive problem resolution)
+ o Web output (current status, notifications, problem history, log file, etc.)
+ .
+ Nagios is designed to be easy to understand and modify to fit your own needs.
+ .
+ This package is the new version 2.x series of nagios, which will eventually
+ replace the 1.x versions.
+ .
+ Nagios is a replacement of the Netsaint project. It accepts and uses the
+ previous Netsaint modules transparently.
+ .
+ Upstream URL: http://www.nagios.org/
+
+Package: nagios2
+Architecture: any
+Depends: ${shlibs:Depends}, nagios2-common (= ${source:Version}), ${perl:Depends}
+Suggests: nagios-nrpe-plugin
+Description: A host/service/network monitoring and management system
+ Nagios is a monitoring and management system for hosts, services and
+ networks.
+ .
+ Nagios' features include:
+ .
+ o Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP,
+ PING, etc.)
+ o Plugin interface to allow for user-developed service checks
+ o Contact notifications when problems occur and get resolved (via email,
+ pager, or user-defined method)
+ o Ability to define event handlers to be run during service or host events
+ (for proactive problem resolution)
+ o Web output (current status, notifications, problem history, log file, etc.)
+ .
+ Nagios was written in C and is designed to be easy to understand and modify
+ to fit your own needs.
+ .
+ This package is the new version 2.x series of nagios, which will eventually
+ replace the 1.x versions.
+ .
+ Nagios is a replacement of the Netsaint project. It accepts and uses the
+ previous Netsaint modules transparently.
+ .
+ Upstream URL: http://www.nagios.org/
+
+Package: nagios2-doc
+Section: doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${perl:Depends}
+Description: documentation for nagios2
+ Nagios is a monitoring and management system for hosts, services and
+ networks.
+ .
+ Nagios' features include:
+ .
+ o Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP,
+ PING, etc.)
+ o Plugin interface to allow for user-developed service checks
+ o Contact notifications when problems occur and get resolved (via email,
+ pager, or user-defined method)
+ o Ability to define event handlers to be run during service or host events
+ (for proactive problem resolution)
+ o Web output (current status, notifications, problem history, log file, etc.)
+ .
+ Nagios was written in C and is designed to be easy to understand and modify
+ to fit your own needs.
+ .
+ This package is the new version 2.x series of nagios, which will eventually
+ replace the 1.x versions.
+ .
+ Nagios is a replacement of the Netsaint project. It accepts and uses the
+ previous Netsaint modules transparently.
+ .
+ Upstream URL: http://www.nagios.org/
+
+Package: nagios2-dbg
+Priority: extra
+Architecture: any
+Depends: nagios2 (= ${binary:Version}), ${perl:Depends}
+Description: debugging symbols for nagios2
+ Nagios is a monitoring and management system for hosts, services and
+ networks.
+ .
+ Nagios' features include:
+ .
+ o Monitoring of network services (via TCP port, SMTP, POP3, HTTP, NNTP,
+ PING, etc.)
+ o Plugin interface to allow for user-developed service checks
+ o Contact notifications when problems occur and get resolved (via email,
+ pager, or user-defined method)
+ o Ability to define event handlers to be run during service or host events
+ (for proactive problem resolution)
+ o Web output (current status, notifications, problem history, log file, etc.)
+ .
+ Nagios was written in C and is designed to be easy to understand and modify
+ to fit your own needs.
+ .
+ This package contains gdb debugging symbols for the nagios2 binaries.
+ .
+ Nagios is a replacement of the Netsaint project. It accepts and uses the
+ previous Netsaint modules transparently.
+ .
+ Upstream URL: http://www.nagios.org/
--- nagios2-2.5.orig/debian/cfg-misccommands.cfg.diff
+++ nagios2-2.5/debian/cfg-misccommands.cfg.diff
@@ -0,0 +1,80 @@
+--- sample-config/template-object/misccommands.cfg 2006-03-31 11:43:30.000000000 +0000
++++ debian-configs/misccommands.cfg 2006-03-31 11:40:10.000000000 +0000
+@@ -1,12 +1,5 @@
+ ################################################################################
+-# Sample object config file for Nagios
+-#
+-# Read the documentation for more information on this configuration file. I've
+-# provided some comments here, but things may not be so clear without further
+-# explanation, so make sure to read the HTML documentation!
+-#
+-# Last Modified: 12-17-2005
+-#
++# Object config file for Nagios
+ ################################################################################
+
+
+@@ -38,10 +31,7 @@
+
+ ################################################################################
+ #
+-# SAMPLE NOTIFICATION COMMANDS
+-#
+-# These are some example notification commands. They may or may not work on
+-# your system without modification.
++# NOTIFICATION COMMANDS
+ #
+ ################################################################################
+
+@@ -49,9 +39,25 @@
+ # 'host-notify-by-email' command definition
+ define command{
+ command_name host-notify-by-email
+- command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
++ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$\nState: $HOSTSTATE$ for $HOSTDURATION$\nAddress: $HOSTADDRESS$\nInfo:\n\n$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $HOSTACKAUTHOR$\nComment: $HOSTACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$ host is $HOSTSTATE$ **" $CONTACTEMAIL$
++ }
++
++# 'notify-by-email' command definition
++define command{
++ command_name notify-by-email
++ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: $SERVICESTATE$ for $SERVICEDURATION$\nAddress: $HOSTADDRESS$\n\nInfo:\n\n$SERVICEOUTPUT$\n\nDate/Time: $LONGDATETIME$\n\nACK by: $SERVICEACKAUTHOR$\nComment: $SERVICEACKCOMMENT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert $NOTIFICATIONNUMBER$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
+ }
+
++#define command{
++# command_name notify-by-email
++# command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
++# }
++
++#define command{
++# command_name host-notify-by-email
++# command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
++# }
++
+
+ # 'host-notify-by-epager' command definition
+ define command{
+@@ -59,12 +65,6 @@
+ command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
+ }
+
+-# 'notify-by-email' command definition
+-define command{
+- command_name notify-by-email
+- command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
+- }
+-
+
+ # 'notify-by-epager' command definition
+ define command{
+@@ -78,9 +78,9 @@
+
+ ################################################################################
+ #
+-# SAMPLE PERFORMANCE DATA COMMANDS
++# PERFORMANCE DATA COMMANDS
+ #
+-# These are sample performance data commands that can be used to send performance
++# These are performance data commands that are be used to send performance
+ # data output to two text files (one for hosts, another for services). If you
+ # plan on simply writing performance data out to a file, consider using the
+ # host_perfdata_file and service_perfdata_file options in the main config file.
--- nagios2-2.5.orig/debian/patches/00list
+++ nagios2-2.5/debian/patches/00list
@@ -0,0 +1,2 @@
+10_p1_pl_shebang.dpatch
+20_submit_check_result_386152.dpatch
--- nagios2-2.5.orig/debian/patches/10_p1_pl_shebang.dpatch
+++ nagios2-2.5/debian/patches/10_p1_pl_shebang.dpatch
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_p1_pl_shebang.dpatch by Marc Haber
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/p1.pl trunk/p1.pl
+--- trunk~/p1.pl 2006-03-21 23:32:46.000000000 +0000
++++ trunk/p1.pl 2006-06-26 13:55:35.000000000 +0000
+@@ -1,3 +1,5 @@
++#!/usr/bin/perl
++
+ package Embed::Persistent;
+
+ # p1.pl for Nagios 2.0
--- nagios2-2.5.orig/debian/patches/20_submit_check_result_386152.dpatch
+++ nagios2-2.5/debian/patches/20_submit_check_result_386152.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_submit_check_result_386152.dpatch by Marc Haber
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix wrong path in contrib/eventhandlers/submit_check_result
+
+@DPATCH@
+diff -urNad nagios2~/contrib/eventhandlers/submit_check_result nagios2/contrib/eventhandlers/submit_check_result
+--- nagios2~/contrib/eventhandlers/submit_check_result 2002-02-26 05:03:37.000000000 +0100
++++ nagios2/contrib/eventhandlers/submit_check_result 2006-09-09 16:43:53.945631182 +0200
+@@ -24,7 +24,7 @@
+
+ echocmd="/bin/echo"
+
+-CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
++CommandFile="/var/lib/nagios2/rw/nagios.cmd"
+
+ # get the current date/time in seconds since UNIX epoch
+ datetime=`date +%s`
--- nagios2-2.5.orig/debian/conf.d/timeperiods_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/timeperiods_nagios2.cfg
@@ -0,0 +1,50 @@
+###############################################################################
+# timeperiods.cfg
+###############################################################################
+
+# This defines a timeperiod where all times are valid for checks,
+# notifications, etc. The classic "24x7" support nightmare. :-)
+
+define timeperiod{
+ timeperiod_name 24x7
+ alias 24 Hours A Day, 7 Days A Week
+ sunday 00:00-24:00
+ monday 00:00-24:00
+ tuesday 00:00-24:00
+ wednesday 00:00-24:00
+ thursday 00:00-24:00
+ friday 00:00-24:00
+ saturday 00:00-24:00
+ }
+
+# Here is a slightly friendlier period during work hours
+define timeperiod{
+ timeperiod_name workhours
+ alias Standard Work Hours
+ monday 09:00-17:00
+ tuesday 09:00-17:00
+ wednesday 09:00-17:00
+ thursday 09:00-17:00
+ friday 09:00-17:00
+ }
+
+# The complement of workhours
+define timeperiod{
+ timeperiod_name nonworkhours
+ alias Non-Work Hours
+ sunday 00:00-24:00
+ monday 00:00-09:00,17:00-24:00
+ tuesday 00:00-09:00,17:00-24:00
+ wednesday 00:00-09:00,17:00-24:00
+ thursday 00:00-09:00,17:00-24:00
+ friday 00:00-09:00,17:00-24:00
+ saturday 00:00-24:00
+ }
+
+# This one is a favorite: never :)
+define timeperiod{
+ timeperiod_name never
+ alias Never
+ }
+
+# end of file
--- nagios2-2.5.orig/debian/conf.d/services_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/services_nagios2.cfg
@@ -0,0 +1,23 @@
+# check that web services are running
+define service{
+ hostgroup_name http-servers
+ service_description HTTP
+ check_command check_http
+ use generic-service
+ }
+
+# check that ssh services are running
+define service{
+ hostgroup_name ssh-servers
+ service_description SSH
+ check_command check_ssh
+ use generic-service
+ }
+
+# check that ping-only hosts are up
+define service{
+ hostgroup_name ping-servers
+ service_description PING
+ check_command check_ping!100.0,20%!500.0,60%
+ use generic-service
+ }
--- nagios2-2.5.orig/debian/conf.d/generic-service_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/generic-service_nagios2.cfg
@@ -0,0 +1,26 @@
+# generic service template definition
+define service{
+ name generic-service ; The 'name' of this service template
+ active_checks_enabled 1 ; Active service checks are enabled
+ passive_checks_enabled 1 ; Passive service checks are enabled/accepted
+ parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
+ obsess_over_service 1 ; We should obsess over this service (if necessary)
+ check_freshness 0 ; Default is to NOT check service 'freshness'
+ notifications_enabled 1 ; Service notifications are enabled
+ event_handler_enabled 1 ; Service event handler is enabled
+ flap_detection_enabled 1 ; Flap detection is enabled
+ failure_prediction_enabled 1 ; Failure prediction is enabled
+ process_perf_data 1 ; Process performance data
+ retain_status_information 1 ; Retain status information across program restarts
+ retain_nonstatus_information 1 ; Retain non-status information across program restarts
+ notification_interval 0 ; Only send notifications on status change by default.
+ is_volatile 0
+ check_period 24x7
+ normal_check_interval 5
+ retry_check_interval 1
+ max_check_attempts 4
+ notification_period 24x7
+ notification_options w,u,c,r
+ contact_groups admins
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
+ }
--- nagios2-2.5.orig/debian/conf.d/generic-host_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/generic-host_nagios2.cfg
@@ -0,0 +1,19 @@
+# Generic host definition template - This is NOT a real host, just a template!
+
+define host{
+ name generic-host ; The name of this host template
+ notifications_enabled 1 ; Host notifications are enabled
+ event_handler_enabled 1 ; Host event handler is enabled
+ flap_detection_enabled 1 ; Flap detection is enabled
+ failure_prediction_enabled 1 ; Failure prediction is enabled
+ process_perf_data 1 ; Process performance data
+ retain_status_information 1 ; Retain status information across program restarts
+ retain_nonstatus_information 1 ; Retain non-status information across program restarts
+ check_command check-host-alive
+ max_check_attempts 10
+ notification_interval 0
+ notification_period 24x7
+ notification_options d,u,r
+ contact_groups admins
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
+ }
--- nagios2-2.5.orig/debian/conf.d/localhost_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/localhost_nagios2.cfg
@@ -0,0 +1,59 @@
+# A simple configuration file for monitoring the local host
+# This can serve as an example for configuring other servers;
+# Custom services specific to this host are added here, but services
+# defined in nagios2-common_services.cfg may also apply.
+#
+
+define host{
+ use generic-host ; Name of host template to use
+ host_name localhost
+ alias localhost
+ address 127.0.0.1
+ }
+
+# Define a service to check the disk space of the root partition
+# on the local machine. Warning if < 20% free, critical if
+# < 10% free space on partition.
+
+define service{
+ use generic-service ; Name of service template to use
+ host_name localhost
+ service_description Disk Space
+ check_command check_all_disks!20%!10%
+ }
+
+
+
+# Define a service to check the number of currently logged in
+# users on the local machine. Warning if > 20 users, critical
+# if > 50 users.
+
+define service{
+ use generic-service ; Name of service template to use
+ host_name localhost
+ service_description Current Users
+ check_command check_users!20!50
+ }
+
+
+# Define a service to check the number of currently running procs
+# on the local machine. Warning if > 250 processes, critical if
+# > 400 users.
+
+define service{
+ use generic-service ; Name of service template to use
+ host_name localhost
+ service_description Total Processes
+ check_command check_procs!250!400
+ }
+
+
+
+# Define a service to check the load on the local machine.
+
+define service{
+ use generic-service ; Name of service template to use
+ host_name localhost
+ service_description Current Load
+ check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
+ }
--- nagios2-2.5.orig/debian/conf.d/hostgroups_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/hostgroups_nagios2.cfg
@@ -0,0 +1,38 @@
+# Some generic hostgroup definitions
+
+# A simple wildcard hostgroup
+define hostgroup {
+ hostgroup_name all
+ alias All Servers
+ members *
+ }
+
+# A list of your Debian GNU/Linux servers
+define hostgroup {
+ hostgroup_name debian-servers
+ alias Debian GNU/Linux Servers
+ members localhost
+ }
+
+# A list of your web servers
+define hostgroup {
+ hostgroup_name http-servers
+ alias HTTP servers
+ members localhost
+ }
+
+# A list of your ssh-accessible servers
+define hostgroup {
+ hostgroup_name ssh-servers
+ alias SSH servers
+ members localhost
+ }
+
+# nagios doesn't like monitoring hosts without services, so this is
+# a group for devices that have no other "services" monitorable
+# (like routers w/out snmp for example)
+define hostgroup {
+ hostgroup_name ping-servers
+ alias Pingable servers
+ members gateway
+ }
--- nagios2-2.5.orig/debian/conf.d/extinfo_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/extinfo_nagios2.cfg
@@ -0,0 +1,13 @@
+##
+## Extended Host and Service Information
+##
+
+define hostextinfo{
+ hostgroup_name debian-servers
+ notes Debian GNU/Linux servers
+# notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1
+ icon_image base/debian.png
+ icon_image_alt Debian GNU/Linux
+ vrml_image debian.png
+ statusmap_image debian.gd2
+ }
--- nagios2-2.5.orig/debian/conf.d/contacts_nagios2.cfg
+++ nagios2-2.5/debian/conf.d/contacts_nagios2.cfg
@@ -0,0 +1,46 @@
+###############################################################################
+# contacts.cfg
+###############################################################################
+
+
+
+###############################################################################
+###############################################################################
+#
+# CONTACTS
+#
+###############################################################################
+###############################################################################
+
+# In this simple config file, a single contact will receive all alerts.
+
+define contact{
+ contact_name root
+ alias Root
+ service_notification_period 24x7
+ host_notification_period 24x7
+ service_notification_options w,u,c,r
+ host_notification_options d,r
+ service_notification_commands notify-by-email
+ host_notification_commands host-notify-by-email
+ email root@localhost
+ }
+
+
+
+###############################################################################
+###############################################################################
+#
+# CONTACT GROUPS
+#
+###############################################################################
+###############################################################################
+
+# We only have one contact in this simple configuration file, so there is
+# no need to create more than one contact group.
+
+define contactgroup{
+ contactgroup_name admins
+ alias Nagios Administrators
+ members root
+ }
--- nagios2-2.5.orig/debian/cfg-nagios.cfg.diff
+++ nagios2-2.5/debian/cfg-nagios.cfg.diff
@@ -0,0 +1,135 @@
+--- sample-config/nagios.cfg 2006-02-11 14:06:00.000000000 +0100
++++ debian-configs/nagios.cfg 2006-02-11 14:09:17.000000000 +0100
+@@ -1,12 +1,6 @@
+ ##############################################################################
+ #
+-# NAGIOS.CFG - Sample Main Config File for Nagios
+-#
+-# Read the documentation for more information on this configuration
+-# file. I've provided some comments here, but things may not be so
+-# clear without further explanation.
+-#
+-# Last Modified: 11-23-2005
++# NAGIOS.CFG - Main Config File for Nagios
+ #
+ ##############################################################################
+
+@@ -16,7 +10,7 @@
+ # for historical purposes. This should be the first option specified
+ # in the config file!!!
+
+-log_file=/var/lib/nagios2/nagios.log
++log_file=/var/log/nagios2/nagios.log
+
+
+
+@@ -30,21 +24,33 @@
+ # This can be very useful if you want to keep command definitions
+ # separate from host and contact definitions...
+
++# Debian uses by default a configuration directory where nagios2-common,
++# other packages and the local admin can dump or link configuration
++# files into.
++cfg_dir=/etc/nagios2/conf.d
++
++# We also default to using the check commands defined by the debian
++# nagios-plugins package
++cfg_dir=/etc/nagios-plugins/config
++
+ # Plugin commands (service and host check commands)
+ # Arguments are likely to change between different releases of the
+ # plugins, so you should use the same config file provided with the
+ # plugin release rather than the one provided with Nagios.
++# However, you can always add your own check commands here:
+ cfg_file=/etc/nagios2/checkcommands.cfg
+
+ # Misc commands (notification and event handler commands, etc)
+ cfg_file=/etc/nagios2/misccommands.cfg
+
+-# You can split other types of object definitions across several
+-# config files if you wish (as done here), or keep them all in a
+-# single config file.
++# These other examples are taken from upstream's sample configuration
++# files.
+
+-cfg_file=/etc/nagios2/minimal.cfg
++# You can split other types of object definitions across several
++# config files if you wish, or keep them all in a single config file.
+
++# suggested scheme of splitting definition across several config files,
++# suitable for larger installations.
+ #cfg_file=/etc/nagios2/contactgroups.cfg
+ #cfg_file=/etc/nagios2/contacts.cfg
+ #cfg_file=/etc/nagios2/dependencies.cfg
+@@ -77,7 +83,7 @@
+ # directly) in order to prevent inconsistencies that can occur
+ # when the config files are modified after Nagios starts.
+
+-object_cache_file=/var/lib/nagios2/objects.cache
++object_cache_file=/var/cache/nagios2/objects.cache
+
+
+
+@@ -100,7 +106,7 @@
+ # The contents of the status file are deleted every time Nagios
+ # restarts.
+
+-status_file=/var/lib/nagios2/status.dat
++status_file=/var/cache/nagios2/status.dat
+
+
+
+@@ -193,7 +199,7 @@
+ # is created, used, and deleted throughout the time that Nagios is
+ # running.
+
+-temp_file=/var/lib/nagios2/nagios.tmp
++temp_file=/var/cache/nagios2/nagios.tmp
+
+
+
+@@ -240,7 +246,7 @@
+ # This is the directory where archived (rotated) log files should be
+ # placed (assuming you've chosen to do log rotation).
+
+-log_archive_path=/var/lib/nagios2/archives
++log_archive_path=/var/log/nagios2/archives
+
+
+
+@@ -852,7 +858,7 @@
+ # strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
+ #
+
+-date_format=us
++date_format=iso8601
+
+
+
+@@ -861,7 +867,7 @@
+ # embedded Perl interpreter) is located. If you didn't compile
+ # Nagios with embedded Perl support, this option has no effect.
+
+-p1_file=/usr/sbin/p1.pl
++p1_file=/usr/lib/nagios2/p1.pl
+
+
+
+@@ -925,7 +931,7 @@
+ # you can access this value by using the $ADMINEMAIL$ macro in your
+ # notification commands.
+
+-admin_email=nagios
++admin_email=root
+
+
+
+@@ -935,7 +941,7 @@
+ # value by using the $ADMINPAGER$ macro in your notification
+ # commands.
+
+-admin_pager=pagenagios
++admin_pager=pageroot
+
+
+
--- nagios2-2.5.orig/debian/linda-overrides
+++ nagios2-2.5/debian/linda-overrides
@@ -0,0 +1,2 @@
+Tag: config-too-old
+Data: config\.(guess|sub)
--- nagios2-2.5.orig/debian/nagios2stats.8
+++ nagios2-2.5/debian/nagios2stats.8
@@ -0,0 +1,52 @@
+.TH nagios2stats "8" "February 2006" "sean finney " "nagios"
+.SH NAME
+nagios2stats \- report statistics information from the nagios system
+
+.SH SYNOPSIS
+.B nagios2stats [\-hVL] [\-c config] [\-m] [\-d]
+.br
+.Xc
+
+.SH DESCRIPTION
+.B nagios2stats
+Is a program designed to provide information on the running nagios
+system. It can provide a brief summary of information, or it can
+be used to export specific information about the nagios system
+into an MRTG-compatible format.
+For more information please consult the nagios online documentation
+available at http://www.nagios.org or the documentation available
+with your nagios server's web page.
+
+.SH OPTIONS
+.TP
+\fB\-c\fR|\-\-config=FILE
+The main configuration file. On debian systems this defaults to
+/etc/nagios2/nagios.cfg
+.TP
+\fB\-m\fR|\-\-mrtg
+Print output in MRTG-compatible format. For more details run
+nagios2stats with \-\-help
+.TP
+\fB\-d\fR|\-\-data=VARS
+Comma-seperated list of variables to output in MRTG format. For
+more details run nagios2stats with \-\-help.
+.TP
+\fB\-h\fR|\-\-help
+A helpful usage message
+.TP
+\fB\-V\fR|\-\-version
+Print version information
+.TP
+\fB\-L\fR|\-\-license
+Print license details
+
+.SH FILES
+.TP
+.IP /etc/nagios2
+Default configuration directory for nagios2
+
+.SH AUTHOR
+nagios2 is written and maintained by Ethan Galstad . This
+manual page was written by sean finney for the
+Debian GNU/Linux operating system (but it may be freely used, modified,
+and redistributed by others).
--- nagios2-2.5.orig/debian/nagios2-common.config
+++ nagios2-2.5/debian/nagios2-common.config
@@ -0,0 +1,66 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+# (taken from the webapps-common httpd functions)
+# wc_httpd_installed: test for installed httpds
+# usage:
+# wc_httpd_installed [ httpd1 httpd2 ... ]
+#
+# no arguments implies to test for all servers
+wc_httpd_installed(){
+ local httpds
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=$wc_httpd_supported
+ fi
+ for f in $httpds; do
+ if test -x /usr/sbin/$f; then
+ echo $f
+ fi
+ done
+}
+
+
+# list of installed servers to check for
+default_servers=`wc_httpd_installed apache2 apache apache-ssl apache-perl`
+# convert list to comma seperated list
+server_list=`echo $default_servers | sed -e 's/[[:space:]][[:space:]]*/, /g'`
+
+# if they haven't already been prompted, preseed the server selection
+db_fget nagios2/httpd seen
+if [ "$RET" = "false" ]; then
+ db_set nagios2/httpd $server_list
+fi
+
+db_input medium nagios2/httpd || true
+db_go || true
+db_get nagios2/httpd
+keepgoing="$RET"
+
+if [ "$keepgoing" ]; then
+ db_input medium nagios2/nagios1-in-apacheconf || true
+
+ # the passwords are reset at the end of every postinst run,
+ # however, they are left in the "seen" state so that the
+ # admin is not prompted for them at every upgrade.
+ while [ ! "$passwordsmatch" ]; do
+ db_input medium nagios2/adminpassword || true
+ db_input medium nagios2/adminpassword-repeat || true
+ db_go || true
+ db_get nagios2/adminpassword
+ p1="$RET"
+ db_get nagios2/adminpassword-repeat
+ p2="$RET"
+ if [ "$p1" = "$p2" ]; then
+ passwordsmatch="yes"
+ else
+ db_fset nagios2/adminpassword seen false
+ db_fset nagios2/adminpassword-repeat seen false
+ db_fset nagios2/adminpassword-mismatch seen false
+ db_input critical nagios2/adminpassword-mismatch || true
+ fi
+ done
+fi
+db_go || true
--- nagios2-2.5.orig/debian/nagios2-common.dirs
+++ nagios2-2.5/debian/nagios2-common.dirs
@@ -0,0 +1,10 @@
+etc/init.d
+etc/nagios2
+etc/nagios2/conf.d
+etc/nagios2/stylesheets
+usr/share/nagios2/plugins/eventhandlers
+var/lib/nagios2/rw
+var/log/nagios2/archives
+var/run/nagios2
+var/cache/nagios2
+usr/share/nagios2/debian
--- nagios2-2.5.orig/debian/nagios2-common.links
+++ nagios2-2.5/debian/nagios2-common.links
@@ -0,0 +1 @@
+usr/share/nagios2/htdocs/docs usr/share/doc/nagios2-common/html
--- nagios2-2.5.orig/debian/nagios2.manpages
+++ nagios2-2.5/debian/nagios2.manpages
@@ -0,0 +1,2 @@
+debian/nagios2.8
+debian/nagios2stats.8
--- nagios2-2.5.orig/debian/nagios2.dirs
+++ nagios2-2.5/debian/nagios2.dirs
@@ -0,0 +1,3 @@
+usr/sbin
+usr/lib/cgi-bin/nagios2
+usr/lib/nagios2
--- nagios2-2.5.orig/debian/po/templates.pot
+++ nagios2-2.5/debian/po/templates.pot
@@ -0,0 +1,101 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: pkg-nagios-devel@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2006-08-16 10:11+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: multiselect
+#. Choices
+#: ../nagios2-common.templates:1001
+msgid "apache, apache-ssl, apache2"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Apache servers to configure for nagios2:"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Please select which apache servers should be configured for nagios2."
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid ""
+"If you would prefer to perform configuration manually, leave all servers "
+"unselected."
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid "Nagios web administration password:"
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"Please provide the password to be created with the \"nagiosadmin\" user."
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"This is the username and password you will use to log in to your nagios "
+"installation after configuration is complete. If you do not provide a "
+"password, you will have to configure access to nagios yourself."
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:3001
+msgid "Password confirmation:"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../nagios2-common.templates:4001
+msgid "The passwords do not match"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid "Enable support for nagios 1.x links in nagios2?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"Please choose whether the Apache configuration for nagios2 should provide "
+"compatibility with links from nagios 1.x."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"If you select this option, the apache configuration used for nagios will "
+"include directives to support URLs from nagios 1.x. You should not choose "
+"this option if you still have nagios 1.x on your system, or unpredictable "
+"results may occur."
+msgstr ""
--- nagios2-2.5.orig/debian/po/cs.po
+++ nagios2-2.5/debian/po/cs.po
@@ -0,0 +1,116 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Martin Sin , 2006.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nagios2 2.4-1\n"
+"Report-Msgid-Bugs-To: pkg-nagios-devel@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2006-08-16 10:11+0000\n"
+"PO-Revision-Date: 2006-08-13 17:01+0200\n"
+"Last-Translator: Martin Sin \n"
+"Language-Team: Czech \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: multiselect
+#. Choices
+#: ../nagios2-common.templates:1001
+msgid "apache, apache-ssl, apache2"
+msgstr "apache, apache-ssl, apache2"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Apache servers to configure for nagios2:"
+msgstr "Servery Apache pro nastavení s nagios2:"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Please select which apache servers should be configured for nagios2."
+msgstr "Vyberte prosím, které servery apache nastavit pro použití s nagios2."
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid ""
+"If you would prefer to perform configuration manually, leave all servers "
+"unselected."
+msgstr "Pokud dáváte přednost ruční konfiguraci, nevybírejte žádné servery."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid "Nagios web administration password:"
+msgstr "Heslo webové administrace Nagios:"
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"Please provide the password to be created with the \"nagiosadmin\" user."
+msgstr ""
+"Zadejte prosím heslo použité pro nově vytvořeného uživatele \"nagiosadmin\"."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"This is the username and password you will use to log in to your nagios "
+"installation after configuration is complete. If you do not provide a "
+"password, you will have to configure access to nagios yourself."
+msgstr ""
+"Toto uživatelské jméno a heslo bude po dokončení nastavení použito pro "
+"přihlášení k nagios. Pokud nezadáte heslo, budete muset nastavit přístup k "
+"nagios ručně."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:3001
+msgid "Password confirmation:"
+msgstr "Potvrzení hesla:"
+
+#. Type: note
+#. Description
+#: ../nagios2-common.templates:4001
+msgid "The passwords do not match"
+msgstr "Hesla nesouhlasí"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid "Enable support for nagios 1.x links in nagios2?"
+msgstr "Povolit podporu odkazů nagios 1.x v nagios2?"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"Please choose whether the Apache configuration for nagios2 should provide "
+"compatibility with links from nagios 1.x."
+msgstr ""
+"Vyberte si prosím, zda má konfigurace Apache pro nagios2 poskytovat "
+"kompatibilitu s odkazy z nagios 1.x."
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"If you select this option, the apache configuration used for nagios will "
+"include directives to support URLs from nagios 1.x. You should not choose "
+"this option if you still have nagios 1.x on your system, or unpredictable "
+"results may occur."
+msgstr ""
+"Pokud zvolíte tuto možnost, konfigurace apache použitá pro nagios bude "
+"obsahovat příkazy pro podporu URL adres známých z nagios 1.x. Tuto volbu "
+"byste neměli volit v případě, že máte dosud nainstalován nagios 1.x. Jinak "
+"může dojít k neočekávaným výsledkům."
+
+#~ msgid "apache2"
+#~ msgstr "apache2"
+
+#~ msgid "false"
+#~ msgstr "chybné"
--- nagios2-2.5.orig/debian/po/es.po
+++ nagios2-2.5/debian/po/es.po
@@ -0,0 +1,131 @@
+# nagios2 po-debconf translation to spanish
+# Copyright (C) 2004 Software in the Public Interest
+# This file is distributed under the same license as the nagios2 package.
+#
+# Changes:
+# - Initial translation
+# Rudy Godoy , 2006
+#
+#
+# Traductores, si no conoce el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+# - El proyecto de traducción de Debian al español
+# http://www.debian.org/intl/spanish/coordinacion
+# especialmente las notas de traducción en
+# http://www.debian.org/intl/spanish/notas
+#
+# - La guía de traducción de po's de debconf:
+# /usr/share/doc/po-debconf/README-trans
+# o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nagios2 2.5\n"
+"Report-Msgid-Bugs-To: pkg-nagios-devel@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2006-08-16 10:11+0000\n"
+"PO-Revision-Date: 2006-10-23 23:28-0500\n"
+"Last-Translator: Rudy Godoy \n"
+"Language-Team: Debian Spanish l10n team \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: multiselect
+#. Choices
+#: ../nagios2-common.templates:1001
+msgid "apache, apache-ssl, apache2"
+msgstr "apache, apache-ssl, apache2"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Apache servers to configure for nagios2:"
+msgstr "Servidores apache que se deberían configurar para nagios2:"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Please select which apache servers should be configured for nagios2."
+msgstr "Por favor, seleccione los servidores apache que se deberían configurar para nagios2."
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid ""
+"If you would prefer to perform configuration manually, leave all servers "
+"unselected."
+msgstr "No elija ningún servidor si prefiere realizar la configuración de forma manual."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid "Nagios web administration password:"
+msgstr "Clave de administración web de Nagios"
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"Please provide the password to be created with the \"nagiosadmin\" user."
+msgstr "Por favor, introduzca la contraseña para el nuevo usuario «nagiosadmin»."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"This is the username and password you will use to log in to your nagios "
+"installation after configuration is complete. If you do not provide a "
+"password, you will have to configure access to nagios yourself."
+msgstr ""
+"Estos son el usuario y contraseña que usará para ingresar a su instalación de\n"
+"nagios, después de que termine la configuración. Si no define una contraseña\n"
+"tendrá que configurar nagios de forma manual."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:3001
+msgid "Password confirmation:"
+msgstr "Confirmar clave:"
+
+#. Type: note
+#. Description
+#: ../nagios2-common.templates:4001
+msgid "The passwords do not match"
+msgstr "Las contraseñas no coinciden"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid "Enable support for nagios 1.x links in nagios2?"
+msgstr "¿Desea activar el soporte para enlaces de nagios 1.x en nagios2?"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"Please choose whether the Apache configuration for nagios2 should provide "
+"compatibility with links from nagios 1.x."
+msgstr ""
+"Indique si la configuración de apache para nagios2 debería ser compatible\n"
+"con enlaces de nagios 1.x."
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"If you select this option, the apache configuration used for nagios will "
+"include directives to support URLs from nagios 1.x. You should not choose "
+"this option if you still have nagios 1.x on your system, or unpredictable "
+"results may occur."
+msgstr ""
+"Si elije esta opción, se incluirán las directivas para soporte de URLs\n"
+"de nagios 1.x en la configuración de apache. No debe elegir esta\n"
+"opción si todavía tiene nagios 1.x instalado en su sistema, esto puede\n"
+"producir resultados impredecibles."
--- nagios2-2.5.orig/debian/po/fr.po
+++ nagios2-2.5/debian/po/fr.po
@@ -0,0 +1,123 @@
+# Nagios2
+# Copyright (C) 2006
+# This file is distributed under the same license as the Nagios2 package.
+# Sean Finney, Marc Haber et Joerg Jasper , 2006
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: nagios2_2.4-1\n"
+"Report-Msgid-Bugs-To: pkg-nagios-devel@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2006-08-16 10:11+0000\n"
+"PO-Revision-Date: 2006-06-07 10:58+0100\n"
+"Last-Translator: Steve Petruzzello \n"
+"Language-Team: French \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: French\n"
+"X-Poedit-Country: SWITZERLAND\n"
+"X-Poedit-SourceCharset: iso-8859-15\n"
+
+#. Type: multiselect
+#. Choices
+#: ../nagios2-common.templates:1001
+msgid "apache, apache-ssl, apache2"
+msgstr "Apache, Apache-ssl, Apache2"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Apache servers to configure for nagios2:"
+msgstr "Serveurs Apache configurer pour Nagios2:"
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid "Please select which apache servers should be configured for nagios2."
+msgstr "Veuillez choisir le(s) serveur(s) web configurer pour Nagios2."
+
+#. Type: multiselect
+#. Description
+#: ../nagios2-common.templates:1002
+msgid ""
+"If you would prefer to perform configuration manually, leave all servers "
+"unselected."
+msgstr ""
+"Si vous prfrez configurer vous-mme ce paquet, ne slectionnez aucun "
+"serveur."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid "Nagios web administration password:"
+msgstr "Mot de passe pour l'administration web de Nagios:"
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"Please provide the password to be created with the \"nagiosadmin\" user."
+msgstr ""
+"Veuillez fournir le mot de passe utiliser avec l'utilisateur "
+"nagiosadmin."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:2001
+msgid ""
+"This is the username and password you will use to log in to your nagios "
+"installation after configuration is complete. If you do not provide a "
+"password, you will have to configure access to nagios yourself."
+msgstr ""
+"Il s'agit du nom d'utilisateur et du mot de passe que vous utiliserez pour "
+"vous connecter Nagios une fois que l'installation est termine. Si vous ne "
+"fournissez pas de mot de passe, vous devrez configurer Nagios vous-mme afin "
+"d'y accder."
+
+#. Type: password
+#. Description
+#: ../nagios2-common.templates:3001
+msgid "Password confirmation:"
+msgstr "Confirmation du mot de passe:"
+
+#. Type: note
+#. Description
+#: ../nagios2-common.templates:4001
+msgid "The passwords do not match"
+msgstr "Mots de passe diffrents"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid "Enable support for nagios 1.x links in nagios2?"
+msgstr "Faut-il activer la gestion des liens de Nagios1.x pour Nagios2?"
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"Please choose whether the Apache configuration for nagios2 should provide "
+"compatibility with links from nagios 1.x."
+msgstr ""
+"Veuillez choisir si la configuration d'Apache pour Nagios2 doit permettre la "
+"compatibilit avec les liens de Nagios1.x."
+
+#. Type: boolean
+#. Description
+#: ../nagios2-common.templates:5001
+msgid ""
+"If you select this option, the apache configuration used for nagios will "
+"include directives to support URLs from nagios 1.x. You should not choose "
+"this option if you still have nagios 1.x on your system, or unpredictable "
+"results may occur."
+msgstr ""
+"En choisissant cette option, la configuration d'Apache pour Nagios "
+"contiendra des directives permettant la gestion d'URL depuis Nagios1.x. "
+"Vous ne devriez pas choisir cette option si vous avez encore Nagios1.x sur "
+"votre systme, sinon vous risquez d'avoir des rsultats inattendus."
+
+#~ msgid "apache2"
+#~ msgstr "Apache2"
+
+#~ msgid "false"
+#~ msgstr "Faux"
--- nagios2-2.5.orig/debian/po/POTFILES.in
+++ nagios2-2.5/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] nagios2-common.templates
--- nagios2-2.5.orig/debian/cfg-checkcommands.cfg.diff
+++ nagios2-2.5/debian/cfg-checkcommands.cfg.diff
@@ -0,0 +1,164 @@
+--- sample-config/template-object/checkcommands.cfg 2006-02-05 12:32:34.000000000 +0100
++++ debian-configs/checkcommands.cfg 2006-02-05 12:33:07.000000000 +0100
+@@ -1,12 +1,5 @@
+ ################################################################################
+-# Sample object config file for Nagios
+-#
+-# Read the documentation for more information on this configuration file. I've
+-# provided some comments here, but things may not be so clear without further
+-# explanation, so make sure to read the HTML documentation!
+-#
+-# Last Modified: 12-15-2005
+-#
++# Object config file for Nagios
+ ################################################################################
+
+
+@@ -33,141 +26,20 @@
+ #
+ ################################################################################
+
+-
+-
+-
+ ################################################################################
+ #
+-# SAMPLE SERVICE CHECK COMMANDS
++# SERVICE CHECK COMMANDS
+ #
+-# These are some example service check commands. They may or may not work on
+-# your system, as they must be modified for your plugins. See the HTML
+-# documentation on the plugins for examples of how to configure command definitions.
++# debian installations default to using the command definitions
++# provided by the nagios-plugins, available in /etc/nagios-plugins/config
+ #
+ ################################################################################
+
+-
+-# 'check_dns' command definition
+-define command{
+- command_name check_dns
+- command_line $USER1$/check_dns -H www.yahoo.com -s $HOSTADDRESS$
+- }
+-
+-
+-# 'check_ftp' command definition
+-define command{
+- command_name check_ftp
+- command_line $USER1$/check_ftp -H $HOSTADDRESS$
+- }
+-
+-
+-# 'check_hpjd' command definition
+-define command{
+- command_name check_hpjd
+- command_line $USER1$/check_hpjd -H $HOSTADDRESS$ -C public
+- }
+-
+-
+-# 'check_http' command definition
+-define command{
+- command_name check_http
+- command_line $USER1$/check_http -H $HOSTADDRESS$
+- }
+-
+-
+-# 'check_local_disk' command definition
+-define command{
+- command_name check_local_disk
+- command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
+- }
+-
+-
+-# 'check_local_load' command definition
+-define command{
+- command_name check_local_load
+- command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
+- }
+-
+-
+-# 'check_local_procs' command definition
+-define command{
+- command_name check_local_procs
+- command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
+- }
+-
+-
+-# 'check_local_users' command definition
+-define command{
+- command_name check_local_users
+- command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
+- }
+-
+-
+-# 'check_nntp' command definition
+-define command{
+- command_name check_nntp
+- command_line $USER1$/check_nntp -H $HOSTADDRESS$
+- }
+-
+-
+-# 'check_ping' command definition
+-define command{
+- command_name check_ping
+- command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
+- }
+-
+-
+-# 'check_pop' command definition
+-define command{
+- command_name check_pop
+- command_line $USER1$/check_pop -H $HOSTADDRESS$
+- }
+-
+-
+-# 'check_smtp' command definition
+-define command{
+- command_name check_smtp
+- command_line $USER1$/check_smtp -H $HOSTADDRESS$
+- }
+-
+-
+-# 'check_tcp' command definition
+-define command{
+- command_name check_tcp
+- command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
+- }
+-
+-
+-# 'check_telnet' command definition
+-define command{
+- command_name check_telnet
+- command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 23
+- }
+-
+-
+-# 'check_udp' command definition
+-define command{
+- command_name check_udp
+- command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$
+- }
+-
+-
+-
+-
+ ################################################################################
+ #
+-# SAMPLE HOST CHECK COMMANDS
++# HOST CHECK COMMANDS
++#
++# likewise.
+ #
+ ################################################################################
+
+-
+-# This command checks to see if a host is "alive" by pinging it
+-# The check must result in a 100% packet loss or 5 second (5000ms) round trip
+-# average time to produce a critical error.
+-# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
+-
+-# 'check-host-alive' command definition
+-define command{
+- command_name check-host-alive
+- command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
+- }
--- nagios2-2.5.orig/debian/nagios2-doc.dirs
+++ nagios2-2.5/debian/nagios2-doc.dirs
@@ -0,0 +1 @@
+usr/share/nagios2/htdocs
--- nagios2-2.5.orig/debian/changelog
+++ nagios2-2.5/debian/changelog
@@ -0,0 +1,233 @@
+nagios2 (2.5-3) unstable; urgency=low
+
+ [sean finney]
+ * add explicit DirectoryIndex to apache configuration, thanks to
+ Heiko Schlittermann for suggesting this (closes: #396100).
+ * the previous dpatch for the fixed path in submit_check_result wasn't
+ actually set to apply (closes: #396661). thanks to Richard Nelson
+ for pointing this out again.
+
+ -- sean finney Sat, 04 Nov 2006 16:45:10 +0100
+
+nagios2 (2.5-2) unstable; urgency=low
+
+ [Marc Haber]
+ * Fix wrong path to nagios.cmd in
+ /usr/share/nagios2/plugins/eventhandlers/submit_check_result.
+ Thanks to Richard A Nelson. Closes: #386152
+ * add po-debconf to build-depends
+ * fix Source:version dependencies to make lintian and bin-NMUs happier.
+ * Create pid directory with -p to allow /var/run to not exist.
+ Closes: #390155
+
+ [sean finney]
+ * revert to using nagios2's built-in logrotating features, since
+ using logrotate caused problems (closes: #388473, #395316).
+ * don't unconditionally use ucf in postrm script (closes: #389973).
+ * new spanish debconf translates from Rudy Godoy (closes: #394958).
+
+ -- Marc Haber Sat, 28 Oct 2006 10:13:54 +0000
+
+nagios2 (2.5-1) unstable; urgency=low
+
+ * new upstream version. (mh) Closes: #382431
+ * Now gracefully exits with meaningful log entry if p1.pl is not found.
+ Thanks to Matt Brown. Closes: #368684
+ * -dbg package is extra. Thanks to Joerg Jaspert.
+ * lsb-ize init script. Closes: #377028
+ * Versioned recommends on nagios-images >> 0.1, since n-i 0.2 has
+ symlinks fixing the issue mentioned by Herbert Straub. Closes: #358922.
+ * remove _ from Default: false in boolean template.
+ Thanks to Christian Perrier. (mh) Closes: #371200
+ * Add dh_perl invocation to debian/rules
+ * Add #!/usr/bin/perl to p1.pl to properly generate perl dependency.
+ * make p1.pl executeable to make lintian happy
+ * Fix totally mixed up Section: and Priority: for binary packages.
+ * Add logrotate file
+ * Stop marking the Default fiels as translateable, fix translations.
+ Thanks to Thomas Huriaux.
+ * Fix path to debian.png in example extinfo file.
+ Thanks to Peter Schwindt. Closes: #355552
+ * New French (fr) translation.
+ Thanks to Steve Petruzzello. Closes: #374418
+ * New Czech (cs) translation.
+ Thanks to Martin Šín. Closes: #382924
+
+ -- Marc Haber Wed, 16 Aug 2006 10:11:48 +0000
+
+nagios2 (2.4-1) unstable; urgency=low
+
+ * new upstream version. (mh) Closes: #369801
+ * now use install-unstripped target instead of 10no-strip patch.
+ * remove 20-handle-master-proc-event patch, fixed upstream.
+
+ -- Marc Haber Thu, 1 Jun 2006 17:18:38 +0000
+
+nagios2 (2.3.1-1) unstable; urgency=low
+
+ [Marc Haber]
+ * new upstream version
+ * CVE-2006-2489 was already fixed locally in 2.3-1
+ * remove dpatch
+ * Add nagios2-dbg package
+ * Add 10no-strip patch to keep upstream Makefiles from stripping
+ binaries before we can build the -dbg package.
+ * Fix typos in debian/control
+ * Standards-Version: 3.7.2 (no changes necessary thanks to the
+ cgi-lib policy having been reverted)
+ * Fix short description of nagios2/adminpassword-mismatch to make
+ lintian happy.
+ * Fix upstream syntax error in handle-master-proc-event script
+ * move contrib stuff to /usr/share to avoid having scripts in /usr/lib
+ * README.Debian: fix external command procedure
+
+ [sean finney]
+ * posterity: the previous release 2.3-1 also included a fix for
+ CVE-2006-2489, as we were the ones who discovered it while fixing the
+ previous vulnerability :)
+ * include the needed function from the webapps-common httpd stub inline
+ in the config script, as fresh installations may not have the file
+ available (if using apt instead of dpkg, for example). Closes: #353966.
+ * remove "do not translate" remark and incorporate Christian Perrier's
+ suggested modifications to the debconf templates (closes: #352771).
+
+ -- Marc Haber Mon, 29 May 2006 14:12:44 +0000
+
+nagios2 (2.3-1) unstable; urgency=high
+
+ * new upstream version
+ * Fix nagios2 restart in init script.
+ Thanks to Jim Jensen. (mh) Closes: #360778
+ * Fix /usr/share/doc/nagios2/html symlink.
+ Thanks to Matt Zagrabelny. (mh) Closes: #360998
+ * Create pid file directory dynamically in init script.
+ Thanks to Herbert Straub. (mh) Closes: #361239
+ * Honor locally set file/dir permissions in postinst, fixing policy
+ 10.9.1 compliance. Thanks to Heiko Schlittermann. (mh) Closes: #361956
+
+ [sean finney]
+ * This upstream version addresses a security issue raised in CVE-2006-2162,
+ wrt malcious use of Content-Length headers on cgi scripts. This debian
+ release includes further refinement of this fix
+ (10_CVE-2006-2162_content-length.dpatch)
+ as we believe it's still theoretically possible to exploit the issue
+ via integer overflow. Closes: #366683.
+ * change eventhandlers dir to /usr/lib/nagios2/plugins/eventhandlers,
+ and make sure they're included (closes: #363152).
+ * security release, so urgency bumped.
+
+ -- sean finney Fri, 12 May 2006 15:32:01 +0200
+
+nagios2 (2.2-1) unstable; urgency=low
+
+ * new upstream version
+ * fix wrong permissions on /var/lib/nagios2, 750 prevents web
+ interface from committing external commands
+
+ -- Marc Haber Fri, 21 Apr 2006 11:09:59 +0000
+
+nagios2 (2.1-1) unstable; urgency=low
+
+ * new upstream version
+ * nagios2.prerm: replace "|| exit 0" with "|| true" (see #337664,
+ but we had the offending code in the script verbatim)
+ * move nagios2-doc to section docs
+ * re-work notifications to be slightly more verbose. For example, an
+ acknowledgement notification now actually includes the comment.
+
+ -- Marc Haber Fri, 31 Mar 2006 11:44:49 +0000
+
+nagios2 (2.0-1) unstable; urgency=low
+
+ * First build with upstream's release version
+
+ [sean finney]
+ * cleanup/simplification of http admin username/password handling
+ in maintscripts.
+ * documentation in README.Debian regarding this.
+ * fix in the determining $servers in postinst.
+ * the directory removals in the postrm have been updated to reflect
+ the nagios2 directory layout.
+ * conditionally stop the nagios2 daemon in the nagios2 packages' prerm,
+ for cases where it is being purged before nagios2-common's prerm
+ does so (the latter will not stop it otherwise).
+ * added Joerg Jaspert to the Uploaders field.
+ * fix to httpd configuration to properly detect apache2 processes
+ * remove numeric NNN_ from conffiles in conf.d, since it doesn't
+ affect the order.
+ * change the location of the embedded perl interpreter p1.pl to
+ /usr/lib/nagios2.
+ * a few other misc FHS related path changes.
+ * added support for autodetecting the default route and creating
+ a host object for it (and registering it in a seperate ucf
+ managed file)
+ * a few misc additions/edits to our default configuration.
+ * added manpages for nagios2(8) and nagios2stats(8)
+
+ -- sean finney Sun, 12 Feb 2006 11:19:28 +0100
+
+nagios2 (0rc2-2.0-2) experimental; urgency=low
+
+ * re-work default configuration: split local.cfg into distinct files
+ in /etc/nagios2/conf.d from debian/conf.d
+ * add lintian override for resource.cfg permissions != 644
+ * add linda override for outdated config.(guess|sub), we update at
+ build time, keeping the new files outside of Debian .diff
+
+ -- Marc Haber Mon, 23 Jan 2006 16:22:08 +0000
+
+nagios2 (0rc2-2.0-1) experimental; urgency=low
+
+ * another "not quite ready for the limelight" release to experimental,
+ with nagios2-doc split off to a seperate package. thus this will
+ once again traverse NEW...
+
+ [marc haber]
+ * This package's debconf templates are currently work in progress
+ and _will_ change in the very near future. DO NOT TRANSLATE!
+ * Add "do not translate" template to debian/templates
+ * remove boilerplate instructions from README.Debian
+ * move debian/copyright to the right place
+ * introduce nagios2-doc and populate it
+ * add myself to uploaders
+ * make nagios2stats out of nagios2tats
+ * build-depend on autotools-dev, use mechanisms from
+ /usr/share/doc/autotools-dev/examples/rules.gz to update config.* on
+ build
+ * fix permissions on /var/log/nagios2 to allow web interface to
+ access event log
+ * fix rw2 to rw in postinst
+ * Fix location of external command file
+ * Document "how to enable external commands" in README.Debian
+
+ -- sean finney Sun, 22 Jan 2006 19:31:35 +0100
+
+nagios2 (0rc2-2.0-0) experimental; urgency=low
+
+ * this version is targeted as a prelease candidate for experimental.
+
+ [sean finney]
+ * update to upstream rc2
+ * after the change of course on the nagios vs nagios2 issue, a few
+ (hopefully) final naming changes were made in the build process.
+ * updated dependencies to reflect that nagios2 does not conflict
+ with nagios 1.x.
+
+ -- sean finney Sun, 15 Jan 2006 01:55:14 +0100
+
+nagios2 (0rc1-2.0-0) unreleased; urgency=low
+
+ [sean finney]
+ * initial version (closes: #341748). until nagios2 officially releases,
+ we'll use the 0$rcfoo-$version numbering scheme so that we never find
+ ourselves stuck needing to muck with the epoch.
+ * debconf/web configuration, via scripts borrowed from the unreleased
+ webapps-common package.
+ * improvements to standard apache configuration
+ * various fixes to default configuration to ensure that the
+ nagios/nagios2 namespace is clearly defined.
+
+ [marc haber]
+ * lots of initial packaging work. init script, user management, etc.
+
+ -- sean finney Sat, 03 Dec 2005 15:29:40 +0100
--- nagios2-2.5.orig/debian/compat
+++ nagios2-2.5/debian/compat
@@ -0,0 +1 @@
+5
--- nagios2-2.5.orig/debian/nagios2-common.examples
+++ nagios2-2.5/debian/nagios2-common.examples
@@ -0,0 +1,8 @@
+sample-config/template-object/minimal.cfg
+sample-config/template-object/bigger.cfg
+sample-config/template-object/checkcommands.cfg
+sample-config/template-object/misccommands.cfg
+sample-config/resource.cfg
+sample-config/nagios.cfg
+sample-config/cgi.cfg
+debian/apache2.conf
--- nagios2-2.5.orig/debian/httpd.webapps-common
+++ nagios2-2.5/debian/httpd.webapps-common
@@ -0,0 +1,188 @@
+# httpd-related functions
+# taken from the webapps-common project
+# copyright (c) 2005, sean finney (GPL)
+
+wc_httpd_apaches="apache apache-ssl apache-perl apache2"
+
+# if they have not specified what they support, assume support for all
+if [ ! "$wc_httpd_supported" ]; then
+ wc_httpd_supported="$wc_httpd_apaches"
+fi
+
+#
+# wc_httpd_installed: test for installed httpds
+# usage:
+# wc_httpd_installed [ httpd1 httpd2 ... ]
+#
+# no arguments implies to test for all servers
+wc_httpd_installed(){
+ local httpds
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=$wc_httpd_supported
+ fi
+ for f in $httpds; do
+ if test -x /usr/sbin/$f; then
+ echo $f
+ fi
+ done
+}
+
+#
+# wc_httpd_running: test for running httpds
+# usage:
+# wc_httpd_running [ httpd1 httpd2 ... ]
+#
+# no arguments implies to test for all servers
+wc_httpd_running(){
+ local httpds
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=$wc_httpd_supported
+ fi
+ for f in $httpds; do
+ if pgrep -fx "/usr/sbin/$f( .*)*$" >/dev/null; then
+ echo $f
+ fi
+ done
+}
+
+# wc_httpd_invoke: issue start/stop/etc command to web server init script
+# usage:
+# wc_httpd_invoke {start|stop|status|whatever} [ httpd1 httpd2 ... ]
+#
+# no servers implies to invoke all running servers
+wc_httpd_invoke(){
+ local httpds cmd err
+ if [ ! "$1" ]; then
+ echo "i need at least a command!" 2>&1
+ return 1
+ fi
+ cmd="$1"
+ shift
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=`wc_httpd_running`
+ fi
+ for f in $httpds; do
+ if [ -x /etc/init.d/$f ]; then
+ invoke-rc.d $f $cmd || return $?
+ fi
+ done
+}
+
+# wc_httpd_apache_include: include a file in the apache configuration
+# usage:
+# wc_httpd_apache_include file name [ httpd1 httpd2 ... ]
+#
+# no arguments implies all installed apache servers
+wc_httpd_apache_include(){
+ local h incfile httpds confdir
+ if [ ! "$1" ]; then
+ echo "i need at least a file!" 2>&1
+ return 1
+ fi
+ incfile="$1"
+ shift
+ if [ ! "$1" ]; then
+ echo "i also need a name!" 2>&1
+ return 1
+ fi
+ name="$1"
+ shift
+ if [ ! -e "$incfile" ]; then
+ echo "include file $incfile does not exist!" 2>&1
+ return 1
+ fi
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=`wc_httpd_installed $wc_httpd_supported`
+ fi
+ for h in $httpds; do
+ confdir="/etc/$h/conf.d"
+ conflink="$confdir/${name}.conf"
+ if [ -d "$confdir" -a ! -e "$conflink" ]; then
+ ln -s "$incfile" "$conflink"
+ fi
+ done
+}
+
+# wc_httpd_apache_configured: determine what servers are configured for a pkg
+# usage:
+# wc_httpd_apache_configured file name [ httpd1 httpd2 ... ]
+#
+# no arguments implies all installed apache servers
+# outputs the list of servers that are configured with file->name
+wc_httpd_apache_configured(){
+ local h incfile httpds confdir
+ if [ ! "$1" ]; then
+ echo "i need at least a file!" 2>&1
+ return 1
+ fi
+ incfile="$1"
+ shift
+ if [ ! "$1" ]; then
+ echo "i also need a name!" 2>&1
+ return 1
+ fi
+ name="$1"
+ shift
+ if [ ! -e "$incfile" ]; then
+ echo "include file $incfile does not exist!" 2>&1
+ return 1
+ fi
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=`wc_httpd_installed $wc_httpd_supported`
+ fi
+ for h in $httpds; do
+ confdir="/etc/$h/conf.d"
+ conflink="$confdir/${name}.conf"
+ if [ -L "$conflink" ]; then
+ echo "$h "
+ fi
+ done
+}
+
+# wc_httpd_apache_uninclude: uninclude a file in the apache configuration
+# usage:
+# wc_httpd_apache_uninclude file name [ httpd1 httpd2 ... ]
+#
+# no arguments implies all installed apache servers
+wc_httpd_apache_uninclude(){
+ local h incfile name httpds conflink
+ if [ ! "$1" ]; then
+ echo "i need at least a file!" 2>&1
+ return 1
+ fi
+ incfile="$1"
+ shift
+ if [ ! "$1" ]; then
+ echo "i also need a name!" 2>&1
+ return 1
+ fi
+ name="$1"
+ shift
+ if [ ! -e "$incfile" ]; then
+ echo "include file $incfile does not exist!" 2>&1
+ return 1
+ fi
+ if [ "$*" ]; then
+ httpds=$*
+ else
+ httpds=`wc_httpd_installed $wc_httpd_supported`
+ fi
+ for h in $httpds; do
+ conflink="/etc/$h/conf.d/${name}.conf"
+ if [ -L "$conflink" ]; then
+ rm -f "$conflink"
+ elif [ -e "$conflink" ]; then
+ echo "warning: $conflink exists but is not a link" >&2
+ fi
+ done
+}
--- nagios2-2.5.orig/debian/nagios2-common.postrm
+++ nagios2-2.5/debian/nagios2-common.postrm
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+
+# some shorthands for sanity
+en="/etc/nagios2"
+enc="/etc/nagios2/conf.d"
+usn="/usr/share/nagios2"
+
+case "$1" in
+ remove)
+ ;;
+ purge)
+ for file in $en/resource.cfg /var/log/nagios2 /var/run/nagios2 \
+ /var/lib/nagios2 /var/cache/nagios2 /var/lib/nagios2/rw; do
+ dpkg-statoverride --force --remove $file || true
+ done
+ rm -rf /var/run/nagios2 /var/log/nagios2 /var/lib/nagios2 \
+ /var/cache/nagios2
+ rm -f /etc/nagios2/htpasswd.users
+ rm -f /etc/nagios2/apache2.conf
+ rm -f /etc/nagios2/conf.d/host-gateway_nagios2.cfg
+ #rm -f /etc/nagios2/conf.d/extcommands_nagios2.cfg
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge /etc/nagios2/apache2.conf
+ ucf --purge /etc/nagios2/conf.d/host-gateway_nagios2.cfg
+ #ucf --purge /etc/nagios2/conf.d/extcommands_nagios2.cfg
+ fi
+ ;;
+esac
+
+#DEBHELPER#
--- nagios2-2.5.orig/debian/nagios2-common.prerm
+++ nagios2-2.5/debian/nagios2-common.prerm
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+. /usr/share/nagios2/debian/httpd.webapps-common
+
+apacheconf="/etc/nagios2/apache2.conf"
+
+case "$1" in
+ remove)
+ # find the configured servers
+ configured_servers=`wc_httpd_apache_configured $apacheconf nagios2`
+ if [ "$configured_servers" ]; then
+ # deconfigure them
+ wc_httpd_apache_uninclude $apacheconf nagios2 $configured_servers
+ # reload the configured servers if they are running
+ running_servers="`wc_httpd_running $configured_servers`"
+ if [ "$running_servers" ]; then
+ wc_httpd_invoke "reload" $running_servers
+ fi
+ fi
+ ;;
+esac
+
+#DEBHELPER#
--- nagios2-2.5.orig/debian/rules
+++ nagios2-2.5/debian/rules
@@ -0,0 +1,197 @@
+#!/usr/bin/make -f
+# debian/rules makefile for nagios2
+# Last modified:
+# $Id: rules 981 2006-08-16 09:29:14Z zugschlus $
+
+# export DH_VERBOSE=1
+
+b := $(shell pwd)/debian
+bnc := $b/nagios2-common
+bnd := $b/nagios2-doc
+
+export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# -Wall disabled until source is fixed to not print tons of warnings with it. :)
+#CFLAGS = -Wall -g
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+SHELL = /bin/sh -e
+CONFIGURE = CFLAGS='$(CFLAGS)' ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --bindir=/usr/sbin \
+ --sbindir=/usr/lib/cgi-bin/nagios2 \
+ --datadir=/usr/share/nagios2/htdocs \
+ --sysconfdir=/etc/nagios2 \
+ --infodir=/usr/share/info \
+ --libexecdir=/usr/lib/nagios/plugins \
+ --localstatedir=/var/lib/nagios2 \
+ --enable-event-broker \
+ --enable-embedded-perl \
+ --with-nagios-user=nagios \
+ --with-nagios-group=nagios \
+ --with-command-user=nagios \
+ --with-command-group=nagios \
+ --with-init-dir=/etc/init.d \
+ --with-lockfile=/var/run/nagios2/nagios2.pid \
+ --with-mail=/usr/bin/mail \
+ --with-perlcache \
+ --build=$(DEB_BUILD_GNU_TYPE) \
+ --host=$(DEB_HOST_GNU_TYPE) \
+ --with-htmurl=/nagios2 \
+ --with-cgiurl=/cgi-bin/nagios2
+
+unpack-configs: unpack-configs-stamp
+unpack-configs-stamp: configure-stamp
+ mkdir -p debian-configs
+ for cfg in $$(ls debian/cfg-*.diff); do \
+ TARGETNAME=$$(basename $$cfg .diff | sed 's/^cfg-//'); \
+ echo $$TARGETNAME; \
+ DISTNAME="sample-config/$$TARGETNAME"; \
+ if ! [ -e "$$DISTNAME" ]; then \
+ DISTNAME="sample-config/template-object/$$TARGETNAME"; \
+ fi; \
+ echo patch -o debian-configs/$$TARGETNAME $$DISTNAME $$cfg; \
+ patch -o debian-configs/$$TARGETNAME $$DISTNAME $$cfg; \
+ done; \
+ if [ -e "debian-configs/*.rej" ]; then \
+ echo "diffs to config file didn't match. Stop."; \
+ exit 1; \
+ fi
+ touch unpack-configs-stamp
+
+pack-configs: patch
+ for cfg in $$(ls debian-configs/*); do \
+ TARGETNAME=$$(basename $$cfg); \
+ DISTNAME="sample-config/$$TARGETNAME"; \
+ if ! [ -e "$$DISTNAME" ]; then \
+ DISTNAME="sample-config/template-object/$$TARGETNAME"; \
+ fi; \
+ echo diff -u $$DISTNAME $$cfg; \
+ diff -uN $$DISTNAME $$cfg > debian/cfg-$${TARGETNAME}.diff || true; \
+ done
+ rm -f unpack-configs-stamp
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir -a
+ dh_testroot -a
+ #-rm -Rf docs examples {build,config}-nagios-{text,pgsql,mysql}-stamp
+ if test -f Makefile; then make distclean; fi
+ #-rm -Rf {cgi,base}/*.{mysql,pgsql,text}
+ rm -f {patch,install,configure,build,unpack-configs}-stamp
+ rm -rf debian-configs
+ #-rm debian/templates.merged subst
+ find -type d -name autom4te.cache -print0 | xargs -0 -r rm -rf \;
+ -rm -f platform.h auto-include.h
+ find -type d -name build -print0 | xargs -0 -r rm -rf \;
+ find \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \;
+ dh_clean
+ debconf-updatepo
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir -a
+ @echo "Doing $@"
+ if test -f Makefile; then make clean; fi
+ ln -sf /usr/share/misc/config.sub .
+ ln -sf /usr/share/misc/config.guess .
+ rm -f config.cache
+ $(CONFIGURE)
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: patch-stamp configure-stamp
+ dh_testdir -a
+ @echo "Doing $@"
+ $(MAKE) all
+ touch build-stamp
+
+patch: patch-stamp
+patch-stamp:
+ @echo "Doing $@"
+ dpatch --with-cpp apply-all
+ dpatch --with-cpp cat-all >patch-stamp
+
+unpatch:
+ @echo "Doing $@"
+ dpatch --with-cpp deapply-all
+ rm -rf patch-stamp debian/patched
+
+install: install-stamp
+install-stamp: build-stamp unpack-configs-stamp
+ @echo "Doing $@"
+ dh_testdir -a
+ dh_testroot -a
+ dh_installdirs -a -i
+ # zero out INSTALL_OPTS to prevent chowning at build-time
+ make install-unstripped DESTDIR=$b/nagios2 INSTALL_OPTS=""
+ # move some arch-indep stuff to the other packages
+ cp -a $b/nagios2/usr/share/nagios2/htdocs ${bnd}/usr/share/nagios2/
+ rm -rf $b/nagios2/usr/share/nagios2
+ # remove empty directory
+ rmdir --ignore-fail-on-non-empty -p $b/nagios2/var/lib/nagios2/archives
+ # set up /var/cache/nagios2 for access by www-data
+ chgrp www-data ${bnc}/var/cache/nagios2
+ chmod g+s ${bnc}/var/cache/nagios2
+ chown root:www-data ${bnc}/var/lib/nagios2/rw
+ chmod 700 ${bnc}/var/lib/nagios2/rw
+ # alter some installed filenames/locations
+ mv ${b}/nagios2/usr/sbin/nagios ${b}/nagios2/usr/sbin/nagios2
+ mv ${b}/nagios2/usr/sbin/nagiostats ${b}/nagios2/usr/sbin/nagios2stats
+ mv ${b}/nagios2/usr/sbin/p1.pl ${b}/nagios2/usr/lib/nagios2/p1.pl
+ chmod 755 ${b}/nagios2/usr/lib/nagios2/p1.pl
+ dh_installdocs -i
+ dh_installman -a -pnagios2
+ dh_installlogrotate
+ dh_installchangelogs -i
+ dh_install -i
+ dh_installinit --name nagios2 -- defaults 30 18
+ dh_installexamples -i
+ # and now set up the "nagios1 version" of the apache2.conf
+ sed -e 's,^#\(ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios2\),\1,' \
+ -e 's,^#\(ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios2\),\1,' \
+ -e 's,^#\(Alias /nagios /usr/share/nagios2/htdocs\),\1,' \
+ -e 's,^ #\(AuthUserFile /etc/nagios/htpasswd.users\), \1,' \
+ ${bnc}/usr/share/doc/nagios2-common/examples/apache2.conf > ${bnc}/usr/share/doc/nagios2-common/examples/apache2.nagios1.conf
+ touch install-stamp
+
+binary: binary-arch binary-indep
+binary-arch: install-stamp
+ @echo "Doing $@"
+ dh_testdir -a
+ dh_testroot -a
+ dh_link -a
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_install -a
+ dh_strip -a --dbg-package=nagios2-dbg
+ dh_compress -a
+ dh_fixperms -a -X/var/cache/nagios2
+ dh_installdeb -a
+ dh_perl -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_makeshlibs -a -V
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary-indep: install-stamp
+ # XXX some stuff below here is commented out
+ #install -m 755 cgi/grouplist.cgi.in debian/$@/usr/lib/cgi-bin/nagios/grouplist.cgi
+ dh_link -i
+ dh_compress -i
+ dh_fixperms -i -Xnagios2/resource.cfg
+ dh_installdebconf -i
+ dh_perl -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+.PHONY: binary-indep binary-arch build configure binary install patch unpatch
--- nagios2-2.5.orig/debian/nagios2-common.nagios2.default
+++ nagios2-2.5/debian/nagios2-common.nagios2.default
@@ -0,0 +1,10 @@
+# /etc/default/nagios2
+
+# location of the nagios configuration file
+NAGIOSCFG="/etc/nagios2/nagios.cfg"
+
+# location of the CGI configuration file
+CGICFG="/etc/nagios2/cgi.cfg"
+
+# nicelevel to run nagios daemon with
+NICENESS=5
--- nagios2-2.5.orig/debian/nagios2-common.docs
+++ nagios2-2.5/debian/nagios2-common.docs
@@ -0,0 +1,2 @@
+README
+UPGRADING
--- nagios2-2.5.orig/debian/extcommands.cfg
+++ nagios2-2.5/debian/extcommands.cfg
@@ -0,0 +1,9 @@
+# EXTERNAL COMMAND OPTION
+# This option allows you to specify whether or not Nagios should check
+# for external commands (in the command file defined below). By default
+# Nagios will *not* check for external commands, just to be on the
+# cautious side. If you want to be able to use the CGI command interface
+# you will have to enable this. Setting this value to 0 disables command
+# checking (the default), other values enable it.
+
+check_external_commands=0
--- nagios2-2.5.orig/debian/nagios2.links
+++ nagios2-2.5/debian/nagios2.links
@@ -0,0 +1 @@
+usr/share/doc/nagios2-common usr/share/doc/nagios2
--- nagios2-2.5.orig/debian/nagios2-common.nagios2.init
+++ nagios2-2.5/debian/nagios2-common.nagios2.init
@@ -0,0 +1,251 @@
+#! /bin/sh
+# Written by Miquel van Smoorenburg .
+# Modified for Debian GNU/Linux
+# by Ian Murdock .
+# Clamav version by Magnus Ekdahl
+# Nagios version by Sean Finney and probably others
+# nagios2 version by Marc Haber
+
+### BEGIN INIT INFO
+# Provides: nagios2
+# Required-Start: $local_fs $remote_fs $syslog $named $network $time
+# Required-Stop: $local_fs $remote_fs $syslog $named $network
+# Should-Start:
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: nagios host/service/network monitoring and management system
+# Description: nagios is a monitoring and management system for hosts, services and networks.
+### END INIT INFO
+
+set -e
+
+if ! [ -x "/lib/lsb/init-functions" ]; then
+ . /lib/lsb/init-functions
+else
+ echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
+ exit 1
+fi
+
+DAEMON=/usr/sbin/nagios2
+NAME="nagios2"
+DESC="nagios2 monitoring daemon"
+NAGIOSCFG="/etc/nagios2/nagios.cfg"
+CGICFG="/etc/nagios2/cgi.cfg"
+NICENESS=5
+
+[ -x "$DAEMON" ] || exit 0
+[ -r /etc/default/nagios2 ] && . /etc/default/nagios2
+
+# this is from madduck on IRC, 2006-07-06
+# There should be a better possibility to give daemon error messages
+# and/or to log things
+log()
+{
+ case "$1" in
+ [[:digit:]]*) success=$1; shift;;
+ *) :;;
+ esac
+ log_action_begin_msg "$1"; shift
+ log_action_end_msg ${success:-0} "$*"
+}
+
+check_started () {
+ check_cmd="$(get_config "nagios_check_command" "$CGICFG")"
+ if [ ! "$check_cmd" ]; then
+ log 6 "unable to determine nagios_check_command from $CGICFG!"
+ return 6
+ fi
+
+ eval $check_cmd >/dev/null
+
+ if [ -f "$THEPIDFILE" ]; then
+ pid="$(cat $THEPIDFILE)"
+ if [ "$pid" ] && kill -0 $pid >/dev/null; then
+ return 0 # Is started
+ fi
+ fi
+ return 1 # Isn't started
+}
+
+#
+# get_config()
+#
+# grab a config option from nagios.cfg (or possibly another nagios config
+# file if specified). everything after the '=' is echo'd out, making
+# this a nice generalized way to get requested settings.
+#
+get_config () {
+ if [ "$2" ]; then
+ set -- `grep ^$1 $2 | sed 's@=@ @'`
+ else
+ set -- `grep ^$1 $NAGIOSCFG | sed 's@=@ @'`
+ fi
+ shift
+ echo $*
+}
+
+check_config () {
+ if $DAEMON -v $NAGIOSCFG >/dev/null 2>&1 ; then
+ # First get the user/group etc Nagios is running as
+ nagios_user="$(get_config nagios_user)"
+ nagios_group="$(get_config nagios_group)"
+ log_file="$(get_config log_file)"
+ log_dir="$(dirname $log_file)"
+
+ return 0 # Config is ok
+ else
+ # config is not okay, so let's barf the error to the user
+ $DAEMON -v $NAGIOSCFG
+ fi
+}
+
+check_named_pipe () {
+ nagiospipe="$(get_config command_file)"
+ if [ -p "$nagiospipe" ]; then
+ return 1 # a named pipe exists
+ else
+ return 0 # no named pipe exists
+ fi
+}
+
+if [ ! -f "$NAGIOSCFG" ]; then
+ log_failure_msg "There is no configuration file for Nagios 2."
+ exit 6
+fi
+
+THEPIDFILE="$(grep lock_file $NAGIOSCFG | awk '{print $2}' FS="=")"
+[ -n "$THEPIDFILE" ] || THEPIDFILE='/var/run/nagios2/nagios.pid'
+
+[ -e "$THEPIDFILE" ] && PID=$(cat $THEPIDFILE)
+
+[ "$PID" = '1' ] && unset PID
+
+start () {
+ DIRECTORY=$(echo $THEPIDFILE | sed 's!/[^/]\+$!!')
+ [ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
+ chown nagios:nagios $DIRECTORY
+
+ if ! check_started; then
+ if ! check_named_pipe; then
+ log_action_msg "named pipe exists - removing"
+ rm -f $nagiospipe
+ fi
+ if check_config; then
+ start_daemon -n $NICENESS -p $THEPIDFILE $DAEMON -d $NAGIOSCFG
+ ret=$?
+ else
+ log_failure_msg "errors in config!"
+ log_end_msg 1
+ exit 1
+ fi
+ else
+ log_failure_msg "already running!"
+ log_end_msg 1
+ exit 1
+ fi
+ return $ret
+}
+
+stop () {
+ if [ -n "$PID" ]; then
+ kill -15 -"$PID"
+ ret=$?
+# sleep 1
+# if kill -0 "$PID" 2>/dev/null; then
+# ret=$?
+# log_progress_msg "Waiting . "
+# cnt=0
+# while kill -0 "$PID" 2>/dev/null; do
+# ret=$?
+# cnt=`expr "$cnt" + 1`
+# if [ "$cnt" -gt 15 ]; then
+# kill -9 -"$PID"
+# break
+# fi
+# sleep 2
+# log_progress_msg ". "
+# done
+# fi
+ else
+ killproc -p $THEPIDFILE
+ ret=$?
+ fi
+ if ! check_named_pipe; then
+ rm -f $nagiospipe
+ fi
+ if [ -n "$ret" ]; then
+ return $ret
+ else
+ return $?
+ fi
+}
+
+status()
+{
+ log_action_begin_msg "checking $DAEMON"
+ if start-stop-daemon --stop --signal 0 --quiet --pid $THEPIDFILE >/dev/null; then
+ log_action_end_msg 0 "running"
+ else
+ if [ -e "$THEPIDFILE" ]; then
+ log_action_end_msg 1 "$DAEMON failed"
+ exit 1
+ else
+ log_action_end_msg 0 "not running"
+ exit 3
+ fi
+ fi
+}
+
+
+reload () {
+ # Check first
+ if check_config; then
+ if check_started; then
+ killproc -p $THEPIDFILE $DAEMON 1
+ else
+ log_failure_msg "Not running."
+ log_end_msg 7
+ exit 7
+ fi
+ else
+ log_failure_msg "errors in config!"
+ log_end_msg 6
+ exit 6
+ fi
+}
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC" "$NAME"
+ start
+ log_end_msg $?
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ stop
+ log_end_msg $?
+ ;;
+ restart)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ stop
+ if [ -z "$?" -o "$?" = "0" ]; then
+ start
+ fi
+ log_end_msg $?
+ ;;
+ reload|force-reload)
+ log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ reload
+ log_end_msg $?
+ ;;
+ status)
+ status
+ ;;
+ *)
+ log_failure_msg "Usage: $0 {start|stop|restart|reload|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
--- nagios2-2.5.orig/debian/nagios2-common.templates
+++ nagios2-2.5/debian/nagios2-common.templates
@@ -0,0 +1,38 @@
+Template: nagios2/httpd
+Type: multiselect
+_Choices: apache, apache-ssl, apache2
+Default: apache2
+_Description: Apache servers to configure for nagios2:
+ Please select which apache servers should be configured for nagios2.
+ .
+ If you would prefer to perform configuration manually, leave all
+ servers unselected.
+
+Template: nagios2/adminpassword
+Type: password
+_Description: Nagios web administration password:
+ Please provide the password to be created with the "nagiosadmin" user.
+ .
+ This is the username and password you will use to log in to your nagios
+ installation after configuration is complete. If you do not provide
+ a password, you will have to configure access to nagios yourself.
+
+Template: nagios2/adminpassword-repeat
+Type: password
+_Description: Password confirmation:
+
+Template: nagios2/adminpassword-mismatch
+Type: note
+_Description: The passwords do not match
+
+Template: nagios2/nagios1-in-apacheconf
+Type: boolean
+Default: false
+_Description: Enable support for nagios 1.x links in nagios2?
+ Please choose whether the Apache configuration for nagios2 should
+ provide compatibility with links from nagios 1.x.
+ .
+ If you select this option, the apache configuration used for nagios
+ will include directives to support URLs from nagios 1.x.
+ You should not choose this option if you still have nagios 1.x on your
+ system, or unpredictable results may occur.
--- nagios2-2.5.orig/debian/nagios2.prerm
+++ nagios2-2.5/debian/nagios2.prerm
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+# we attempt to stop nagios2 twice, once in nagios2-common's prerm
+# and once here. otherwise, if nagios2+nagios2-common are being purged,
+# the /usr/sbin/nagios2 binary could disappear before nagios2-common's
+# prerm script runs, which would prevent it from being able to stop
+# the binary.
+if [ -x "/etc/init.d/nagios2" ]; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d nagios2 stop || true
+ else
+ /etc/init.d/nagios2 stop || true
+ fi
+fi
+
+#DEBHELPER#
--- nagios2-2.5.orig/debian/cfg-resource.cfg.diff
+++ nagios2-2.5/debian/cfg-resource.cfg.diff
@@ -0,0 +1,17 @@
+--- sample-config/resource.cfg 2006-02-04 15:16:05.000000000 +0100
++++ debian-configs/resource.cfg 2006-02-04 15:16:05.000000000 +0100
+@@ -1,8 +1,6 @@
+ ###########################################################################
+ #
+-# RESOURCE.CFG - Sample Resource File for Nagios
+-#
+-# Last Modified: 09-10-2003
++# RESOURCE.CFG - Resource File for Nagios
+ #
+ # You can define $USERx$ macros in this file, which can in turn be used
+ # in command definitions in your host config file(s). $USERx$ macros are
+@@ -31,4 +29,3 @@
+ # Store some usernames and passwords (hidden from the CGIs)
+ #$USER3$=someuser
+ #$USER4$=somepassword
+-
--- nagios2-2.5.orig/debian/lintian/overrides/nagios2-common
+++ nagios2-2.5/debian/lintian/overrides/nagios2-common
@@ -0,0 +1 @@
+non-standard-file-perm etc/nagios2/resource.cfg 0600 != 0644
--- nagios2-2.5.orig/debian/gateway.cfg
+++ nagios2-2.5/debian/gateway.cfg
@@ -0,0 +1,7 @@
+# a host definition for the gateway of the default route
+define host {
+ host_name gateway
+ alias Default Gateway
+ address GW
+ use generic-host
+ }
--- nagios2-2.5.orig/debian/nagios2-common.install
+++ nagios2-2.5/debian/nagios2-common.install
@@ -0,0 +1,11 @@
+debian-configs/* /etc/nagios2
+debian/conf.d/* /etc/nagios2/conf.d
+sample-config/README /usr/share/doc/nagios2-common/examples
+sample-config/*.cfg /usr/share/doc/nagios2-common/examples
+sample-config/template-object/README /usr/share/doc/nagios2-common/examples/template-object
+sample-config/template-object/*.cfg /usr/share/doc/nagios2-common/examples/template-object
+debian/httpd.webapps-common /usr/share/nagios2/debian
+debian/lintian/overrides/nagios2-common usr/share/lintian/overrides
+debian/gateway.cfg usr/share/nagios2/debian
+debian/extcommands.cfg usr/share/nagios2/debian
+contrib/eventhandlers/* usr/share/nagios2/plugins/eventhandlers
--- nagios2-2.5.orig/debian/TODO
+++ nagios2-2.5/debian/TODO
@@ -0,0 +1,8 @@
+what isn't there todo? :)
+
+- double check init script
+- fill in README.Debian
+- would be nice to manage apache2.conf via ucf, and make
+ nagios 1.x url support in the file a debconf option.
+- good working default config, at least monitoring the freebies (disk,
+ swap, etc) on localhost.
--- nagios2-2.5.orig/debian/cfg-cgi.cfg.diff
+++ nagios2-2.5/debian/cfg-cgi.cfg.diff
@@ -0,0 +1,77 @@
+--- sample-config/cgi.cfg 2006-02-04 15:16:05.000000000 +0100
++++ debian-configs/cgi.cfg 2006-02-04 15:21:39.000000000 +0100
+@@ -1,8 +1,6 @@
+ #################################################################
+ #
+-# CGI.CFG - Sample CGI Configuration File for Nagios
+-#
+-# Last Modified: 05-05-2005
++# CGI.CFG - CGI Configuration File for Nagios
+ #
+ #################################################################
+
+@@ -43,7 +41,7 @@
+ # Values: 0 = disables context-sensitive help
+ # 1 = enables context-sensitive help
+
+-show_context_help=0
++show_context_help=1
+
+
+
+@@ -62,7 +60,7 @@
+ # have to be tweaked a bit, as different versions of the plugin
+ # use different command line arguments/syntaxes.
+
+-#nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/lib/nagios2/status.dat 5 '/usr/sbin/nagios'
++nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios2/status.dat 5 '/usr/sbin/nagios2'
+
+
+
+@@ -113,7 +111,7 @@
+ # not use authorization. You may use an asterisk (*) to
+ # authorize any user who has authenticated to the web server.
+
+-#authorized_for_system_information=nagiosadmin,theboss,jdoe
++authorized_for_system_information=nagiosadmin
+
+
+
+@@ -125,7 +123,7 @@
+ # an asterisk (*) to authorize any user who has authenticated
+ # to the web server.
+
+-#authorized_for_configuration_information=nagiosadmin,jdoe
++authorized_for_configuration_information=nagiosadmin
+
+
+
+@@ -138,7 +136,7 @@
+ # You may use an asterisk (*) to authorize any user who has
+ # authenticated to the web server.
+
+-#authorized_for_system_commands=nagiosadmin
++authorized_for_system_commands=nagiosadmin
+
+
+
+@@ -151,6 +149,8 @@
+ # to authorize any user who has authenticated to the web server.
+
+
++authorized_for_all_services=nagiosadmin
++authorized_for_all_hosts=nagiosadmin
+ #authorized_for_all_services=nagiosadmin,guest
+ #authorized_for_all_hosts=nagiosadmin,guest
+
+@@ -165,8 +165,8 @@
+ # authorization). You may use an asterisk (*) to authorize any
+ # user who has authenticated to the web server.
+
+-#authorized_for_all_service_commands=nagiosadmin
+-#authorized_for_all_host_commands=nagiosadmin
++authorized_for_all_service_commands=nagiosadmin
++authorized_for_all_host_commands=nagiosadmin
+
+
+
--- nagios2-2.5.orig/debian/README.Debian
+++ nagios2-2.5/debian/README.Debian
@@ -0,0 +1,61 @@
+Welcome to the nagios2 package for Debian GNU/Linux!
+Below are some debian-specific notes which may be of help to you.
+
+If you have questions about using/configuring nagios, you should probably
+contact the nagios-users mailing list and NOT the maintainers:
+
+ nagios-users@lists.sourceforge.net
+
+Of course we'd be happy to hear about any bugs you find, and are always
+open to discussing any ideas you might have for improvement. you can
+contact the debian nagios maintainers at:
+
+ pkg-nagios-devel@lists.alioth.debian.org
+
+
+Upgrading from Nagios 1
+^^^^^^^^^^^^^^^^^^^^^^^
+Nagios 1 and nagios2 are independent packages. You can have both
+installed at the same time, and both services can run at the same
+time. There should be no interference between the two packages. That
+way, you can take your time in migrating over your configuration.
+
+nagios2 allows you to continue supporting the 1.x URLs. After removing
+and purging Nagios 1, either dpkg-reconfigure nagios2-common or
+manually edit /etc/nagios2/apache.conf (activating all lines preceded
+by "# nagios 1.x")to have nagios2 take over the nagios 1.x URLs. If
+you enable these with nagios 1 still present, the results are undefined.
+
+
+External Commands
+^^^^^^^^^^^^^^^^^
+Nagios 2 is not configured to look for external commands in the
+default configuration as a security feature. To enable external
+commands, you need to allow the web server write access to the
+nagios command pipe. the simplest way of doing this is to
+set check_external_commands=1 in your nagios configuration,
+and then change the permissions in a way which will be maintained
+across package upgrades (otherwise dpkg will overwrite your
+permission changes). The following is the recommended approach:
+
+- activate external command checks in the nagios configuration. this
+ can be done by setting check_external_commands=1 in the file
+ /etc/nagios2/conf.d/extcommands_nagios2.cfg.
+- perform the following commands to change directory permissions and
+ to make the changes permanent:
+
+/etc/init.d/nagios2 stop
+dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios2/rw
+dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios2
+/etc/init.d/nagios2 start
+
+Manually Providing / Overriding Authentication Configuration
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The default debian configuration for nagios+apache is to use
+an htpasswd style file in /etc/nagios2/htpasswd.users. if you
+chose not to (or otherwise didn't) provide a password during package
+configuration, we assume that you know what you're doing and will
+not get in your way. however, if you don't know what you're doing,
+you should either dpkg-reconfigure nagios2-common and provide
+a password, or read the fine manual for htpasswd(1).
--- nagios2-2.5.orig/debian/copyright
+++ nagios2-2.5/debian/copyright
@@ -0,0 +1,14 @@
+This package was debianized by sean finney on
+Sat, 03 Dec 2005 12:05:01 +0100
+
+It was downloaded from http://www.nagios.org/
+
+Upstream Author: Ethan Galstad
+
+Current Debian Maintainers: Sean Finney
+Mailing-List: pkg-nagios-devel@lists.alioth.debian.org
+
+Copyright:
+
+Nagios is released under the terms of the GPL license.
+See /usr/share/common-licenses/GPL for the full license.
--- nagios2-2.5.orig/debian/nagios2.8
+++ nagios2-2.5/debian/nagios2.8
@@ -0,0 +1,46 @@
+.TH nagios2 "8" "February 2006" "sean finney " "nagios"
+.SH NAME
+nagios2 \- network/systems status monitoring daemon
+
+.SH SYNOPSIS
+.B nagios2 [\-h] [\-v] [\-s] [\-d]
+.br
+.Xc
+
+.SH DESCRIPTION
+.B nagios2
+is a daemon program that monitors the status of various network
+accessible systems, devices, and more. For more information, please
+consult the online documentation available at http://www.nagios.org,
+or on your nagios server's web page.
+
+.SH OPTIONS
+.TP
+main_config_file
+The main configuration file. On debian systems this defaults to
+/etc/nagios2/nagios.cfg
+.TP
+\fB\-h\fR
+A helpful usage message
+.TP
+\fB\-v\fR
+Reads all data in the configuration files and performs a basic
+verification/sanity check. Always make sure you verify your
+config data before (re)starting Nagios.
+.TP
+\fB\-s\fR
+Shows projected/recommended check scheduling information based
+on the current data in the configuration files.
+\fB\-d\fR
+Starts Nagios in daemon mode (instead of as a foreground process).
+
+.SH FILES
+.TP
+.IP /etc/nagios2
+Default configuration directory for nagios2
+
+.SH AUTHOR
+nagios2 is written and maintained by Ethan Galstad . This
+manual page was written by sean finney for the
+Debian GNU/Linux operating system (but it may be freely used, modified,
+and redistributed by others).
--- nagios2-2.5.orig/debian/nagios2-common.postinst
+++ nagios2-2.5/debian/nagios2-common.postinst
@@ -0,0 +1,113 @@
+#!/bin/bash
+
+set -e
+
+# some shorthands for sanity
+en="/etc/nagios2"
+enc="/etc/nagios2/conf.d"
+usn="/usr/share/nagios2"
+
+. /usr/share/debconf/confmodule
+. $usn/debian/httpd.webapps-common
+
+if [ -n "$NAG2DEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+# location of the default apache configuration for nagios.
+apacheconf=$en/apache2.conf
+# location of the default htpasswd authentication file.
+htpw=$en/htpasswd.users
+
+setperm() {
+ local user="$1"
+ local group="$2"
+ local mode="$3"
+ local file="$4"
+ shift 4
+ # only do something when no setting exists
+ if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
+ chown "$user":"$group" "$file"
+ chmod "$mode" "$file"
+ fi
+}
+
+case "$1" in
+ configure)
+ if ! getent passwd nagios > /dev/null ; then
+ echo 'Adding system-user for nagios' 1>&2
+ adduser --system --group --home /var/run/nagios2 --no-create-home \
+ --disabled-login --force-badname nagios > /dev/null
+ fi
+
+ # get the list of selected servers
+ db_get nagios2/httpd
+ servers=`echo $RET | sed -e 's/,/ /g'`
+ db_get nagios2/adminpassword
+ admpass="$RET"
+ # get whether they want support for 1.x urls:
+ db_get nagios2/nagios1-in-apacheconf
+ nagiosone="$RET"
+
+ # register apache2.conf via ucf:
+ if [ "$nagiosone" = "true" ]; then
+ ucf /usr/share/doc/nagios2-common/examples/apache2.nagios1.conf $apacheconf
+ else
+ ucf /usr/share/doc/nagios2-common/examples/apache2.conf $apacheconf
+ fi
+
+ # and do some voodoo to detect default gw and make a host of it
+ tmpgw=`mktemp`
+ set -- `route -n | grep '^0.0.0.0' | head -n1`
+ DEFAULTGW=$2
+ sed -e "s,GW,$DEFAULTGW," $usn/debian/gateway.cfg > $tmpgw
+ chmod 644 $tmpgw
+ ucf $tmpgw $enc/host-gateway_nagios2.cfg
+
+ # this is where the debconf-ized external command support would go
+ #ucf $usn/debian/extcommands.cfg $enc/extcommands-nagios2.cfg
+
+ # configure the web servers, if it is desired
+ if [ "$servers" ]; then
+ wc_httpd_apache_include $apacheconf nagios2 $servers
+ # reload the selected servers if they are running
+ running_servers="`wc_httpd_running $servers`"
+ if [ "$running_servers" ]; then
+ wc_httpd_invoke "reload" $running_servers
+ fi
+ fi
+
+
+ # we reset the password every run, so if it exists we're running
+ # after being specifically given a password and can unconditionally set it.
+ # XXX there's no way of setting the pw w/out giving it on the cmdline? wtf?
+ if [ -n "$admpass" ]; then
+ touch "$htpw"
+ htpasswd -b "$htpw" nagiosadmin "$admpass"
+ fi
+
+ # explicitly set permissions on some files that are dependent
+ # on the uid/gid of the nagios user, which is dynamically created.
+ setperm root nagios 0640 $en/resource.cfg
+ setperm nagios adm 2751 /var/log/nagios2
+ setperm nagios nagios 0750 /var/run/nagios2
+ setperm nagios nagios 0750 /var/lib/nagios2
+ setperm nagios www-data 02750 /var/cache/nagios2
+ setperm nagios www-data 0700 /var/lib/nagios2/rw
+
+ # everything went well, so now let's reset the password
+ db_set nagios2/adminpassword ""
+ db_set nagios2/adminpassword-repeat ""
+ # ... done with debconf here
+ db_stop
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+ *)
+ echo "postinst called with unknown argument \$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#