commit c35b288c554a8b3fa8b8cf9513b7f56267888003
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Oct 9 20:22:57 2012 +0300

    new, a plugin to check rdesktop machies

 check_x224.cfg                | 21 +++++++++++++++++++++
 nagios-plugin-check_x224.spec | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
---
diff --git a/nagios-plugin-check_x224.spec b/nagios-plugin-check_x224.spec
new file mode 100644
index 0000000..53e3ff9
--- /dev/null
+++ b/nagios-plugin-check_x224.spec
@@ -0,0 +1,41 @@
+%define                plugin  check_x224
+Summary:       Nagios plugin to check basic Remote Desktop connection success
+Name:          nagios-plugin-%{plugin}
+Version:       0.1
+Release:       1
+License:       BSD
+Group:         Networking
+Source0:       http://troels.arvin.dk/code/nagios/%{plugin}
+# Source0-md5: 54852b2cfea127816743102404638b5f
+Source1:       %{plugin}.cfg
+URL:           
http://exchange.nagios.org/directory/Plugins/Remote-Access/check_x224/details
+BuildRequires: rpm-pythonprov
+Requires:      nagios-common
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/nagios/plugins
+%define                plugindir       %{_prefix}/lib/nagios/plugins
+
+%description
+This plugin checks that the initial and most basic parts of a Remote
+Desktop connection - the part which is specified by x224 - succeeds.
+I.e., it does a bit more than a TCP connection test at port 3389.
+
+%prep
+%setup -qcT
+%{__sed} -e '1s,^#!.*python,#!%{__python},' %{SOURCE0} > %{plugin}.py
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin}.py $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}
diff --git a/check_x224.cfg b/check_x224.cfg
new file mode 100644
index 0000000..264f0a5
--- /dev/null
+++ b/check_x224.cfg
@@ -0,0 +1,21 @@
+# Usage:
+# check_x224
+define command {
+       command_name    check_x224
+       command_line    /usr/lib/nagios/plugins/check_x224 -H $HOSTADDRESS$ 
$ARG1$
+}
+
+define service {
+       use                     generic-service
+       name                    rdesktop
+       service_description     rdesktop
+       register                0
+
+       normal_check_interval   10
+       retry_check_interval    1
+
+       notification_interval   30
+
+       check_command           check_x224
+}
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_x224.git/commitdiff/c35b288c554a8b3fa8b8cf9513b7f56267888003

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to