check_nrpe using NSClient++ gives random socket timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
Futureweb
Posts: 1
Joined: Thu Mar 21, 2024 5:33 am

check_nrpe using NSClient++ gives random socket timeout

Post by Futureweb »

Hey there,
already roamed through dozens of postings here - but unfortunately none of them helped me solving this problem. Maybe one of you got another idea which helps me?! :-)

I'm using check_nrpe to NSClient++ for Monitoring some Windows Servers.
"Normal" Checks (Disk/CPU/Memory/...) all working fine and reliable, but the "Check HyperV Replication Status" Check is flapping massively. About every other check it gets "Socket Timeout" ... Already tried different Versions of check_nrpe - example:

Code: Select all

#  /dl/nrpe-4.1.0/src/check_nrpe  -H server.dom.tld -t 60 -u -p 5668 -c CheckHyperVReplica  -2 -4
Normal
#  /dl/nrpe-4.1.0/src/check_nrpe  -H server.dom.tld-t 60 -u -p 5668 -c CheckHyperVReplica  -2 -4
Normal
#  /dl/nrpe-4.1.0/src/check_nrpe  -H server.dom.tld -t 60 -u -p 5668 -c CheckHyperVReplica  -2 -4
CHECK_NRPE STATE UNKNOWN: Socket timeout after 60 seconds.
#  /dl/nrpe-4.1.0/src/check_nrpe  -H server.dom.tld -t 60 -u -p 5668 -c CheckHyperVReplica  -2 -4
Normal
#  /dl/nrpe-4.1.0/src/check_nrpe  -H server.dom.tld -t 60 -u -p 5668 -c CheckHyperVReplica  -2 -4
CHECK_NRPE STATE UNKNOWN: Socket timeout after 60 seconds.
So it's completely random when it fails and when it succeeds. When executing the Check Hyper-V Replica PS Script on Server it always responds in time (5-15 seconds) and never failed / timeout.

Anyone any idea on this? :-)

Thank you
Andy
bbahn
Posts: 112
Joined: Thu Jan 12, 2023 5:42 pm

Re: check_nrpe using NSClient++ gives random socket timeout

Post by bbahn »

Hello @Futureweb,

The NSClient project is not owned or maintained by Nagios. NSClient++ is a third party agent that we do not develop or support and we are encouraging our customers to migrate to the Nagios Cross Platform Agent (NCPA) which is being developed by Nagios and will be supported moving forward.

If you still want to use NSClient, you can try using an older version of the check_nrpe plugin, but we suggest trying NCPA.
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply