Hi there,
I´m stuck a little and hope, someone can help me out...
I try to monitor the remaining days (grace period) on a terminal server with PRTG. On the server, this can pretty easy be done with an elevated prompt:
{{{C:\WINDOWS\system32>wmic /namespace:
root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDays
(
<servername>\root\CIMV2\TerminalServices:Win32_TerminalServiceSetting.ServerName="servername")->GetGracePeriodDays() wird ausgeführt
Methode wurde ausgeführt.
Ausgabeparameter:
instance of __PARAMETERS
{
DaysLeft = 20;
ReturnValue = 0;
};}}}
I think, the correct way is a wmicustomsensor, but I don´t know how the WQL-Script should look... Can anybody help me out?
Additionally, warning and error notifications would be fine, like its done for the SSL-Certificates.
Thanks in advance!
Add comment