#241 closed task (fixed)
Check User via WMI
|Reported by:||brian.mcguire@…||Owned by:||mickem|
Took me about two hours of research and I wasn't able to find anyone doing this with Nagios so I hope this will be useful to those using NSClient.
A nightly process requires us to make sure a specific account is logged on, here is the Nagios command to check if a user is logged on.
$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c CheckWMI -a "Query=Select Antecedent from Win32_LoggedOnUser" MinCrit=0 +filter-string:Antecedent=substr:$ARG1$
Please post this where ever it may be useful.