Good morning,
I request your support with the Check for Active Directory Accounts plugin (https://exchange.nagios.org/directory/P ... ts/details) which when I run it from my Nagios server following the link procedure, the following error appears:
[root @ localhost ~] # ./check_nrpe -H 192.168.1.20 -n -c check_ad_account -a AccountInactive "dc = mydomain, dc = com" subtree 5 10
CHECK_NRPE: Receive header underflow -only 0 bytes received (4 expected)
The version of the NRPE that I have is 3.2.1, my Centos Nagios server is version 4.4.5, the Windows Domain server is Windows Server 2012 R2.
It should be noted that I have also tried to do it by following the link (https://www.bujarra.com/nagios-checkean ... io-activo/) but when creating the command from the CLI Nagios shows me the result of invalid arguments.
I thank you in advance for any support.
Error plugin Check for Active Directory Accounts
Re: Error plugin Check for Active Directory Accounts
I get a 404 on the documentation you linked, so it's hard to offer insight there. Best I can do is speculate at this point.
I assume 192.168.1.120 is the WIndows Server 2012 R2 host? What sort of NRPE server is provided on the Windows host? I assume you're using NSClient++, in which case the NSClient++ version is as relevant as the check_nrpe plugin version.
The most common reason to see that "Receive header underflow" message is because the NRPE server (which may be running under NSClient++) is not correctly configured to accept command arguments.
I assume 192.168.1.120 is the WIndows Server 2012 R2 host? What sort of NRPE server is provided on the Windows host? I assume you're using NSClient++, in which case the NSClient++ version is as relevant as the check_nrpe plugin version.
The most common reason to see that "Receive header underflow" message is because the NRPE server (which may be running under NSClient++) is not correctly configured to accept command arguments.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Error plugin Check for Active Directory Accounts
How are you, thanks for the answers. My version of Nsclient is 0.5.2035. Could you tell me what configuration I should take into account or parameters to consider so that the command can work.
Re: Error plugin Check for Active Directory Accounts
Have a look at the SSL/TLS settings in nsclient.ini and in the check_nrpe command. I'd guess there's a mismatch there...
Re: Error plugin Check for Active Directory Accounts
Please attach a sanitized copy of your nsclient.ini so we can see how it's setup.
Thank you!
Thank you!
Re: Error plugin Check for Active Directory Accounts
Good morning,
I attach my nsclient file,
Kind regards.
I attach my nsclient file,
Kind regards.
- Attachments
-
- nsclient.ini
- (1.09 KiB) Downloaded 204 times