check_ad 1.5 fails on Windows Server 2012 with "Unknown Windows version [2:6:2]"

5 posts / 0 new
Last post
Lars
Offline
Last seen: 7 years 9 months ago
Joined: 06.02.2013 - 12:07
check_ad 1.5 fails on Windows Server 2012 with "Unknown Windows version [2:6:2]"

Hi out there,

check_ad workes perferctly fine for our Windoes Server 2003 server. We now added two new Windows Server 2012 machines to the domain as domain controllers. Unfortunately Monitoring these with check_ad 1.5 fails with an error "Unknown Windows version [2:6:2]".

Below is the out of a verbose run. Any ideas what's wrong here?

Thanks for the support in advance.

  Lars

 

c:\nagios\check_ad>check_ad.exe --verbose
Configuration file c:/nagios/check_ad/check_ad.config is found. Processing ..
Language mapping update: dcdiag_connectivity = passed test connectivity
Language mapping update: dcdiag_services = passed test services
Language mapping update: dcdiag_replications = passed test replications
Language mapping update: dcdiag_advertising = passed test advertising
Language mapping update: dcdiag_fsmo = passed test fsmocheck
Language mapping update: dcdiag_rid = passed test ridmanager
Language mapping update: dcdiag_machine = passed test machineaccount
Language mapping update: dcdiag_frssysvol = passed test frssysvol
Language mapping update: dcdiag_sysvolcheck = passed test sysvolcheck
Language mapping update: dcdiag_frsevent = passed test frsevent
Language mapping update: dcdiag_kccevent = passed test kccevent
Language mapping update: dcdiag_dfrsevent = passed test dfsrevent
Language mapping update: dcdiag_warning = warning
Language mapping update: dcdiag_failed = failed
Language mapping update: netdiag_global_results = global results:
Language mapping update: netdiag_domain_membership = domain membership test . . . . . . : passed
Language mapping update: netdiag_netbt_transports = netbt transports test. . . . . . . : passed
Language mapping update: netdiag_dns = dns test . . . . . . . . . . . . . : passed
Language mapping update: netdiag_dc_discovery = dc discovery test. . . . . . . . . : passed
Language mapping update: netdiag_ldap = ldap test. . . . . . . . . . . . . : passed
Language mapping update: netdiag_kerberos = kerberos test. . . . . . . . . . . . . : passed
Language mapping update: netdiag_warning = warning
Language mapping update: netdiag_fatal = fatal
Unknown Windows version [2:6:2] at /<c:\nagios\check_ad\check_ad.exe>Win32.pm line 199.
Use of uninitialized value in string eq at check_ad.pl line 98.
Unknown Windows version [2:6:2] at /<c:\nagios\check_ad\check_ad.exe>Win32.pm line 199.
Use of uninitialized value in string eq at check_ad.pl line 99.
Unknown Windows version [2:6:2] at /<c:\nagios\check_ad\check_ad.exe>Win32.pm line 199.
Use of uninitialized value in string eq at check_ad.pl line 100.
Unknown Windows version [2:6:2] at /<c:\nagios\check_ad\check_ad.exe>Win32.pm line 199.
Use of uninitialized value in string eq at check_ad.pl line 100.
Unknown Windows version [2:6:2] at /<c:\nagios\check_ad\check_ad.exe>Win32.pm line 199.
Use of uninitialized value in concatenation (.) or string at check_ad.pl line 102.

itefix
Offline
Last seen: 7 hours 8 min ago
Joined: 01.05.2008 - 21:33
check_ad version 1.6 with

check_ad version 1.6 with Windows 2012 support is now released. Please give it a try.

Lars
Offline
Last seen: 7 years 9 months ago
Joined: 06.02.2013 - 12:07
Thanks for the support. The

Thanks for the support. The result changed but unfortunately it's still not good engough.

Running chech_ad --dc from a command shell works fine but queried by nrpe results in

 

Status Information: AD UNKNOWN - No information is available.

itefix
Offline
Last seen: 7 hours 8 min ago
Joined: 01.05.2008 - 21:33
Please keep in mind that

Please keep in mind that check_ad uses dcdiag tool for its operations, from Microsoft documentation :

To use dcdiag, you must run the dcdiag command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator

Try to give admin privileges to the service account.

Lars
Offline
Last seen: 7 years 9 months ago
Joined: 06.02.2013 - 12:07
@tk: you were right: It was

@tk: you were right: It was finally a missing rights problem. Using check_ad 1.6 and having the correct permissions solved it. Works fine now. Thank you for your support.