I am using up.time server 7.2 on Linux. Â I have installed the Custom Remote Monitor plugin v2.1.
Â
I’ve setup a sample service monitor, following the documentation. Â I have been through the whole thing twice. Â Regardless when I try to run it via the ‘Test Service Monitor’ button on the Web GUI I always get this same error:
- Message: Failed to run script: Cannot run program “/usr/local/uptime/scripts/MonitorCustomRemote/custom_remote.sh” (in directory “scripts/MonitorCustomRemote”): error=2, No such file or directory
The script ‘custom_remote.sh’ is the one installed on the server by the plugin. Â I have verified the script is there, was installed executable and has the right permissions:
Â
I then looked at the script itself. Â This is what I find puzzling, as the script as it is written, won’t work on any Linux system:
Â
If you know Linux at all, you know that the path separator is ‘/’ and not ”, but the script uses ”.
Â
Further, and I know this is distro-dependent, but ‘#!/usr/bin/sh’ is not the correct location of ‘sh’ on many Linux systems. (That can easily be fixed of course.)
Â
But the path separator. Â No way, it just isn’t going to work.
Â
So, has ANYONE out there gotten this to work on Linux, and would you please post your custom_remote.sh script, point out where I may be mistaken, or otherwise provide some assistance?
Â
Thanks in advance,
Ted
Â
Â
Â