check_wmi_plus.pl USERS Last logon

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
engmatecadmin
Posts: 2
Joined: Wed Mar 28, 2018 2:11 am

check_wmi_plus.pl USERS Last logon

Post by engmatecadmin »

Windows CMD: wmic /node: "HOSTNAME" COMPUTERSYSTEM GET USERNAME
UserName
DOMAIN\USER

How does it work on Nagios? /check_wmi_plus.pl -H HOST -u domain/user -p password -m checkservice --extrawmicarg????
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_wmi_plus.pl USERS Last logon

Post by scottwilkerson »

What exactly do you mean "How does it work on Nagios?"
There is info here on the authors page
http://www.edcint.co.nz/checkwmiplus/?q=quickstart

You can find example commands here
http://www.edcint.co.nz/checkwmiplus/?q ... mmandlines
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
engmatecadmin
Posts: 2
Joined: Wed Mar 28, 2018 2:11 am

Re: check_wmi_plus.pl USERS Last logon

Post by engmatecadmin »

Hi,

what I want is to read the last logonuser via wmi on the Windows client.
But i'm not able to because i did't find the rigth syntax for this comand with checkwmiplus.
To read out the Ip address or cpu is no problem.

Basically, is it possible to read out the last logon-user via checkwmiplus?

Thank you for help.

Regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_wmi_plus.pl USERS Last logon

Post by scottwilkerson »

I'm not sure what the query would be, but to do this you would need to create a new check in the ini file that retrieved this information.

Here is the documentation on the Ini file
http://www.edcint.co.nz/checkwmiplus/?q ... esHeadPage
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked