WMI Wizard on nagios XI 5.5.4 Evaluation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cafetechla
Posts: 8
Joined: Fri Sep 21, 2018 5:22 pm

Re: WMI Wizard on nagios XI 5.5.4 Evaluation

Post by cafetechla »

Yes.

Perhaps you missed the part of the thread where I stated that if I input the user name and password directly into the boxes for User Name and Password in the wizard, I can connect and enumerate and select WMI information to be monitored. However, if I specify using a password file, then the wizard does not complete and returns all of the error messages that I have included.

Clearly, the code in you wizard is not properly formatting the information from the password file. Sticking the domain information AFTER the user name, rather than BEFORE the user name, in the direct check_wmi statement also does not work.

I want to use a password file to mask the authentication information; I don't want that information in each host.cfg file. You need to fix your wizard to stop injecting WORKGROUP into the authentication string, and to properly format the authentication string to allow for the use of a password file.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: WMI Wizard on nagios XI 5.5.4 Evaluation

Post by scottwilkerson »

Sorry about that, I did miss it.

I created a new file to match yours and ran this command from the CLI and it worked correctly on our server

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H 192.168.5.80 -A /usr/local/nagios/etc/westlake.cfg -m checkdrivesize -a 'C': -w '80' -c '95'
here was the content of my /usr/local/nagios/etc/westlake.cfg

Code: Select all

username=swilkerson
password=(password redacted)
domain=nagios
I am running version 1.6

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.6
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cafetechla
Posts: 8
Joined: Fri Sep 21, 2018 5:22 pm

Re: WMI Wizard on nagios XI 5.5.4 Evaluation

Post by cafetechla »

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

Re: WMI Wizard on nagios XI 5.5.4 Evaluation

Post by scottwilkerson »

cafetechla wrote:yes
Is your auth file setup just like mine?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked