forked from project-hatohol/hatohol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhatohol.spec.in
373 lines (335 loc) · 14.3 KB
/
hatohol.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
%define is_el6 %(if [ x"%rhel" = x"6" ]; then echo 1; else echo 0; fi)
%define is_el7 %(if [ x"%rhel" = x"7" ]; then echo 1; else echo 0; fi)
Summary: Hatohol
Name: hatohol
Group: Applications/System
Version: @VERSION@
License: LGPLv3
URL: https://github.com/project-hatohol/hatohol
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++, pkgconfig
BuildRequires: glib2-devel >= 2.22
BuildRequires: libsoup-devel >= 2.22
BuildRequires: json-glib-devel >= 0.12
BuildRequires: sqlite-devel >= 3.6
%if %is_el6
BuildRequires: mysql-devel >= 5.1
BuildRequires: python-argparse
%endif
%if %is_el7
BuildRequires: mariadb-devel
%endif
BuildRequires: libuuid-devel >= 2.17
BuildRequires: qpid-cpp-client-devel >= 0.14
BuildRequires: librabbitmq-devel >= 0.4.1
BuildRequires: Django >= 1.5.3
%description
Hatohol collects monitoring information from running monitoring systems
and shows their integrated data on one screen. This feature enables
to consolidate monitoring centers and the operators even when monitored
devices are being used in different places or with different monitoring
software.
%package server
Summary: The Hatohol server.
Group: Applications/System
Requires: glib2 >= 2.22
Requires: libsoup >= 2.22
Requires: json-glib >= 0.12
Requires: sqlite >= 3.6
%if %is_el6
Requires: mysql >= 5.1
Requires: python-argparse
%endif
%if %is_el7
Requires: mariadb
%endif
Requires: MySQL-python
Requires: libuuid >= 2.17
Requires: qpid-cpp-client >= 0.14
Requires: librabbitmq >= 0.4.1
Requires: hatohol-lib-common = %{version}
%description server
Hatohol collects monitoring information from running monitoring systems
and shows their integrated data on one screen. This feature enables
to consolidate monitoring centers and the operators even when monitored
devices are being used in different places or with different monitoring
software.
%package arm-zabbix
Summary: Arm for Zabbix server.
Group: Applications/System
Requires: hatohol-lib-arm = %{version}
%description arm-zabbix
hatohol-arm-zabbix collects monitoring data from a Zabbix server and sends
it to hatohol via HAPI.
%package arm-ceilometer
Summary: Arm for OpenStack Ceilometer.
Group: Applications/System
Requires: hatohol-lib-arm = %{version}
%description arm-ceilometer
hatohol-arm-ceilometer collects monitoring data from a OpenStack Ceilometer
and sends it to hatohol via HAPI.
%package lib-common
Summary: Library files for Hatohol
Group: Applications/System
%description lib-common
Common libraries for hatohol and arms.
%package lib-arm
Summary: Library files for Hatohol arms.
Group: Applications/System
Requires: hatohol-lib-common = %{version}
%description lib-arm
Libraries for arms.
%package web
Summary: Hatohol web frontend.
Group: Applications/System
Requires: MySQL-python >= 1.2.3
Requires: Django >= 1.5.3
Requires: httpd >= 2.2.15
Requires: mod_wsgi >= 3.2
%description web
A web frontend of Hatohol provides a web UI.
It internally communicates with the server and
creates a response page when a user accesses.
%package devel
Summary: Header files for Hatohol library.
Group: Development/Libraries
Requires: hatohol-server = %{version}-%{release}
Requires: glib2 >= 2.22
%description devel
Header files for the Hatohol library.
%prep
%setup -q -n %{name}-%{version}
%build
%configure
make
%install
rm -rf %{buildroot}
%make_install
%if %is_el6
install -D -m 644 %{buildroot}/%{_libexecdir}/hatohol/client/conf/apache/hatohol.conf.package6 %{buildroot}/%{_sysconfdir}/httpd/conf.d/hatohol.conf
install -D -m 755 %{buildroot}/%{_datadir}/hatohol/hatohol.centos %{buildroot}/%{_sysconfdir}/init.d/hatohol
install -d -m 755 %{buildroot}/%{_localstatedir}/run/hatohol
%endif
%if %is_el7
install -D -m 644 %{buildroot}/%{_libexecdir}/hatohol/client/conf/apache/hatohol.conf.package7 %{buildroot}/%{_sysconfdir}/httpd/conf.d/hatohol.conf
install -D -m 644 %{buildroot}/%{_datadir}/hatohol/hatohol.service %{buildroot}/%{_unitdir}/hatohol.service
install -D -m 644 %{buildroot}/%{_datadir}/hatohol/hatohol.conf %{buildroot}/%{_tmpfilesdir}/hatohol.conf
%endif
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/*.a
%pre server
getent group hatohol > /dev/null || groupadd -r hatohol
getent passwd hatohol > /dev/null || \
useradd -r -g hatohol -d %{_datadir}/hatohol -s /sbin/nologin \
-c "Hatohol" hatohol
%post server
/sbin/ldconfig
%if %is_el6
/sbin/chkconfig --add hatohol
%endif
%if %is_el7
/usr/bin/systemctl daemon-reload
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/hatohol.conf
%endif
mkdir -p %{_sysconfdir}/hatohol
%postun server
/sbin/ldconfig
%if %is_el6
/sbin/service hatohol stop
/sbin/chkconfig --del hatohol
%endif
%if %is_el7
/usr/bin/systemctl stop hatohol
/usr/bin/systemctl daemon-reload
%endif
%clean
rm -rf %{buildroot}
%files server
%defattr(-,root,root,-)
%doc README.md COPYING COPYING.GPLv3 COPYING.LGPLv3
%{_bindir}/*
%{_sbindir}/hatohol
%{_sbindir}/hatohol-ca-initialize
%{_sbindir}/hatohol-ca-sign-client-certificate
%{_sbindir}/hatohol-ca-sign-server-certificate
%{_sbindir}/hatohol-resident-yard
%{_libdir}/libhatohol.so.*
%{_prefix}/lib/python*
%{_libexecdir}/hatohol/action/*
%{_datadir}/hatohol/hatohol.centos
%{_datadir}/hatohol/hatohol.debian
%{_datadir}/hatohol/hatohol.service
%{_datadir}/hatohol/hatohol.conf
%{_sysconfdir}/hatohol/hatohol.conf
%if %is_el6
%{_sysconfdir}/init.d/hatohol
%attr(0755,hatohol,hatohol) %dir %{_localstatedir}/run/hatohol
%endif
%if %is_el7
%{_unitdir}/hatohol.service
%{_tmpfilesdir}/hatohol.conf
%endif
%{_datadir}/hatohol/sql/create-db.sql
%{_datadir}/hatohol/sql/init-user.sql
%{_datadir}/hatohol/sql/server-type-*.sql
%files arm-zabbix
%{_sbindir}/hatohol-arm-plugin-zabbix
%files arm-ceilometer
%{_sbindir}/hatohol-arm-plugin-ceilometer
%files lib-common
%{_libdir}/libhatohol-common.so.*
%{_libdir}/libmlpl.so.*
%files lib-arm
%{_libdir}/libhapprocess.so.*
%files web
%defattr(-,root,root,-)
%{_libexecdir}/hatohol/client/*
%{_sysconfdir}/httpd/conf.d/hatohol.conf
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri Dec 26 2014 Masayuki Nakagawa <masayuki.nakagawa@miraclelinux.com> 14.12-1
- Updated to 14.12 release.
* Tue Dec 24 2014 Masayuki Nakagawa <masayuki.nakagawa@miraclelinux.com> 14.12-0.1
- Update to 14.12-RC2
- New Features
- [Spec] Change package names to user friendly ones
- [Server] Support items for Ceilometer (#668)
- [Server] Log monitoring integration with Fluentd
- [WebUI] Log search system integration (#792, #795)
- [Server] Graphs for Zabbix items (#774)
- [WebUI] Support adding multiple servers by uploading tab-saparated
value file (#789,#794)
- [WebUI] Show units of item values (#749)
- [WebUI] Add a button to open a dialog to edit user roles to "Users"
page (#754)
- [Server] Move a client side filter on "Latest data" page to server side
(#835)
- [WebUI] Add a toggle button to trun on/off auto reload (#822, #823)
- [WebUI] Add menu items to show Hatohol's version & documents (#714)
- [WebUI] Show last update time (#667)
- Bugfixes
- [Server] Fix a problem in which child processes are not collected (#727)
- [Server] Plug memory leaks (#747, #772, #838)
- [Server] Validate URL of incident tracking servers to avoid crash (#665)
- [Server] Fix a wrong count of bad hosts (#730)
- [Server] Fix a bug that self monitoring events are tied to incorrect
incidents (#725)
- [Server] Suppress generating needless self monitoring triggers
(#736, #805)
- [WebUI] Fix invisible "DELETE" buttons on "Users", "Actions" and
Monitoring servers" pages on certain conditions (#686, #691, #716)
* Tue Sep 30 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-1
- Updated to 14.09 release.
* Tue Sep 30 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-0.6
- Update to 14.09-rc3
- Bug fix
- Solve a problem that user can not add incident management server. (#650)
* Tue Sep 30 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-0.5
- Update to 14.09-RC2 (Just rebuild of RC1)
* Tue Sep 30 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-0.4
- Update to 14.09-RC1
- Bug fix
- Solve a problem when user set timeout of action, command is forced termination. (#646, #647)
* Fri Sep 26 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-0.3
- Update to 14.09-pre3
- Bug fix
- Fix wrong library name in hatohol-db-initiator
- Modification of spec file and RPM file.
- Fix problems when RPM build.
* Thu Sep 25 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.09-0.1
- Update to 14.09-pre1
- New features
- [Server] Support OpenStack's ceilometer as a monitoring server (#145)
- [Server] Monitor the conection with monitoring servers (#251)
- [Server] Execute Action at monitoring server failure (#251)
- [Server] Add UI for configuring incident management feature
- [Server] Enable to synchronize statuses of Redmine issues
- [Server] Support Zabbix 2.4 (#197)
- [Server] Store all data in MySQL DB. SQLite3 is not used since this
- version (#394, #410, #423, #424)
- [Server] Replace hatohol-config-db-creator with a new setup script
- hatohol-db-initiator (#597)
- [Server] Introduce a Hatohol DB configuration file (#336)
- [Client] Redesign server edit dialog
- [Server] Delete actions whose owner is deleted (#107, #435)
- [Client] Add links to show events concerned with triggers
- [Client] Add "Settings" sub menu to the navigation menu bar
- [Client] Paginate "Triggres" & "Latest data" page
- [Client] Add a favicon
- Bug fixes
- [Client] Use POST method not to expose user name and password in access logs. (#575)
- [Server] Check a DB connection at the start up and exit soon with error code if it failed (#591)
- [Client] Allow browser to remember user name and password in the login dialog
- [Server] Solve a problem that Hatohol server fails to get event data in specific case (#252)
- Modification of spec file and RPM file.
- Remove unnecessary require package
* Fri Jun 27 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.06-2
- [Server] Support Zabbix 2.2 (#186)
- [Client][utils] Check existence of hostId at getHostName() (#185)
- [Client] Make a link to nagios Web UI (#209)
- [Server] Can't update on Zabbix 2.2.0 (#221)
- [Server] The basic implementation of the incident management feature (#229)
- [Server] The basic implementation of the plugin mechanism for 'Arm' (#171)
- [Server] Fix wrong number of bad hosts & triggers of a server (#236)
* Fri Mar 28 2014 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 14.03-4
- [Server][Client] Support Host group (#27)
- [Server] Add user role (#92)
- [Client] We should consider the default list order of events, triggers, and items. (#7)
- [Server] improve the efficiency to ignore lower level messages in mlpl::Logger (#35)
- [Server] test_getEventWithMaximumNumberAscendingStartId() crashes rarely (#81)
- [Server] Propagate access control feature to remaining APIs (#99)
- [Client] Error messages of hatohol-server are unfriendly (#100)
- [Server] Support a user privilege on action functions (#102)
- [Client] Some piecies of information on "Dashboard" page seems incorrect (#104)
- [Client] index.html and "viewer" prefix are verbose (#105)
- [Client] Support pagination (#106)
- [Server] SessionId should be expired (#108)
- [Server][ActionManager] Check the existence of user before an action is excuted. (#109)
- [Server] Enable to edit existing monitoring-server configuration (#117)
- [Client] Wrong users are deleted on deleting users (#118)
- [Client] "Add" button of HatholServerEditDialog doesn't become enabled in spite of filling all entries (#119)
- [Client] Server edit dialog is too long vertically (#121)
- [Client] Cannot register a multi-byte nickname for a monitoring-server (#122)
- [Client] Links to zabbix pages are broken when the port of monitoring-server isn't 80 (#123)
- [Client] Pull down menu of "Hosts" filter isn't cleared when clear server filter (#127)
- [Server] Clean up of code to access DBs. (#129)
- [Server] Can't start polling by adding a monitoring server from the client (#130)
- [Server] Old events become invisible after a new server is added on WebUI. (#133)
- [Client] 'Overview:Item' and 'Latest data' pages get an error after a server is deleted. (#134)
- [Client] Connection status with servers should be shown on WebUI. (#137)
- [Server][Client] Don't show data of deleted servers and hosts (#138)
- [Client] Raise a priority of filter function (#146)
- [Client] Trggers page isn't updated automatically (#152)
- [Client] Delete button is still enabled after the deletion finishes. (#159)
* Fri Dec 27 2013 Noriki Nakamura <noriki.nakamura@miraclelinux.com> 13.12-1
- [Client] Automatic update of content in web pages. (#8)
- [Client] messages in multiple languages should be supported (#10)
- [Server] Update items triggered by the request. (#17)
- Configuration of target server list by Web Interface. (#22)
- [Server] The update of target servers without the restart of Hatohol server. (#32)
- [Client] Make a link to Zabbix Graphs page (#48)
- [Client] Make a link to Zabbix Map page (#49)
- [Client] Filter by the severity and tinting (#50)
- [Client] Filter and tinting by the status (open or close) in the Web client. (#51)
- Add User and privillege (#58)
- [Server] Can't get data from Zabbix server when memory limit of Zabbix API is little (60)
- [server] test_execResidentActionTimeoutInInit sometimes crash on TravisCI (#67)
- testUnifiedDataStore::test_getEventList sometimes fails (#68)
- [Client] Show host field in events page (#70)
- [server] test_cleanupOnThreadExit() sometimes fails. (#71)
- [Server][Client] Hatohol can't display information of Japanese characters (#72)
- [Server] When JsonParserAgent::read() return false, result of after JsonParserAgent::read() function is all false. (#75)
- [server][DBAgentMySQL] Failed to query due to an interactive timeout of MySQL. (#78)
- Trigger statues of newly added hosts don't correspond with zabbix (#83)
- Show host names on Web UI: 'Overview:item' (#93)
- Show host names on Web UI: 'Latest data' (#94)
* Fri Sep 27 2013 Kazuhiro Yamato <kyamato@mriaclelinux.com> 0.1-1
- Add an action framework.
* Sat Jul 06 2013 Kazuhiro Yamato <kyamato@mriaclelinux.com> 0.0.3-1
- Fix to create RPM files.