WMI Error Output: ERROR: Login to remote object.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mamir
Posts: 62
Joined: Tue Mar 12, 2019 9:50 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by mamir »

Hello Support,
I wonder, if a domain user account even works anymore, can you test one time in your environment to see if your able to have it work with a target server being windows 2012 R2? Please, check/confirm.
mamir
Posts: 62
Joined: Tue Mar 12, 2019 9:50 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by mamir »

Quick questions, does nagios xi has to be part of AD in order for domain user account to authenticate for a target host for WMI to work? May that might be the issue here.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by cdienger »

A domain user account will work and the XI server does not need to be a part of the domain.

Try forcing the check_wmi_plus command to use NTLMv2 by editing check_wmi_plus.conf and changing line 85:

our @opt_extra_wmic_args=("--option=client ntlmv2 auth=Yes");

Also look at the properties on the user, go to the Logon On To... button - What is set here? Try setting it to "All computers" if it is not already.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by tgriep »

Your question
Also when I put username does has it this format: domain/username

Yes, you have to use the forward slash for the user account.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mamir
Posts: 62
Joined: Tue Mar 12, 2019 9:50 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by mamir »

Hello Support,

I have changed the below line see the text on line 85, I did WinSCP. Do I need to restart anything?

Also, what do you exactly means by user account on all computers? didn't understand, where do I change it? Please, clarify.

I tried it again, still the same issue.

# extra wmic args
# specify standard additional arguments to pass directly to the wmic command line for ALL invocations of wmic
# Note that the command line parameter --extrawmicarg is also available if you need this on a case by case basis
# This is an array so you need to put each argument into a separate array index
# eg @opt_extra_wmic_args=( "argument1=value1", "argument2=value2" );
# should be set to @opt_extra_wmic_args=() if not used
# extra wmic arguments specified on the command line are added to the ones specified here
our @opt_extra_wmic_args=("--option=client ntlmv2 auth=Yes"); # extra arguments to pass to wmic
mamir
Posts: 62
Joined: Tue Mar 12, 2019 9:50 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by mamir »

Hello Support,

Just to keep you updated, good news, now its finally working, it looks like adding this command did the trick for us.
our @opt_extra_wmic_args=("--option=client ntlmv2 auth=Yes");

& also, I wanted to add that adding the domain user into local Administrator group & Performance Monitor Users group was required.

I believe (Performance Monitor Users group), if its not in your instruction, please update that in your document.

Once last thing, please provide me link to the document instructions for anything additional needs to be done after I have added all my servers via

WMI, once I add the server, when I go under HostManagement & select a specific server, there are tabs like common settings, check settings, alert
settings, misc settigns, & under common settings what check command do I need to select etc, if any additional settings, i need to select. Please, do

let me know, instructions link might be helpful. Also, send instructions of adding Urls internal/external etc. Thanks much for your support.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WMI Error Output: ERROR: Login to remote object.

Post by tgriep »

Thanks for the feedback. We'll get the document updated with the changes that you had to do to get this working.

The question for setting up the Host and Services on the Nagios Server, I have provided some links that talk about those settings. See below.
https://assets.nagios.com/downloads/nag ... gement.pdf
https://assets.nagios.com/downloads/nag ... gement.pdf

Take a look at them and if you have any questions, let us know.

Also, you can look at the KB site for other articles, tips and troubleshooting guides.
https://support.nagios.com/kb/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked