#!/bin/bash
#
# NagCollect -- Nagios Data Collector for Passive Checks
-# Copyright (c)2009-2011 Alexander Barton, alex@barton.de
+# Copyright (c)2009-2012 Alexander Barton, alex@barton.de
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
exit 3
fi
-if [ -r /usr/local/lib/nagcollect/"$1.tst" ]; then
+if [ -r "$1" ]; then
+ tst="$1"
+elif [ -r /usr/local/lib/nagcollect/"$1.tst" ]; then
tst=/usr/local/lib/nagcollect/"$1.tst"
elif [ -r /usr/local/lib/nagcollect/`uname`/"$1.tst" ]; then
tst=/usr/local/lib/nagcollect/`uname`/"$1.tst"