1 Summary: Nagios plugin to check SIP peer status
2 Name: nagios-plugin-check_sip_peer
7 Source0: check_sip_peer.py
8 # Source0-md5: 6bccc1b1fcd481df7065c6285aadbe25
9 BuildRequires: rpm-pythonprov
10 BuildRequires: rpmbuild(macros) >= 1.654
12 Requires: nagios-plugins-libs
13 Requires: python3-modules
14 Requires: python3-sarge
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _plugindir %{_prefix}/lib/nagios/plugins
19 %define _sysconfdir /etc/nagios/plugins
21 %define _noautoreq_perl utils
24 This plugin will test a SIP peer status.
30 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}}
34 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_plugindir}/check_sip_peer
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %attr(755,root,root) %{_plugindir}/check_sip_peer