Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_http_content (updated)

Rating
2 votes
Favoured:
0
Current Version
1.0
Last Release Date
2013-04-29
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
43802
Files:
FileDescription
check_http_contentcheck_http_content
check_ntlm_http_content.shNTML Authentication support - non ssl
working-web.shThis version of web.sh works and uses elinks
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check_http_content-updated-

Nagios script by CapSiDE SL - has been updated to generate graphs for pnp4nagios


#------------------------------------------------------------------------------
# Updated by Vahid Hedayati April 2013 - (improves nagios plugin result)
# Performance data for graphing added:
# 1. time taken in milli seconds
# 2. content size
# Also added url and pattern match in alert output to make it easier to
# identify actual issue
# This matches the check_http performance layout
# and produces graphs in the same way
#------------------------------------------------------------------------------


./check_http_content -U http://www.google.com -m google

CONTENT OK: EXPR google FOUND on http://www.google.com|time=0.338781118392944s;;;0.000000 size=10770B;;;0
Just updated working-web.sh with https configuration

./working-web.sh https://google.com google
SESSION CONTENT OK: URL https://google.com returned google|time=0.480383ms;;;;0 size=0B;;;0
Reviews (2)
bysimak, January 6, 2016
Doesn't work with Joomla 3.x websites.
When the string is not found the script returns the whole website html content. I use Ubuntu 12.0x.
They both work great with an http address, but can either one work with an https address? If so, how?
Owner's reply

Hi Dhaff713 try the working-web.sh I have just added https will add it to the web.sh but take a look at github - noticed on 302 moved url's it does not work too well

Changed web.sh to use netcat rather than built in elinks command this will be very difficult to make work with https (netcat)

I will have a good think about this may end up writing the entire thing in java which will support all aspects with easy to use libraries