I'm trying to run an SSH script sensor on my freebsd 9.2 p9 and are running into an obstacle. Script sensors are running fine on my Ubuntu 14 and Debian 7. Problem is that PRTG can't seem to find /var/prtg/scripts/.
The error message shows up in the windows where I choose which script to run.
"/: Event not found."
Please, anyone that could help me out? I know SSH sensors are able to run on my BSD since the disk-usage sensor works just fine.
Hope there's nothing wrong with my script.
/var/prtg/scripts/disk.sh
#!/bin/bash LowTemp="12" HighTemp="35" Temp=$(smartctl -A /dev/$1 | grep 194 | cut -d: -f3 | awk '{print $10}') for Temp in $Temp do if [ "$Temp" -lt "$LowTemp" ] then echo "1:$Temp:Disk temperature is low." break fi if [ "$Temp" -gt "$HighTemp" ] then echo "1:$Temp:Disk temperature is high." break else echo "0:$Temp:OK" fi done
Regards Patrik
Add comment