diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-07-02 15:01:22 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-07-02 15:01:22 (GMT) |
commit | 7d32d2b5f41662098f444f0f02ab1afccdeb6e41 (patch) | |
tree | 10702617d976a93850eef311157b52ce2f60bd43 | |
parent | 883914b9d89f084c2613e2d36e8f4334b993cc12 (diff) | |
download | monitoring-plugins-7d32d2b5f41662098f444f0f02ab1afccdeb6e41.tar.gz |
Moving check_file_age into core
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@578 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins-scripts/.cvsignore | 1 | ||||
-rw-r--r-- | plugins-scripts/Makefile.am | 6 | ||||
-rwxr-xr-x | plugins-scripts/check_file_age.pl (renamed from contrib/check_file_age.pl) | 2 | ||||
-rw-r--r-- | plugins-scripts/subst.in | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/plugins-scripts/.cvsignore b/plugins-scripts/.cvsignore index 341101f..3066a97 100644 --- a/plugins-scripts/.cvsignore +++ b/plugins-scripts/.cvsignore | |||
@@ -16,3 +16,4 @@ check_oracle | |||
16 | check_rpc | 16 | check_rpc |
17 | check_sensors | 17 | check_sensors |
18 | check_wave | 18 | check_wave |
19 | check_file_age | ||
diff --git a/plugins-scripts/Makefile.am b/plugins-scripts/Makefile.am index 411c1a0..5556cf6 100644 --- a/plugins-scripts/Makefile.am +++ b/plugins-scripts/Makefile.am | |||
@@ -6,11 +6,13 @@ VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/ | |||
6 | 6 | ||
7 | libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \ | 7 | libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \ |
8 | check_log check_ntp check_oracle check_rpc check_sensors check_wave \ | 8 | check_log check_ntp check_oracle check_rpc check_sensors check_wave \ |
9 | check_ifstatus check_ifoperstatus check_mailq utils.sh utils.pm | 9 | check_ifstatus check_ifoperstatus check_mailq check_file_age \ |
10 | utils.sh utils.pm | ||
10 | 11 | ||
11 | EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \ | 12 | EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \ |
12 | check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \ | 13 | check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \ |
13 | check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl utils.sh.in utils.pm.in t | 14 | check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \ |
15 | utils.sh.in utils.pm.in t | ||
14 | 16 | ||
15 | TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir) | 17 | TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir) |
16 | 18 | ||
diff --git a/contrib/check_file_age.pl b/plugins-scripts/check_file_age.pl index ae9311e..2ab1a28 100755 --- a/contrib/check_file_age.pl +++ b/plugins-scripts/check_file_age.pl | |||
@@ -27,7 +27,7 @@ use English; | |||
27 | use Getopt::Long; | 27 | use Getopt::Long; |
28 | use File::stat; | 28 | use File::stat; |
29 | use vars qw($PROGNAME); | 29 | use vars qw($PROGNAME); |
30 | use lib utils.pm; | 30 | use lib "."; |
31 | use utils qw (%ERRORS &print_revision &support); | 31 | use utils qw (%ERRORS &print_revision &support); |
32 | 32 | ||
33 | sub print_help (); | 33 | sub print_help (); |
diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in index 7e38e02..2ac4534 100644 --- a/plugins-scripts/subst.in +++ b/plugins-scripts/subst.in | |||
@@ -45,7 +45,7 @@ BEGIN { | |||
45 | /^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} | 45 | /^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} |
46 | 46 | ||
47 | # add to libexecdir to INC for perl utils.pm | 47 | # add to libexecdir to INC for perl utils.pm |
48 | /^use/ { if (/lib/) { if (/utils.pm/ ) {sub(/utils.pm/,led() )} } } | 48 | /^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } |
49 | 49 | ||
50 | 50 | ||
51 | # Trusted path mechanism (deprecated) | 51 | # Trusted path mechanism (deprecated) |