]>
Commit | Line | Data |
---|---|---|
f59de6d4 ER |
1 | # NOTE: |
2 | # - mk-livestatus is built from mk-livestatus package | |
c1a94fd9 ER |
3 | %define plugin check_mk |
4 | Summary: General purpose Nagios plugin for retrieving data | |
5 | Name: nagios-plugin-%{plugin} | |
f59de6d4 | 6 | Version: 1.2.6p9 |
c1a94fd9 ER |
7 | Release: 0.1 |
8 | License: GPL v2 | |
9 | Group: Networking | |
f59de6d4 ER |
10 | # Source0Download: https://mathias-kettner.de/check_mk_download_source.html |
11 | Source0: https://mathias-kettner.de/download/check_mk-%{version}.tar.gz | |
12 | # Source0-md5: 5c151625619ad39681f89d11dab819a6 | |
13 | URL: http://mathias-kettner.com/check_mk.html | |
14 | Requires: mk-livestatus >= 1.2.6p9 | |
c1a94fd9 ER |
15 | Requires: nagios-common |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
f59de6d4 | 19 | %define _sysconfdir /etc/nagios |
c1a94fd9 ER |
20 | %define plugindir %{_prefix}/lib/nagios/plugins |
21 | ||
22 | %define _appdir %{_datadir}/%{plugin} | |
23 | %define confdir /etc/nagios/%{plugin} | |
24 | %define checksdir %{_appdir}/checks | |
25 | %define modulesdir %{_appdir}/modules | |
26 | %define agentsdir %{_appdir}/agents | |
27 | %define mibsdir %{_datadir}/snmp/mibs | |
28 | ||
29 | %description | |
30 | Check_mk adopts a new a approach for collecting data from operating | |
31 | systems and network components. It obsoletes NRPE, check_by_ssh, | |
32 | NSClient and check_snmp. | |
33 | ||
34 | It has many benefits, the most important of which are: | |
35 | - Significant reduction of CPU usage on the Nagios host. | |
36 | - Automatic inventory of items to be checked on hosts. | |
37 | ||
38 | The larger your Nagios installation is, the more important get these | |
39 | points. In fact check_mk enables you to implement a monitoring | |
40 | environment exceeding 20.000 checks/min on the first hand. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{plugin}-%{version} | |
c1a94fd9 ER |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
f59de6d4 ER |
47 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
48 | ||
49 | DESTDIR=$RPM_BUILD_ROOT \ | |
50 | enable_livestatus=no \ | |
51 | nagios_config_file=%{_sysconfdir}/nagios.cfg \ | |
52 | nagconfdir=%{_sysconfdir}/plugins.d \ | |
53 | docdir=%{_docdir}/check-mk \ | |
54 | checkmandir=%{_docdir}/check-mk/checkman \ | |
55 | htdocsdir=%{_datadir}/nagios/htdocs \ | |
56 | pnptemplates=%{_datadir}/nagios/htdocs/pnp/templates \ | |
57 | nagpipe=/var/lib/nagios/rw/nagios.cmd \ | |
58 | check_result_path=/var/spool/nagios/checkresults \ | |
59 | nagiosurl=/nagios \ | |
60 | cgiurl=/cgi-bin/nagios \ | |
61 | check_icmp_path=%{_prefix}/lib/nagios/plugins/check_icmp \ | |
62 | wwwuser=http \ | |
63 | www_group=http \ | |
64 | apache_config_dir=/etc/httpd/webapps.d \ | |
65 | htpasswd_file=/etc/webapps/nagios/passwd \ | |
66 | nagios_auth_name="Nagios" \ | |
67 | nagios_binary=%{_sbindir}/nagios \ | |
68 | nagios_startscript=/etc/rc.d/init.d/nagios \ | |
69 | ./setup.sh --yes | |
70 | ||
71 | %{__rm} $RPM_BUILD_ROOT/etc/check_mk/*.mk-%{version} | |
c1a94fd9 ER |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
f59de6d4 ER |
78 | %doc AUTHORS ChangeLog |
79 | /etc/httpd/webapps.d/zzz_check_mk.conf | |
80 | %dir /etc/check_mk | |
81 | %dir /etc/check_mk/conf.d | |
82 | /etc/check_mk/conf.d/README | |
83 | /etc/check_mk/main.mk | |
84 | /etc/check_mk/multisite.mk | |
85 | %{_sysconfdir}/plugins.d/check_mk_templates.cfg | |
86 | %attr(755,root,root) %{_bindir}/check_mk | |
87 | %attr(755,root,root) %{_bindir}/cmk | |
88 | %attr(755,root,root) %{_bindir}/mkp | |
89 | %dir %{_datadir}/check_mk | |
90 | %{_datadir}/check_mk/check_mk_templates.cfg | |
91 | %{_datadir}/check_mk/agents | |
92 | %{_datadir}/check_mk/checks | |
93 | %{_datadir}/check_mk/inventory | |
94 | %{_datadir}/check_mk/modules | |
95 | %{_datadir}/check_mk/notifications | |
96 | %{_datadir}/check_mk/web | |
97 | %{_docdir}/check-mk | |
98 | %{_datadir}/nagios/htdocs/pnp | |
99 | /var/lib/check_mk/packages/check_mk | |
c1a94fd9 | 100 |