I am attempting to monitor RD Gateway Connections to see if anyone is logged in. My WMI query is
SELECT UserName FROM Win32_TSGatewayConnection
I have successfully created a WQL file and a simple sensor in PRTG, which returns the result <domain>\<username> when 1 user is logged in. I'm not sure yet what happens, or what result is shown, when more than 1 person is logged in.
Anyway, I have a few issues:
1. The query result (the username) is shown as the 'sensor message', rather than as a 'channel' value - how can I show the username(s) as channel values?
If it is not possible to list names of logged in users, perhaps I could simply query the total number of logged in users?
2. When no users are logged in the sensor appears 'down' as no results are returned. How can I change it so that this does not cause the sensor to go down?
Under 'Scanning Interval' settings, there are options for 'If a Sensor Query fails' but the only options available are 'set sensor to warning for x intervals, then set to down'.
3. There are two default channels created; Downtime and Response Time. I'm not interested in either. Can I create my own channels in the query? Can I remove the default channels?
This is my first time setting up a WMI custom query. I have read the /help/wmi_custom_string_sensor.htm page, but I don't understand how a lot of the settings relate to my query.
Any help would be appreciated. Thanks