1 |
commit: deb9136abe10a0f6155720db4f4aabb5d1384e5b |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 1 17:55:59 2019 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 04:29:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb9136a |
7 |
|
8 |
net-analyzer/nagios-core: remove unused patch |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
12 |
|
13 |
.../nagios-core/files/nagios-4.4.2-pre.patch | 209 --------------------- |
14 |
1 file changed, 209 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/nagios-core/files/nagios-4.4.2-pre.patch b/net-analyzer/nagios-core/files/nagios-4.4.2-pre.patch |
17 |
deleted file mode 100644 |
18 |
index 6483b9df9f2..00000000000 |
19 |
--- a/net-analyzer/nagios-core/files/nagios-4.4.2-pre.patch |
20 |
+++ /dev/null |
21 |
@@ -1,209 +0,0 @@ |
22 |
-diff --git a/Changelog b/Changelog |
23 |
-index 1e1bd9e2..8dd26fec 100644 |
24 |
---- a/Changelog |
25 |
-+++ b/Changelog |
26 |
-@@ -2,6 +2,18 @@ |
27 |
- Nagios Core 4 Change Log |
28 |
- ######################## |
29 |
- |
30 |
-+4.4.2 - ?????????? |
31 |
-+------------------ |
32 |
-+FIXES |
33 |
-+* Fix comment data being duplicated after a `service nagios reload` or similar (Bryan Heden) |
34 |
-+* Fix check_interval and retry_interval not changing at the appropriate times (Scott Wilkerson) |
35 |
-+* Fixed passive checks sending recovery email when host was previously UP (Scott Wilkerson) |
36 |
-+* Fixed flapping comments duplication on nagios reload (Christian Jung) |
37 |
-+* Fix for CVE-2018-13441, CVE-2018-13458, CVE-2018-13457 null pointer dereference (Trevor McDonald) |
38 |
-+* Fixed syntax error in file: default-init.in (#558) (Christian Zettel) |
39 |
-+* Reset current notification number and state flags when the host recovers, reset all service variables when they recover fixes (#557) (Scott Wilkerson) |
40 |
-+* Fixed wrong counting of service status totals when showing servicegroup details (#548) (Christian Zettel, Bryan Heden) |
41 |
-+ |
42 |
- 4.4.1 - 2018-06-25 |
43 |
- ------------------ |
44 |
- FIXES |
45 |
-diff --git a/base/checks.c b/base/checks.c |
46 |
-index 725dec9d..d45b6ac4 100644 |
47 |
---- a/base/checks.c |
48 |
-+++ b/base/checks.c |
49 |
-@@ -911,6 +911,11 @@ static inline void service_state_or_hard_state_type_change(service * svc, int st |
50 |
- |
51 |
- if (state_or_type_change) { |
52 |
- |
53 |
-+ /* check if service should go into downtime from flexible downtime */ |
54 |
-+ if (svc->pending_flex_downtime > 0) { |
55 |
-+ check_pending_flex_service_downtime(svc); |
56 |
-+ } |
57 |
-+ |
58 |
- /* reset notification times and suppression option */ |
59 |
- svc->last_notification = (time_t)0; |
60 |
- svc->next_notification = (time_t)0; |
61 |
-@@ -941,7 +946,10 @@ static inline void host_state_or_hard_state_type_change(host * hst, int state_ch |
62 |
- |
63 |
- log_debug_info(DEBUGL_CHECKS, 2, "Check type passive and passive host checks aren't false\n"); |
64 |
- |
65 |
-- hst->current_attempt = 1; |
66 |
-+ if (state_change == TRUE) { |
67 |
-+ hst->current_attempt = 1; |
68 |
-+ } |
69 |
-+ |
70 |
- hard_state_change = TRUE; |
71 |
- } |
72 |
- |
73 |
-@@ -989,6 +997,9 @@ static inline void host_state_or_hard_state_type_change(host * hst, int state_ch |
74 |
- |
75 |
- if (state_or_type_change) { |
76 |
- |
77 |
-+ /* check if host should go into downtime from flexible downtime */ |
78 |
-+ check_pending_flex_host_downtime(hst); |
79 |
-+ |
80 |
- /* reset notification times and suppression option */ |
81 |
- hst->last_notification = (time_t)0; |
82 |
- hst->next_notification = (time_t)0; |
83 |
-@@ -1228,7 +1239,7 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
84 |
- next_check = (time_t)(svc->last_check + (svc->check_interval * interval_length)); |
85 |
- |
86 |
- /***********************************************/ |
87 |
-- /********** SCHEDULE HOST CHECK LOGIC **********/ |
88 |
-+ /********** SCHEDULE SERVICE CHECK LOGIC **********/ |
89 |
- /***********************************************/ |
90 |
- if (svc->current_state == STATE_OK) { |
91 |
- |
92 |
-@@ -1269,6 +1280,7 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
93 |
- |
94 |
- svc->host_problem_at_last_check = TRUE; |
95 |
- } |
96 |
-+ |
97 |
- } |
98 |
- else { |
99 |
- |
100 |
-@@ -1368,6 +1380,9 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
101 |
- else { |
102 |
- |
103 |
- log_debug_info(DEBUGL_CHECKS, 1, "Service is a non-OK state (%s)!", service_state_name(svc->current_state)); |
104 |
-+ |
105 |
-+ svc->state_type = SOFT_STATE; |
106 |
-+ svc->current_attempt = 1; |
107 |
- |
108 |
- handle_event = TRUE; |
109 |
- } |
110 |
-@@ -1395,6 +1410,21 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
111 |
- |
112 |
- log_debug_info(DEBUGL_CHECKS, 1, "Service experienced a SOFT recovery.\n"); |
113 |
- } |
114 |
-+ |
115 |
-+ |
116 |
-+ /* reset all service variables because its okay now... */ |
117 |
-+ svc->host_problem_at_last_check = FALSE; |
118 |
-+ svc->current_attempt = 1; |
119 |
-+ svc->state_type = HARD_STATE; |
120 |
-+ svc->last_hard_state = STATE_OK; |
121 |
-+ svc->last_notification = (time_t)0; |
122 |
-+ svc->next_notification = (time_t)0; |
123 |
-+ svc->current_notification_number = 0; |
124 |
-+ svc->problem_has_been_acknowledged = FALSE; |
125 |
-+ svc->acknowledgement_type = ACKNOWLEDGEMENT_NONE; |
126 |
-+ svc->notified_on = 0; |
127 |
-+ |
128 |
-+ hard_state_change = TRUE; |
129 |
- } |
130 |
- |
131 |
- /***** SERVICE IS STILL IN PROBLEM STATE *****/ |
132 |
-@@ -1418,6 +1448,14 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
133 |
- } |
134 |
- } |
135 |
- } |
136 |
-+ |
137 |
-+ /* soft states should be using retry_interval */ |
138 |
-+ if (svc->state_type == SOFT_STATE) { |
139 |
-+ |
140 |
-+ log_debug_info(DEBUGL_CHECKS, 2, "Service state type is soft, using retry_interval\n"); |
141 |
-+ |
142 |
-+ next_check = (unsigned long) (current_time + svc->retry_interval * interval_length); |
143 |
-+ } |
144 |
- |
145 |
- /* check for a state change */ |
146 |
- if (svc->current_state != svc->last_state || (svc->current_state == STATE_OK && svc->state_type == SOFT_STATE)) { |
147 |
-@@ -1454,6 +1492,8 @@ int handle_async_service_check_result(service *svc, check_result *cr) |
148 |
- if (svc->current_attempt >= svc->max_attempts && svc->current_state != svc->last_hard_state) { |
149 |
- |
150 |
- log_debug_info(DEBUGL_CHECKS, 2, "Service had a HARD STATE CHANGE!!\n"); |
151 |
-+ |
152 |
-+ next_check = (unsigned long)(current_time + (svc->check_interval * interval_length)); |
153 |
- |
154 |
- hard_state_change = TRUE; |
155 |
- |
156 |
-@@ -2197,6 +2237,9 @@ int handle_async_host_check_result(host *hst, check_result *cr) |
157 |
- else { |
158 |
- |
159 |
- log_debug_info(DEBUGL_CHECKS, 1, "Host is no longer UP (%s)!\n", host_state_name(hst->current_state)); |
160 |
-+ |
161 |
-+ hst->state_type = SOFT_STATE; |
162 |
-+ hst->current_attempt = 1; |
163 |
- |
164 |
- /* propagate checks to immediate parents if they are UP */ |
165 |
- host_propagate_checks_to_immediate_parents(hst, FALSE, current_time); |
166 |
-@@ -2276,7 +2319,9 @@ int handle_async_host_check_result(host *hst, check_result *cr) |
167 |
- if (hst->current_state != HOST_UP && (hst->check_type == CHECK_TYPE_ACTIVE || translate_passive_host_checks == TRUE)) { |
168 |
- |
169 |
- hst->current_state = determine_host_reachability(hst); |
170 |
-- next_check = (unsigned long)(current_time + (hst->retry_interval * interval_length)); |
171 |
-+ if (hst->state_type == SOFT_STATE) |
172 |
-+ next_check = (unsigned long)(current_time + (hst->retry_interval * interval_length)); |
173 |
-+ |
174 |
- } |
175 |
- |
176 |
- /* check for state change */ |
177 |
-@@ -2310,7 +2355,9 @@ int handle_async_host_check_result(host *hst, check_result *cr) |
178 |
- |
179 |
- log_debug_info(DEBUGL_CHECKS, 2, "Host had a HARD STATE CHANGE!!\n"); |
180 |
- |
181 |
-- hard_state_change = TRUE; |
182 |
-+ next_check = (unsigned long)(current_time + (hst->check_interval * interval_length)); |
183 |
-+ |
184 |
-+ hard_state_change = TRUE; |
185 |
- send_notification = TRUE; |
186 |
- } |
187 |
- |
188 |
-@@ -2372,6 +2419,12 @@ int handle_async_host_check_result(host *hst, check_result *cr) |
189 |
- } |
190 |
- } |
191 |
- |
192 |
-+ /* the host recovered, so reset the current notification number and state flags (after the recovery notification has gone out) */ |
193 |
-+ if(hst->current_state == HOST_UP && hst->state_type == HARD_STATE && hard_state_change == TRUE) { |
194 |
-+ hst->current_notification_number = 0; |
195 |
-+ hst->notified_on = 0; |
196 |
-+ } |
197 |
-+ |
198 |
- if (obsess_over_hosts == TRUE) { |
199 |
- obsessive_compulsive_host_check_processor(hst); |
200 |
- } |
201 |
-diff --git a/base/nagios.c b/base/nagios.c |
202 |
-index 520ba71e..24719647 100644 |
203 |
---- a/base/nagios.c |
204 |
-+++ b/base/nagios.c |
205 |
-@@ -878,6 +878,9 @@ int main(int argc, char **argv) { |
206 |
- /* clean up the scheduled downtime data */ |
207 |
- cleanup_downtime_data(); |
208 |
- |
209 |
-+ /* clean up comment data */ |
210 |
-+ free_comment_data(); |
211 |
-+ |
212 |
- /* clean up the status data if we are not restarting */ |
213 |
- if(sigrestart == FALSE) { |
214 |
- cleanup_status_data(TRUE); |
215 |
-diff --git a/cgi/status.c b/cgi/status.c |
216 |
-index 20c4ed48..8b1c8b31 100644 |
217 |
---- a/cgi/status.c |
218 |
-+++ b/cgi/status.c |
219 |
-@@ -873,6 +873,11 @@ void show_service_status_totals(void) { |
220 |
- count_service = 1; |
221 |
- } |
222 |
- else if(display_type == DISPLAY_SERVICEGROUPS) { |
223 |
-+ |
224 |
-+ if (is_service_member_of_servicegroup(find_servicegroup(servicegroup_name), temp_service) == FALSE) { |
225 |
-+ continue; |
226 |
-+ } |
227 |
-+ |
228 |
- if(show_all_servicegroups == TRUE) { |
229 |
- count_service = 1; |
230 |
- } |