You can use the check_http plugin for this.
https://assets.nagios.com/downloads/nag ... vices.html - see 'Monitoring HTTP' section
Here is the man page for this plugin:
http://nagios-plugins.org/doc/man/check_http.html
Note that check_http requires separation between fqdn and full path by using flag -u
Good example (using
http://www.pbs.org/shows/)
Code: Select all
./check_http -H www.pbs.org -u /shows/
Where this will NOT work:
Code: Select all
./check_http -H www.pbs.org/shows/
Suppose the above site is hosted on a non-standard port, like your example, then just append it with the flag -p
Code: Select all
./check_http -H www.pbs.org -u /shows/ -p 123456
*You can test these checks manually from your Nagios server, 1st go to this directory /usr/local/nagios/libexec
Once in that location run "./plugin-name" with the appropriate flags you want to check.
To get help/usage info about any plugin run "./plugin-name -h"
Hope this helps, certainly let us know if you have any other questions, thanks.