From 44e090f7e1e47f8772c12e5e6383473a28b1262c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Fri, 26 Nov 2010 00:03:21 +0000 Subject: [PATCH] check_time renamed to check_time.sh --- check_time/trunk/{check_time => check_time.sh} | 0 ...okplugin-time.spec => nagios-okplugin-check_time.spec} | 8 ++++---- check_time/trunk/nrpe.d/check_time.cfg | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename check_time/trunk/{check_time => check_time.sh} (100%) rename check_time/trunk/{nagios-okplugin-time.spec => nagios-okplugin-check_time.spec} (81%) diff --git a/check_time/trunk/check_time b/check_time/trunk/check_time.sh similarity index 100% rename from check_time/trunk/check_time rename to check_time/trunk/check_time.sh diff --git a/check_time/trunk/nagios-okplugin-time.spec b/check_time/trunk/nagios-okplugin-check_time.spec similarity index 81% rename from check_time/trunk/nagios-okplugin-time.spec rename to check_time/trunk/nagios-okplugin-check_time.spec index cbac753..e2e9150 100644 --- a/check_time/trunk/nagios-okplugin-time.spec +++ b/check_time/trunk/nagios-okplugin-check_time.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Summary: A Nagios plugin to compare time on remote host with localhost -Name: nagios-okplugin-time +Name: nagios-okplugin-check_time Version: AUTOVERSION Release: 1%{?dist} License: GPLv2+ @@ -15,7 +15,7 @@ Packager: Pall Sigurdsson %description -A Nagios plugin to compare time on remote host with localhos +A Nagios plugin to compare time on remote host with localhost %prep @@ -27,7 +27,7 @@ perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_time.cfg %install rm -rf %{buildroot} -install -D -p -m 0755 check_time %{buildroot}%{_libdir}/nagios/plugins/check_time +install -D -p -m 0755 check_time.sh %{buildroot}%{_libdir}/nagios/plugins/check_time.sh install -D -p -m 0755 nrpe.d/check_time.cfg %{buildroot}/etc/nrpe.d/check_time.cfg %clean @@ -35,7 +35,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc README LICENSE +#%doc README LICENSE %{_libdir}/nagios/plugins/* /etc/nrpe.d/check_time.cfg diff --git a/check_time/trunk/nrpe.d/check_time.cfg b/check_time/trunk/nrpe.d/check_time.cfg index b659388..dcf228c 100644 --- a/check_time/trunk/nrpe.d/check_time.cfg +++ b/check_time/trunk/nrpe.d/check_time.cfg @@ -1,4 +1,4 @@ # Connect to a remote host via nrpe and check time # warning and critical are in seconds -command[check_time]=/usr/lib/nagios/plugins/check_time -H '$ARG1$' -w '$ARG2$' -c '$ARG3$' +command[check_time]=/usr/lib/nagios/plugins/check_time.sh -H '$ARG1$' -w '$ARG2$' -c '$ARG3$'