check_wmi_plus checkeventlog response is 0 entries
-
Chris Hardick
- Posts: 33
- Joined: Mon Mar 25, 2019 5:40 am
check_wmi_plus checkeventlog response is 0 entries
Hi
I am running Nagios XI 5.6.2, using the check_wmi_plus plugin (v1.6) to interrogate a Windows 10 PC
We have set up a minimal permission account on the Windows PC for the remote monitoring.
Most service checks set up are working perfectly, but checkeventlog always returns 0 entries when I know there are entries present
the service parameters are:
-a system,application, security -o 1,2,3,4,5 -3 24
I have run the query from the Nagios XI VM command line with /d option and it still returns no errors, but 0 entries.
If I run powershell on the Win 10 PC (logged in with minimal permission account), and interrogate WMIC using the query that can be seen at the start of the VM command line /d output I get the expected entries returned
Any ideas why I am not getting anything returned?
Thanks for any help
Chris
I am running Nagios XI 5.6.2, using the check_wmi_plus plugin (v1.6) to interrogate a Windows 10 PC
We have set up a minimal permission account on the Windows PC for the remote monitoring.
Most service checks set up are working perfectly, but checkeventlog always returns 0 entries when I know there are entries present
the service parameters are:
-a system,application, security -o 1,2,3,4,5 -3 24
I have run the query from the Nagios XI VM command line with /d option and it still returns no errors, but 0 entries.
If I run powershell on the Win 10 PC (logged in with minimal permission account), and interrogate WMIC using the query that can be seen at the start of the VM command line /d output I get the expected entries returned
Any ideas why I am not getting anything returned?
Thanks for any help
Chris
Re: check_wmi_plus checkeventlog response is 0 entries
Can you run the following command from the CLI, and show the output? (Hide/obfuscate sensitive data)
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl -H <ip address> -u '<username>' -p '<password>' -m checkeventlog -a system,application, security -o 1,2,3,4,5 -3 24 --extrawmicarg "--debuglevel=4"Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Chris Hardick
- Posts: 33
- Joined: Mon Mar 25, 2019 5:40 am
Re: check_wmi_plus checkeventlog response is 0 entries
Hi
Thanks for helping, here is the output
Thanks for helping, here is the output
You do not have the required permissions to view the files attached to this post.
Re: check_wmi_plus checkeventlog response is 0 entries
It seems like you are using kerberos. I am not sure if this is what is causing the issue. Can you try to set check_wmi_plus to use NTLMv2 and see if this is going to fix the issue?
https://www.rootusers.com/implement-ntl ... rver-2016/
Some users reported that adding the following option to their command fixed similar issues:
Hope this helps.
https://www.rootusers.com/implement-ntl ... rver-2016/
Some users reported that adding the following option to their command fixed similar issues:
Code: Select all
--extrawmicarg --option"client ntlmv2 auth"=yesBe sure to check out our Knowledgebase for helpful articles and solutions!
-
Chris Hardick
- Posts: 33
- Joined: Mon Mar 25, 2019 5:40 am
Re: check_wmi_plus checkeventlog response is 0 entries
Hi
I tried your suggestion though as written it came up with an error with the query usage, i had to use
but this didnt change the result when I used the debuglevel=4 option. Maybe I have still got the argument wrong?
I have read that kerberos doesnt work with IP addresses, but I assume the check will automatically then use NTLM
Thanks for your help
Chris
I tried your suggestion though as written it came up with an error with the query usage, i had to use
Code: Select all
--extrawmicarg "--option=client ntlmv2 auth=yes"I have read that kerberos doesnt work with IP addresses, but I assume the check will automatically then use NTLM
Thanks for your help
Chris
Re: check_wmi_plus checkeventlog response is 0 entries
Chris, what happens if you try using the FQDN instead of an IP address?
Edit:
Also try:
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl -H FQDN -u '<username>' -p '<password>' -m checkeventlog -a system,application, security -o 1,2,3,4,5 -3 24 --extrawmicarg "--debuglevel=4"Also try:
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl -H FQDN -u '<username>' -p '<password>' -m checkeventlog -a system,application, security -o 1,2,3,4,5 -3 24 --extrawmicarg "--debuglevel=4" -d -d -dBe sure to check out our Knowledgebase for helpful articles and solutions!
-
Chris Hardick
- Posts: 33
- Joined: Mon Mar 25, 2019 5:40 am
Re: check_wmi_plus checkeventlog response is 0 entries
Hi
Unfortunately the system in which we are trying to use these checks does not use domain names, only IP addresses. We dont have a DNS setup, and it is not possible to accommodate one.
Unfortunately the system in which we are trying to use these checks does not use domain names, only IP addresses. We dont have a DNS setup, and it is not possible to accommodate one.
Re: check_wmi_plus checkeventlog response is 0 entries
Run the command with the IP address then:
Hopefully, the extra "d"s will provide more verbose output. If we don't fine any clues in the output, we would have to move this to a ticket, and probably schedule a remote session to further troubleshoot the issue.
You can open a ticket via our support center here:
https://support.nagios.com/tickets/
Code: Select all
/usr/local/nagios/libexec/check_wmi_plus.pl -H <ip address>-u '<username>' -p '<password>' -m checkeventlog -a system,application, security -o 1,2,3,4,5 -3 24 --extrawmicarg "--debuglevel=4" -d -d -dYou can open a ticket via our support center here:
https://support.nagios.com/tickets/
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Chris Hardick
- Posts: 33
- Joined: Mon Mar 25, 2019 5:40 am
Re: check_wmi_plus checkeventlog response is 0 entries
Thanks
I have PMd the output file.
I have PMd the output file.
Re: check_wmi_plus checkeventlog response is 0 entries
Replied via a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!