Opened 5 years ago
Closed 4 years ago
#241 closed task (fixed)
Check User via WMI
| Reported by: | brian.mcguire@… | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | 0.3.6 |
| Component: | CheckWMI | Version: | 0.3.4 |
| Severity: | Support Requests | Keywords: | |
| Cc: |
Description
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.
Thanks,
Brian
Change History (2)
comment:1 Changed 5 years ago by mickem
- Milestone changed from 0.4.0 to 0.3.6
- Status changed from new to assigned
comment:2 Changed 4 years ago by mickem
- Resolution set to fixed
- Status changed from assigned to closed
thanx...
Note: See
TracTickets for help on using
tickets.









Thanx...