on-internet
← Community

nagios check_http HTTP CRITICAL - Unable to open TCP socket, works fine from command line

Stack Overflow ·

I have the following service definition: define service{ use my-service ; Name of service template to use host_name dra service_description https://www.example.com check_command check_http!-I my.ip.address --ssl -H www.example.com notifications_enabled 1 retry_check_interval 2 normal_check_interval 5 contact_groups myadmins } The service check keeps failing with Name or service not known HTTP CRITICAL - Unable to open TCP socket However, if I run http_check from the command line, I get a 200 OK result: /usr/lib/nagios/plugins/check_http -I my.ip.address --ssl -H www.example.com -v ..... HTTP O

Comments

Sign in or sign up to comment and upvote.

No comments yet.