]> git.pld-linux.org Git - packages/nagios-plugin-check_scan.git/commitdiff
add command definition template
authorElan Ruusamäe <glen@delfi.ee>
Mon, 8 Jun 2015 12:14:58 +0000 (15:14 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 8 Jun 2015 12:14:58 +0000 (15:14 +0300)
check_scan.cfg [new file with mode: 0644]
nagios-plugin-check_scan.spec

diff --git a/check_scan.cfg b/check_scan.cfg
new file mode 100644 (file)
index 0000000..263b402
--- /dev/null
@@ -0,0 +1,20 @@
+# Usage:
+# check_scan
+define command {
+       command_name    check_scan
+       command_line    /usr/lib/nagios/plugins/check_scan -H $HOSTADDRESS$ $ARG1$
+}
+
+define service {
+       use                     generic-service
+       name                    template
+       service_description     template
+       register                0
+
+       normal_check_interval   5
+       retry_check_interval    1
+
+       notification_interval   10
+
+       check_command           check_scan
+}
index 66c948cab617bdba470943aae4df6647ef29b075..485a43015f00e4ef477dd61bac02b5fe68343fbd 100644 (file)
@@ -7,6 +7,7 @@ License:        GPL v2+
 Group:         Networking
 Source0:       http://www.altsec.info/check_scan.sh
 # Source0-md5: 8e79becb95012c2aedf0b9c68373f928
+Source1:       %{plugin}.cfg
 Patch0:                pld.patch
 URL:           http://www.altsec.info/check_scan.html
 Requires:      coreutils
@@ -43,11 +44,13 @@ cp -p %{SOURCE0} %{plugin}
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{statedir}}
 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
 %attr(755,root,root) %{plugindir}/%{plugin}
 %dir %attr(770,root,nagios) %{statedir}
This page took 0.078278 seconds and 4 git commands to generate.