Page 1 of 1

check_wmi_plus.pl USERS Last logon

Posted: Thu Oct 04, 2018 8:53 am
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????

Re: check_wmi_plus.pl USERS Last logon

Posted: Thu Oct 04, 2018 1:02 pm
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

Re: check_wmi_plus.pl USERS Last logon

Posted: Fri Oct 05, 2018 8:12 am
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

Re: check_wmi_plus.pl USERS Last logon

Posted: Fri Oct 05, 2018 9:26 am
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