I’m trying to check some rows from MySQL-database via “check program”, but I always get the error message from the title.
I’ve found a similar issue here, but that doesn’t solve my case.
The script looks like this:
#!/bin/bash target='/var/www/bbb/server/images/'; result='' data=$(mysql --login-path=client -e "USE *db here*; \ SELECT * FROM *table here* \ FROM biergarten b \ ); [...] *if all good* exit 0, else exit 1;
check program images with path /root/scripts/check_images every 144 cycles if status != 0 then alert
Needless to say that the script works smooth when called from command line.
Can anybody give me a hint?