Lars Vogdt 2012-02-07 09:25:59 +00:00 committed by Git OBS Bridge
parent b12a0bc2b3
commit fb25bd4a2d
3 changed files with 67 additions and 7 deletions

55
macros.icinga Normal file
View File

@ -0,0 +1,55 @@
# macros.icinga file
# macros for Icinga (sub-)package building - handle with care
#
#
# directories
#
# install all plugins into this directory
# Please note: we use the old Nagios directory here, as plugins are
# currently compatible
%icinga_plugindir %{_prefix}/lib/nagios/plugins
# install all event handler scripts into this directory
%icinga_eventhandlerdir %{_prefix}/lib/icinga/eventhandler
# files like p1.pl are located directly in this directory
%icinga_libdir %{_prefix}/lib/icinga
# Icinga uses this directory for status files
%icinga_localstatedir %{_var}/lib/icinga
# Icinga configuration should be stored here
%icinga_sysconfdir %{_sysconfdir}/icinga
# Icinga static webpages, stylesheets and theme(s), online documentation
%icinga_datadir %{_datadir}/icinga
# Icinga spool dir (checkresult-dir)
%icinga_spooldir %{_var}/spool/icinga
# Icinga logfile dir
%icinga_logdir %{_var}/log/icinga
# Icinga cgi directory
%icinga_cgidir %{_prefix}/lib/icinga/cgi
#
# files
#
# This is the file that Icinga checks for external command requests
%icinga_command_file %{_var}/spool/icinga/icinga.cmd
# This is where the current status of all monitored services and
# hosts is stored.
%icinga_status_file %{_var}/lib/icinga/status.dat
# This is the file that Icinga should use to store host and
# service state information before it shuts down.
%icinga_state_retention_file %{_var}/lib/icinga/retention.dat
#
# users and groups
#
# User, Icinga runs under
%icinga_user icinga
# Group, Icinga runs under
%icinga_group icinga
# User, that can execute commands via %{icinga_command_file}
%icinga_command_user wwwrun
# Group, that can execute commands via %{icinga_command_file}
%icinga_command_group icingacmd

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 7 09:25:23 UTC 2012 - lars@linux-schulserver.de
- added macros.icinga
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 7 15:42:27 UTC 2011 - lars@linux-schulserver.de Wed Dec 7 15:42:27 UTC 2011 - lars@linux-schulserver.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package nagios-rpm-macros # spec file for package nagios-rpm-macros
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,22 +15,21 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: nagios-rpm-macros Name: nagios-rpm-macros
Summary: RPM Macros for Nagios based packages Summary: RPM Macros for Nagios based packages
Version: 0.004 License: BSD-3-Clause
Release: 1
Url: http://en.opensuse.org/Nagios
License: BSD3c(or similar)
Group: System/Monitoring Group: System/Monitoring
Version: 0.03
Release: 0
Url: http://en.opensuse.org/Nagios
Source0: macros.nagios Source0: macros.nagios
Source1: %{name}-README Source1: %{name}-README
Source2: nagios-rpm-macros-COPYING Source2: nagios-rpm-macros-COPYING
Source3: macros.check_mk Source3: macros.check_mk
Source4: macros.pnp4nagios Source4: macros.pnp4nagios
Source5: macros.nagiosgrapher Source5: macros.nagiosgrapher
Source6: macros.icinga
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -50,6 +49,7 @@ install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:4} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{S:4} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:5} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{S:5} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:6} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
%clean %clean
rm -rf %buildroot rm -rf %buildroot