pkgsrc-wip/nagios-base/patches/patch-af
Murray Armfield bb76407616 Initial import of nagios version 1.0
Nagios is a program that will monitor hosts and services on your
  network.  It has the ability to email or page you when a problem arises
  and when it gets resolved.  Nagios is written in C and is designed to
  run under Linux, although it should work under most other *NIX variants.
  It can run either as a normal process or as a daemon, intermittently
  running checks on various services that you specify.  The actual service
  checks are performed by external "plugins" which return service
  information to Nagios.  Several CGI programs are included with Nagios
  in order to allow you to view the current service status, history, etc.
  via a web browser.
2003-04-06 00:30:40 +00:00

76 lines
2 KiB
Text

$NetBSD: patch-af,v 1.1.1.1 2003/04/06 00:30:47 marmfield Exp $
--- sample-config/nagios.cfg.in.orig Fri Jul 5 15:36:02 2002
+++ sample-config/nagios.cfg.in
@@ -16,7 +16,7 @@
# for historical purposes. This should be the first option specified
# in the config file!!!
-log_file=@localstatedir@/nagios.log
+log_file=@localstatedir@/log/nagios/nagios.log
@@ -73,7 +73,7 @@ resource_file=@sysconfdir@/resource.cfg
# The contentsof the status file are deleted every time Nagios
# restarts.
-status_file=@localstatedir@/status.log
+status_file=@localstatedir@/log/nagios/status.log
@@ -132,7 +132,7 @@ command_check_interval=-1
# directory level instead of on the file, as the file is deleted every
# time its contents are processed.
-command_file=@localstatedir@/rw/nagios.cmd
+command_file=@localstatedir@/run/nagios/rw/nagios.cmd
@@ -140,7 +140,7 @@ command_file=@localstatedir@/rw/nagios.c
# This is the file that Nagios will use for storing host and service
# comments.
-comment_file=@localstatedir@/comment.log
+comment_file=@localstatedir@/log/nagios/comment.log
@@ -148,7 +148,7 @@ comment_file=@localstatedir@/comment.log
# This is the file that Nagios will use for storing host and service
# downtime data.
-downtime_file=@localstatedir@/downtime.log
+downtime_file=@localstatedir@/log/nagios/downtime.log
@@ -166,7 +166,7 @@ lock_file=@lockfile@
# is created, used, and deleted throughout the time that Nagios is
# running.
-temp_file=@localstatedir@/nagios.tmp
+temp_file=/tmp/nagios.tmp
@@ -187,7 +187,7 @@ log_rotation_method=d
# This is the directory where archived (rotated) log files should be
# placed (assuming you've chosen to do log rotation).
-log_archive_path=@localstatedir@/archives
+log_archive_path=@localstatedir@/log/nagios/archives
@@ -380,7 +380,7 @@ retain_state_information=1
# This file is used only if the preserve_state_information
# variable is set to 1.
-state_retention_file=@localstatedir@/status.sav
+state_retention_file=@localstatedir@/run/nagios/status.sav