File icinga2-slack-notifications.spec of Package icinga2-slack-notifications
#
# spec file for package icinga2-slack-notifications
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: icinga2-slack-notifications
Version: 1.0.4
Release: 0
Summary: Icinga2 notification integration with Slack
License: Apache-2.0
URL: https://github.com/nisabek/icinga2-slack-notifications
Group: System/Monitoring
Source: %{name}-%{version}.tar.xz
BuildRequires: nagios-rpm-macros
BuildRequires: icinga2
Requires: icinga2
Requires: curl
BuildArch: noarch
%description
Native, easy to use Icinga2 NotificationCommand to send Host and Service
notifications to pre-configured Slack channel.
Features:
* Notifications inside Slack about your Host and Service state changes
* In case of failure get notified with the nicely-formatted output of the
failing check
* Easy integration with Icinga2
* Only native Icinga2 features are used, no bash, perl, etc - keeps your
server/virtual machine/docker instances small
%prep
%autosetup
%build
#
%install
mkdir -p %{buildroot}%{icinga2_sysconfdir}/conf.d/slack-notifications
install -m 0640 src/slack-notifications/* %{buildroot}%{icinga2_sysconfdir}/conf.d/slack-notifications/
%files
%license LICENSE
%doc README.md
%dir %{icinga2_sysconfdir}/conf.d
%dir %{icinga2_sysconfdir}/conf.d/slack-notifications
%config(noreplace) %{icinga2_sysconfdir}/conf.d/slack-notifications/*conf
%config %{icinga2_sysconfdir}/conf.d/slack-notifications/*template
%changelog