Ticket #241 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by mickem

  • Status changed from new to assigned
  • Milestone changed from 0.4.0 to 0.3.6

Thanx...

comment:2 Changed 3 years ago by mickem

  • Status changed from assigned to closed
  • Resolution set to fixed

thanx...

Note: See TracTickets for help on using tickets.