#!/bin/sh

HOST=$1
SID=$2
USER=$3
PASS=$4

PATH=$PATH:/usr/java/bin
CLASSPATH=./classes12.jar:.

java -classpath $CLASSPATH NagiosDBTest jdbc:oracle:thin:@$HOST:1521:$2 $3 $4 "select 'ACCESS_SUCCESS' from dual"
