check_time renamed to check_time.sh

This commit is contained in:
Tómas Edwardsson 2010-11-26 00:03:21 +00:00
parent ea05b56971
commit 44e090f7e1
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
%define debug_package %{nil} %define debug_package %{nil}
Summary: A Nagios plugin to compare time on remote host with localhost Summary: A Nagios plugin to compare time on remote host with localhost
Name: nagios-okplugin-time Name: nagios-okplugin-check_time
Version: AUTOVERSION Version: AUTOVERSION
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
@ -15,7 +15,7 @@ Packager: Pall Sigurdsson <palli@opensource.is>
%description %description
A Nagios plugin to compare time on remote host with localhos A Nagios plugin to compare time on remote host with localhost
%prep %prep
@ -27,7 +27,7 @@ perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_time.cfg
%install %install
rm -rf %{buildroot} 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 install -D -p -m 0755 nrpe.d/check_time.cfg %{buildroot}/etc/nrpe.d/check_time.cfg
%clean %clean
@ -35,7 +35,7 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README LICENSE #%doc README LICENSE
%{_libdir}/nagios/plugins/* %{_libdir}/nagios/plugins/*
/etc/nrpe.d/check_time.cfg /etc/nrpe.d/check_time.cfg

View File

@ -1,4 +1,4 @@
# Connect to a remote host via nrpe and check time # Connect to a remote host via nrpe and check time
# warning and critical are in seconds # 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$'