Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (68 sloc) 2.14 KB
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define release %{rpm_release}%{?dist}
Summary: Multi protocol nagios notifier
Name: angelia
Version: %{version}
Release: %{release}
Group: System Tools
License: Apache v2
Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby
BuildArch: noarch
Packager: R.I.Pienaar <>
System to send nagios alerts to multiple destinations such as Twitter and XMPP.
- Templates for each type of protocol and alert
- Simple integration into Nagios
- Supports Twitter and XMPP
%setup -q
rm -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}/%{ruby_sitelib}/angelia
%{__install} -d -m0755 %{buildroot}/etc/angelia/templates
%{__install} -d -m0755 %{buildroot}/usr/sbin
%{__install} -d -m0755 %{buildroot}/var/spool/angelia
%{__install} -d -m0755 %{buildroot}/var/log/angelia
%{__install} -d -m0755 %{buildroot}/etc/init.d
%{__install} -m0755 angelia-nagios-send.rb %{buildroot}/usr/sbin/angelia-nagios-send
%{__install} -m0755 angelia-send.rb %{buildroot}/usr/sbin/angelia-send
%{__install} -m0755 angelia-spoold.rb %{buildroot}/usr/sbin/angelia-spoold
%{__install} -m0755 angelia.init %{buildroot}/etc/init.d/angelia
cp -R angelia.rb %{buildroot}/%{ruby_sitelib}/
cp -R angelia/* %{buildroot}/%{ruby_sitelib}/angelia/
cp -R templates/* %{buildroot}/etc/angelia/templates
cp angelia.cfg %{buildroot}/etc/angelia
rm -rf %{buildroot}
/sbin/chkconfig --add angelia
if [ "$1" = 0 ]; then
/sbin/service angelia stop >/dev/null 2>&1 || :;
/sbin/chkconfig --del angelia || :;
if [ "$1" -ge 1 ]; then
/sbin/service angelia condrestart >/dev/null 2>&1 || :;
%config(noreplace) /etc/angelia/angelia.cfg
%config /etc/angelia/templates
%config /etc/init.d/angelia
* Thu Jul 23 2009 R.I.Pienaar <> - 0.1
- First release