diff options
Diffstat (limited to 'contrib/maser-oracle.pl')
-rw-r--r-- | contrib/maser-oracle.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/maser-oracle.pl b/contrib/maser-oracle.pl new file mode 100644 index 00000000..aa2741f1 --- /dev/null +++ b/contrib/maser-oracle.pl @@ -0,0 +1,13 @@ +#!/usr/bin/perl + +# Oracle plugin submitted by Christopher Maser (maser@onvista.de) +# 12/31/1999 + +my $host=$ARGV[0]; +my @test=`tnsping $host`; +my $arg=$test[6]; +chomp $arg; +if ($arg =~ /^OK (.*)/) +{print "$arg"; exit 0} +else {exit 2;} + |