Random Project

Not working for me

hi,
i get the following error if i try the script as root user:

root@…:/usr/lib/nagios/plugins# ./check_dyndns [email protected]
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
cat: /var/cache/nagios/check_dyndnsip.last: Datei oder Verzeichnis nicht gefunden
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
INTERNAL ERROR: Status code not properly set! [cache: no file] [query: no]

if i create the directory /var/cache/nagios/ and empty file /var/cache/nagios/check_dyndnsip.last, the following error appears:

root@…:/usr/lib/nagios/plugins# ./check_dyndns …@dyndns.org
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
./check_dyndns: 112: [[: not found
INTERNAL ERROR: Status code not properly set! [cache: no file] [query: no]