From 44a321cb8a42d6c0ea2d96a1086a17f2134c89cc Mon Sep 17 00:00:00 2001 From: Ethan Galstad Date: Thu, 28 Feb 2002 06:42:51 +0000 Subject: Initial revision git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2 f882894a-f735-0410-b71e-b25c423dba1c --- contrib/maser-oracle.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/maser-oracle.pl (limited to 'contrib/maser-oracle.pl') 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;} + -- cgit v1.2.3-74-g34f1