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$'