ports/108362: [PATCH] net-mgmt/nagios - use freebsd-server instead of linux-server
Dan Langille
dan at langille.org
Fri Jan 26 00:40:22 UTC 2007
>Number: 108362
>Category: ports
>Synopsis: [PATCH] net-mgmt/nagios - use freebsd-server instead of linux-server
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 26 00:40:18 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Dan Langille
>Release: FreeBSD 4.9-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.unixathome.org 4.9-STABLE FreeBSD 4.9-STABLE #2: Wed Mar 3 08:16:24 EST 2004 dan at polo.unixathome.org:/usr/obj/usr/src/sys/XEON i386
>Description:
The existing examples use a linux-server template.
Rename this to freebsd-server
>How-To-Repeat:
>Fix:
--- nagios.diff begins here ---
diff -ruN /usr/ports/net-mgmt/nagios/files/patch-html-docs-xodtemplate.html nagios/files/patch-html-docs-xodtemplate.html
--- /usr/ports/net-mgmt/nagios/files/patch-html-docs-xodtemplate.html Wed Dec 31 19:00:00 1969
+++ nagios/files/patch-html-docs-xodtemplate.html Thu Jan 25 19:33:37 2007
@@ -0,0 +1,11 @@
+--- html/docs/xodtemplate.html.orig Thu Jan 25 19:29:11 2007
++++ html/docs/xodtemplate.html Thu Jan 25 19:29:11 2007
+@@ -493,7 +493,7 @@
+ <p class="SectionBody">
+ <pre>
+ define service{
+- host_name linux-server
++ host_name freebsd-server
+ service_description check-disk-sda1
+ check_command check-disk!/dev/sda1
+ max_check_attempts 5
diff -ruN /usr/ports/net-mgmt/nagios/files/patch-sample-config-template-object-localhost.cfg.in nagios/files/patch-sample-config-template-object-localhost.cfg.in
--- /usr/ports/net-mgmt/nagios/files/patch-sample-config-template-object-localhost.cfg.in Wed Dec 31 19:00:00 1969
+++ nagios/files/patch-sample-config-template-object-localhost.cfg.in Thu Jan 25 19:33:50 2007
@@ -0,0 +1,23 @@
+--- sample-config/template-object/localhost.cfg.in.orig Thu Jan 25 19:25:30 2007
++++ sample-config/template-object/localhost.cfg.in Thu Jan 25 19:25:30 2007
+@@ -154,7 +154,7 @@
+ # Linux host definition template - This is NOT a real host, just a template!
+
+ define host{
+- name linux-server ; The name of this host template
++ name freebsd-server ; The name of this host template
+ use generic-host ; This template inherits other values from the generic-host template
+ check_period 24x7 ; By default, Linux hosts are checked round the clock
+ max_check_attempts 10 ; Check each Linux host 10 times (max)
+@@ -173,9 +173,9 @@
+ # local host (this machine).
+
+ define host{
+- use linux-server ; Name of host template to use
++ use freebsd-server ; Name of host template to use
+ ; This host definition will inherit all variables that are defined
+- ; in (or inherited by) the linux-server host template definition.
++ ; in (or inherited by) the freebsd-server host template definition.
+ host_name localhost
+ alias localhost
+ address 127.0.0.1
--- nagios.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list