]> git.pld-linux.org Git - packages/nagios.git/blob - config.patch
fix The Alias directive probably never match issue
[packages/nagios.git] / config.patch
1 diff -ur nagios.org/html/config.inc.php.in nagios/html/config.inc.php.in
2 --- nagios.org/html/config.inc.php.in   2013-09-20 21:01:20.000000000 +0200
3 +++ nagios/html/config.inc.php.in       2013-10-01 21:51:45.176497587 +0200
4 @@ -2,7 +2,7 @@
5  //
6  
7  
8 -$cfg['cgi_config_file']='@sysconfdir@/cgi.cfg';  // location of the CGI config file
9 +$cfg['cgi_config_file']='/etc/webapps/nagios/cgi.cfg';  // location of the CGI config file
10  
11  $cfg['cgi_base_url']='@cgiurl@';
12  
13 diff -ur nagios.org/Makefile.in nagios/Makefile.in
14 --- nagios.org/Makefile.in      2013-09-20 21:01:20.000000000 +0200
15 +++ nagios/Makefile.in  2013-10-01 21:51:45.176497587 +0200
16 @@ -241,7 +241,7 @@
17         cd $(SRC_BASE) && $(MAKE) $@
18         cd $(SRC_CGI) && $(MAKE) $@
19         cd $(SRC_HTM) && $(MAKE) $@
20 -       $(MAKE) install-exfoliation     
21 +       $(MAKE) install-classicui
22         $(MAKE) install-basic
23  
24  install-basic:
25 diff -ur nagios.org/sample-config/cgi.cfg.in nagios/sample-config/cgi.cfg.in
26 --- nagios.org/sample-config/cgi.cfg.in 2013-09-20 21:01:20.000000000 +0200
27 +++ nagios/sample-config/cgi.cfg.in     2013-10-01 21:52:32.937634398 +0200
28 @@ -1,6 +1,6 @@
29  #################################################################
30  #
31 -# CGI.CFG - Sample CGI Configuration File for Nagios @VERSION@
32 +# CGI.CFG - Sample CGI Configuration File for Nagios
33  #
34  #
35  #################################################################
36 @@ -42,7 +42,7 @@
37  # Values: 0 = disables context-sensitive help
38  #         1 = enables context-sensitive help
39  
40 -show_context_help=0
41 +show_context_help=1
42  
43  
44  
45 @@ -263,7 +263,7 @@
46  # OS and distribution, so you may have to tweak this to
47  # work on your system.
48  
49 -ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
50 +ping_syntax=/usr/bin/ping -n -U -c 5 $HOSTADDRESS$
51  
52  
53  
54 @@ -370,3 +370,5 @@
55  
56  navbar_search_for_addresses=1
57  navbar_search_for_aliases=1
58 +
59 +# vim:ts=8:sw=8:ft=cfg
60 diff -ur nagios.org/sample-config/nagios.cfg.in nagios/sample-config/nagios.cfg.in
61 --- nagios.org/sample-config/nagios.cfg.in      2013-09-20 21:01:20.000000000 +0200
62 +++ nagios/sample-config/nagios.cfg.in  2013-10-01 21:53:09.708504449 +0200
63 @@ -1,6 +1,6 @@
64  ##############################################################################
65  #
66 -# NAGIOS.CFG - Sample Main Config File for Nagios @VERSION@
67 +# NAGIOS.CFG - Sample Main Config File for Nagios
68  #
69  # Read the documentation for more information on this configuration
70  # file.  I've provided some comments here, but things may not be so
71 @@ -15,7 +15,7 @@
72  # for historical purposes.  This should be the first option specified 
73  # in the config file!!!
74  
75 -log_file=@localstatedir@/nagios.log
76 +log_file=/var/log/nagios/nagios.log
77  
78  
79  
80 @@ -26,13 +26,13 @@
81  # if you wish (as shown below), or keep them all in a single config file.
82  
83  # You can specify individual object config files as shown below:
84 -cfg_file=@sysconfdir@/objects/commands.cfg
85 -cfg_file=@sysconfdir@/objects/contacts.cfg
86 -cfg_file=@sysconfdir@/objects/timeperiods.cfg
87 -cfg_file=@sysconfdir@/objects/templates.cfg
88 +cfg_file=@sysconfdir@/commands.cfg
89 +cfg_file=@sysconfdir@/contacts.cfg
90 +cfg_file=@sysconfdir@/timeperiods.cfg
91 +cfg_file=@sysconfdir@/templates.cfg
92  
93  # Definitions for monitoring the local (Linux) host
94 -cfg_file=@sysconfdir@/objects/localhost.cfg
95 +#cfg_file=@sysconfdir@/objects/localhost.cfg
96  
97  # Definitions for monitoring a Windows machine
98  #cfg_file=@sysconfdir@/objects/windows.cfg
99 @@ -47,13 +47,8 @@
100  # You can also tell Nagios to process all config files (with a .cfg
101  # extension) in a particular directory by using the cfg_dir
102  # directive as shown below:
103 -
104 -#cfg_dir=@sysconfdir@/servers
105 -#cfg_dir=@sysconfdir@/printers
106 -#cfg_dir=@sysconfdir@/switches
107 -#cfg_dir=@sysconfdir@/routers
108 -
109 -
110 +cfg_dir=@sysconfdir@/plugins
111 +cfg_dir=@sysconfdir@/objects
112  
113  
114  # OBJECT CACHE FILE
115 @@ -242,7 +237,7 @@
116  # This is the directory where archived (rotated) log files should be 
117  # placed (assuming you've chosen to do log rotation).
118  
119 -log_archive_path=@localstatedir@/archives
120 +log_archive_path=/var/log/nagios/archives
121  
122  
123  
124 @@ -250,7 +245,7 @@
125  # If you want messages logged to the syslog facility, as well as the
126  # Nagios log file set this option to 1.  If not, set it to 0.
127  
128 -use_syslog=1
129 +use_syslog=0
130  
131  
132  
133 @@ -707,7 +702,7 @@
134  # by Nagios Enterprises from the update check is processed in accordance 
135  # with our privacy policy - see http://api.nagios.org for details.
136  
137 -check_for_updates=1
138 +check_for_updates=0
139  
140  
141  
142 @@ -719,7 +714,7 @@
143  # this data to determine the number of users running specific version of 
144  # Nagios.  Enable this option if you do not want this information to be sent.
145  
146 -bare_update_check=0
147 +bare_update_check=1
148  
149  
150  
151 @@ -854,8 +849,8 @@
152  # pipe ("p") mode which avoid blocking at startup, otherwise you will
153  # likely want the defult append ("a") mode.
154  
155 -#host_perfdata_file_mode=a
156 -#service_perfdata_file_mode=a
157 +host_perfdata_file_mode=a
158 +service_perfdata_file_mode=a
159  
160  
161  
162 @@ -1091,7 +1086,7 @@
163  #      strict-iso8601  (YYYY-MM-DDTHH:MM:SS)
164  #
165  
166 -date_format=us
167 +date_format=iso8601
168  
169  
170  
171 @@ -1285,7 +1280,7 @@
172  # DEBUG FILE
173  # This option determines where Nagios should write debugging information.
174  
175 -debug_file=@localstatedir@/nagios.debug
176 +debug_file=/var/log/nagios/nagios.debug
177  
178  
179  
180 diff -ur nagios.org/sample-config/resource.cfg.in nagios/sample-config/resource.cfg.in
181 --- nagios.org/sample-config/resource.cfg.in    2013-09-20 21:01:20.000000000 +0200
182 +++ nagios/sample-config/resource.cfg.in        2013-10-01 21:52:53.371451113 +0200
183 @@ -1,6 +1,6 @@
184  ###########################################################################
185  #
186 -# RESOURCE.CFG - Sample Resource File for Nagios @VERSION@
187 +# RESOURCE.CFG - Sample Resource File for Nagios
188  #
189  #
190  # You can define $USERx$ macros in this file, which can in turn be used
This page took 0.089403 seconds and 3 git commands to generate.