Nagios check specific URL with check_http

To check specific url with check_http use following command

$ /usr/lib/nagios/plugins/check_http -H <hostname> -f follow 
  -u <pageYouAreLookingFor>

Where hostname is host name of the website that you want to check.


To check url use following command:

$ /usr/lib/nagios/plugins/check_http -H -f follow 
  -u "/project/about-ubuntu"


HTTP OK: HTTP/1.0 200 OK – 12724 bytes in 0.503 second response time |time=0.503498s;;;0.000000 size=12724B;;;0


By Sandeep Posted in Nagios

2 comments on “Nagios check specific URL with check_http

    • Use -S with check_http plugin.
      /usr/lib/nagios/plugins/check_http -H yourHostName -S
      HTTP OK: HTTP/1.1 200 OK – 21408 bytes in 0.359 second response time |time=0.358644s;;;0.000000 size=21408B;;;0

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s