1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-21 18:03:45 +01:00

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}
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 <palli@opensource.is>
%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

View File

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