check_http
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
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?
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
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?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check_http
@nickanderson1982, Make sure this command is working from the command line first:
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
/usr/local/nagios/libexec/check_http -H xxx.xxxx.com -f follow -u "/api/api.asmx"Optionally, you can include -p 443 in the command:
Code: Select all
check_service_http! -f ok -p 443 -u '/api/api.asmx' As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
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?
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?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check_http
@nickanderson1982, Please download the following file from the Core server and PM it to me on the forum:
/usr/local/nagios/var/objects.cache
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
How do I make the reply private? Or do I have to just PM the file?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check_http
@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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
I just PM the file to you.
Took a minute because you can't post so soon after your last.
Took a minute because you can't post so soon after your last.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check_http
@nickanderson1982, I sent you the command to run in personal message. Let me know if that exact command works from the command line?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
nickanderson1982
- Posts: 72
- Joined: Wed Feb 06, 2019 3:22 pm
Re: check_http
I just private messaged you my response