Alright - I've been fighting with this for two days. It's time to ask for help.
I'm trying to set up a SSH sensor for a UNIX-based system to monitor the number of client application licenses we are using for a proprietary application. We have a script tool from the software vendor that returns the licenses in use and we were using another network monitoring software with this script to return an integer value that we monitored.
So, I've already gotten through that I need to update the output value to exitcode:value:message and we had to create a custom wrapper script to output values in this manner. The script is as follows:
print 0:$(/var/prtg/scripts/uvlictool |grep "license seats are in use" |cut -d " " -f 1):OK
When you run the script in the UNIX command line, it outputs exactly as the syntax requires. It also outputs the same if you pipe it into a file like output.txt. It will return output that looks exactly like so:
0:204:OK
The issue is though, whenever I run this script as a sensor in PRTG, I only get back an error code of "No valid input from SSH Shell". I'm at a loss here. Nothing in the logs to even begin pointing me to what I am doing wrong. I just got no data and a sensor in an alarm state. I've tried changing the output to print, printf, echo, different formatting changes... none of which has changed any of the above results.
Add comment