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????
check_wmi_plus.pl USERS Last logon
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_wmi_plus.pl USERS Last logon
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
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
-
- Posts: 2
- Joined: Wed Mar 28, 2018 2:11 am
Re: check_wmi_plus.pl USERS Last logon
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_wmi_plus.pl USERS Last logon
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
Here is the documentation on the Ini file
http://www.edcint.co.nz/checkwmiplus/?q ... esHeadPage