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.
WMI Wizard on nagios XI 5.5.4 Evaluation
-
cafetechla
- Posts: 8
- Joined: Fri Sep 21, 2018 5:22 pm
-
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
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
here was the content of my /usr/local/nagios/etc/westlake.cfg
I am running version 1.6
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'Code: Select all
username=swilkerson
password=(password redacted)
domain=nagiosCode: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.6-
cafetechla
- Posts: 8
- Joined: Fri Sep 21, 2018 5:22 pm
-
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
Is your auth file setup just like mine?cafetechla wrote:yes