Hello community I’m here again for a second question, I need to make nscp and nrpe tests on Windows machines, to practice, I chose to make checks on my Windows computer from my supervision machine which is hosted on a Proxmox.
Please bear with me as I’m a novice and don’t use Direktor. Could you describe the procedure step by step?
Thank you for your time
I understand that my question is a lot to ask, so I’m going to dive into the documentation for a few days and come back to you with more specific questions.
I can now ask a more precise question, I’ve set up a template like this:
template Host “studio_template” {
check_command = “check_nrpe”
}
Then a command like this:
object CheckCommand “check_nrpe” {
import "icinga-check-command
import “nrpe”
}
Then my host, which is my computer, like this:
object Host “pc” {
import "studio_template
address = “10.163.114.24”
}
All this works in the GUI, but the answer is as follows:
CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 10.163.114.24: 1
When I try the :
/usr/lib/nagios/plugins/check_nrpe -H 10.163.114.24 -g /home/nrpe.log
I get the same answer.
I want to do nrpe checks without ssl , I don’t know how to indicate it in the scripts but when I try the command :
/usr/lib/nagios/plugins/check_nrpe -H 10.163.114.24 -n -g /home/nrpe.log
I get the answer :
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
and in the logs :
[1694705456] Remote 10.163.114.24 does not support version 3/4 packets
[1694705456] Remote 10.163.114.24 accepted a version 2 packet
I’d like to know how to script the fact that I’m not using ssl and how to correct this problem. I’ve installed the latest nsclient version on my Windows10 machine and the latest nrpe version on Ubuntu 22 LTS.
C’est bon je suis passé par le check_nt , merci
On the other hand, it’s true that when asked why the order:
/usr/lib/nagios/plugins/check_nrpe -H 10.163.114.24 -n
returns :
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
I haven’t found the solution, does anyone have an opinion to share?
LOGS:
[1695217269] Remote 10.163.114.24 does not support version 3/4 packets
[1695217269] Remote 10.163.114.24 accepted a version 2 packet