Page 2 of 3

Re: check_http

Posted: Thu May 02, 2019 10:28 am
by nickanderson1982
Opening up port 443 worked. All test checks are working now. So how would I write up the cfg file. You gave me two examples, which one would work for 443?

Re: check_http

Posted: Thu May 02, 2019 11:05 am
by nickanderson1982
I didn't realize it was the same cfg file, I just compared. Do I need to make any adjustments to make it set for 443?

Re: check_http

Posted: Thu May 02, 2019 11:51 am
by npolovenko
@nickanderson1982, Make sure this command is working from the command line first:

Code: Select all

/usr/local/nagios/libexec/check_http -H xxx.xxxx.com -f follow -u "/api/api.asmx"
And if it does work, you don't need to make adjustments to the cfg.

Optionally, you can include -p 443 in the command:

Code: Select all

check_service_http! -f ok -p 443  -u '/api/api.asmx' 

Re: check_http

Posted: Thu May 02, 2019 2:53 pm
by nickanderson1982
I added everything in the cfg file and then added to the nagios.cfg file.

Under Hosts on the UI it shows the host as up, but when you go to the Services it has the URL Status / Critical / HTTP CRITICAL - No Data recieved from host.

How do I correct the Services portion?

Re: check_http

Posted: Thu May 02, 2019 3:19 pm
by npolovenko
@nickanderson1982, Please download the following file from the Core server and PM it to me on the forum:
/usr/local/nagios/var/objects.cache

Re: check_http

Posted: Thu May 02, 2019 3:57 pm
by nickanderson1982
How do I make the reply private? Or do I have to just PM the file?

Re: check_http

Posted: Thu May 02, 2019 4:05 pm
by npolovenko
@nickanderson1982, You'll just need to PM the file. After you send it, post a message here to bring this thread up to the support queue.

Re: check_http

Posted: Thu May 02, 2019 4:08 pm
by nickanderson1982
I just PM the file to you.
Took a minute because you can't post so soon after your last.

Re: check_http

Posted: Thu May 02, 2019 4:14 pm
by npolovenko
@nickanderson1982, I sent you the command to run in personal message. Let me know if that exact command works from the command line?

Re: check_http

Posted: Fri May 03, 2019 10:19 am
by nickanderson1982
I just private messaged you my response