check_wmi_plus.pl USERS Last logon

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_wmi_plus.pl USERS Last logon

Postby engmatecadmin » Thu Oct 04, 2018 8:53 am

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????
engmatecadmin
 
Posts: 2
Joined: Wed Mar 28, 2018 2:11 am

Re: check_wmi_plus.pl USERS Last logon

Postby scottwilkerson » Thu Oct 04, 2018 1:02 pm

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=faq_examplecommandlines
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12020
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_wmi_plus.pl USERS Last logon

Postby engmatecadmin » Fri Oct 05, 2018 8:12 am

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
engmatecadmin
 
Posts: 2
Joined: Wed Mar 28, 2018 2:11 am

Re: check_wmi_plus.pl USERS Last logon

Postby scottwilkerson » Fri Oct 05, 2018 9:26 am

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=IniFilesHeadPage
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12020
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests