X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=4dfcc9a8b5aeeeef4269d403fdf6d186748da087;hb=42a7c90f4478e98dc970927cfda7ec2e1081f364;hp=2252181335cff9c2e116cc962b0836c6b61d1e22;hpb=e460da6b5715e55c57731dcda31a228502b02b5b;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 22521813..4dfcc9a8 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -130,6 +130,7 @@ %define with_nginx 0%{!?_without_nginx:1} %define with_notify_desktop 0%{!?_without_notify_desktop:1} %define with_notify_email 0%{!?_without_notify_email:1} +%define with_notify_nagios 0%{!?_without_notify_nagios:1} %define with_ntpd 0%{!?_without_ntpd:1} %define with_numa 0%{!?_without_numa:1} %define with_nut 0%{!?_without_nut:1} @@ -1233,6 +1234,12 @@ Collectd utilities %define _with_notify_email --disable-notify_email %endif +%if %{with_notify_nagios} +%define _with_notify_nagios --enable-notify_nagios +%else +%define _with_notify_nagios --disable-notify_nagios +%endif + %if %{with_ntpd} %define _with_ntpd --enable-ntpd %else @@ -1711,6 +1718,7 @@ Collectd utilities %{?_with_memory} \ %{?_with_network} \ %{?_with_nfs} \ + %{?_with_notify_nagios} \ %{?_with_ntpd} \ %{?_with_numa} \ %{?_with_olsrd} \ @@ -1977,6 +1985,9 @@ fi %if %{with_nfs} %{_libdir}/%{name}/nfs.so %endif +%if %{with_notify_nagios} +%{_libdir}/%{name}/notify_nagios.so +%endif %if %{with_ntpd} %{_libdir}/%{name}/ntpd.so %endif @@ -2370,7 +2381,7 @@ fi %changelog #* TODO: next feature release changelog #- New upstream version -#- New plugins enabled by default: mqtt +#- New plugins enabled by default: mqtt, notify_nagios #- New plugins disabled by default: zone # * Wed May 27 2015 Marc Fournier 5.5.0-1