mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
235 stars 91 forks source link

Timeout on check_nscp_nrpe and check_nscp not working #708

Open Maxime1012 opened 3 years ago

Maxime1012 commented 3 years ago

Issue and Steps to Reproduce

For some reason the timeout flag on both check_nscp_nrpe and check_nscp is not working. just as an example run : check_nscp host=1.1.1.1 timeout=2 You will see it will timeout after 2 minutes instead of 2 seconds (the default 10 seconds also is not working)

check_nscp host=1.1.1.1 timeout=2

Expected Behavior

Timeout flag should work and close connection after 2 seconds if no response

Actual Behavior

connection stays open for 2 minutes before it dies.

Details

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE