Hello Goebel,
As PRTGToolsFamily confirmed/pointed out, that query outputs more than a single value, PRTG will only receive a single value as query result, since the query returns the variable name column too, that causes the sensor to go into error.
Your current query would be equivalent to this:
SELECT * FROM information_schema.`GLOBAL_STATUS`
WHERE VARIABLE_NAME IN ('UPTIME')
But as documented in the Sensor's manual page:
Enter a valid SQL statement to execute on the server. In your SELECT statement, please specify the field name explicitly. Do not use SELECT *! For example, a correct expression could be: SELECT AVG(UnitPrice) FROM Products. |
Consider using something like this in the sensor instead:
SELECT VARIABLE_VALUE FROM information_schema.`GLOBAL_STATUS`
WHERE VARIABLE_NAME IN ('UPTIME')
That will return only:
Add comment