Download the PHP package cytopia/check_http_expect without Composer
On this page you can find all versions of the php package cytopia/check_http_expect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cytopia/check_http_expect
More information about cytopia/check_http_expect
Files in cytopia/check_http_expect
Package check_http_expect
Short Description Nagios plugin to check for a string/regex on a webpage. Also works behind .htaccess and POST login.
License MIT
Homepage https://github.com/cytopia/check_http_expect
Informations about the package check_http_expect
check_http_expect
Nagios plugin that will check a website (behind .htacess and/or behind POST login) for an expected string based on a simple string or regex expression.
Find more plugins at Awesome Nagios | |
---|---|
Find more plugins at Icinga Exchange | |
Find more plugins at Nagios Exchange |
1. Usage
2. Generic Examples
2.1 Search simple string
Check if a website contains the word google
2.2 Search via regex
Check if a website contains the the following regex [0-9]+
2.3 .htaccess protection
Check behind a .htaccess protected website for the string Your site is secured
2.4 POST Login
Login to at http://www.example.com/login.php
with POST data usernameFieldName=John
, passwordFieldName=pass
, submit=1
, go to http://www.example.com
and check for the regex [0-9]+
Note: htaccess and POST login can also be combined.
2.5 Set Cookies
Send a request with a custom cookie
2.6 Multiple Search-Strings and different user-agent
When searching for multiple strings on the same page, its not necessary to do multiple requests.
Just specify as many find
-parameters as you need.
You may want to change the user-agent with the parameter ua
as well, in order to avoid undesired redirects.
If only some of the specified search-strings are matched, then a warning is returned.
3. Specific Examples
3.1 Log into wordpress.com
Find String in Wordpress.com dashboard