check_http and ports

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.
Locked
dfunk
Posts: 2
Joined: Wed Aug 17, 2011 2:52 pm

check_http and ports

Post by dfunk »

I want to check this webpage: http://otstweb.foo.com:8000/OA_HTML/jtflogin.jsp.

Somehow, I cannot find the correct syntax (I had to remove the "http://" from the beginning of the -u argument, so the forum wouldn't think I'm trying to post an actual URL).

None of these work:
check_http -H otstweb.foo.infoblox.com -u otstweb.foo.infoblox.com/OA_HTML/jtflogin.jsp -p 8000
check_http -H otstweb.foo.infoblox.com -u otstweb.foo.infoblox.com:8000/OA_HTML/jtflogin.jsp -p 8000
check_http -H otstweb.foo.infoblox.com -u otstweb.foo.infoblox.com:8000/OA_HTML/jtflogin.jsp
check_http -H otstweb.foo.infoblox.com:8000 -u otstweb.foo.infoblox.com/OA_HTML/jtflogin.jsp
check_http -H otstweb.foo.infoblox.com:8000 -u otstweb.foo.infoblox.com/OA_HTML/jtflogin.jsp -p 8000

This *does*work, but I want to check the above path, not this one:
check_http -H otstweb.foo.infoblox.com -u http://otstweb.foo.infoblox.com -p 8000

Any ideas?

- dave -
gimmer
Posts: 4
Joined: Fri Aug 19, 2011 12:21 pm

Re: check_http and ports

Post by gimmer »

You can try:

check_http -H otstweb.foo.infoblox.com -u /OA_HTML/jtflogin.jsp -p 8000
dfunk
Posts: 2
Joined: Wed Aug 17, 2011 2:52 pm

Re: check_http and ports

Post by dfunk »

>>You can try:
>>
>> check_http -H otstweb.foo.infoblox.com -u http://OA_HTML/jtflogin.jsp -p 8000

That worked perfectly!!!! Thank you!!

- dave -
Locked