Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Patap
bash-http-monitoring
Commits
74a21867
Commit
74a21867
authored
Dec 28, 2020
by
A Rabbit
Committed by
Remy
Dec 28, 2020
Browse files
Add explanation
parent
e1edf139
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
74a21867
...
...
@@ -55,7 +55,7 @@ Further global configuration options include:
defaultTimeOut=10 # Max timeout of a check in seconds
flapRetry=5 # After how many seconds should we re-check any failed checks? (To prevent flapping)
title="Status Dashboard" # Title of the webpage
cgi=false # Enable or disable CGI
mo
de
cgi=false # Enable or disable CGI
hea
de
r
Execute the script and send the output to a file in your webservers documentroot:
...
...
@@ -73,10 +73,17 @@ running. Like so:
If the check fails for whatever reason, the "old" page will not be overridden.
### CGI mode
### CGI header
Some HTTP servers, like Apache, support CGI scripts. To make it brief, these are scripts which
are handed a HTTP request to reply to.
The main advantage of using the script as a CGI script, is that the page is generated on demand
and as such, provides a live-view on each page load.
If the page is public, this method should be avoided, as it can be easily abused.
If you want to set up CGI mode, you need to copy the script to your server CGI directory.
You can use
`docker`
for this purpose
. Like so:
You can use
`docker`
to try this out
. Like so:
docker run -d -p 9090:80 -v $PWD/srvmon:/usr/local/apache2/cgi-bin/srvmon hypoport/httpd-cgi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment