Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 74eaf89
Showing
36 changed files
with
2,985 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#summary Basic Usage Instructions | ||
|
||
= Configuration = | ||
|
||
Program configuration uses a properly formatted XML file. See _ServerMonitor-config.xml_ included in the source archive for an example. Specify server name and domain, and the URLs and ports to test. | ||
|
||
= Command Line = | ||
|
||
Run _ruby server_monitor.rb --config path/to/configfile.xml --log path/to/logfile.xml --xsl path/or/url/for/log.xsl_ | ||
|
||
= Output = | ||
|
||
Outputs or appends to logfile.xml. To view the xml file in a web browser, the xsl path must be valid, and within the same domain as the xml file (browser security requirement). If the xml file will be viewed from a http url, the path specified for the xsl file when running the program must refer to the same domain (whether internet or file://). Please note that subsequent runs will not modify the the xsl path in the xml logfile. | ||
|
||
= Scripting = | ||
|
||
You may specify the _--quiet_ commandline option to disable verbose output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version='1.0'?> | ||
<ServerMonitor> | ||
<config> | ||
<email> | ||
<sender>monitor@example.com</sender> | ||
<notify> | ||
<addr>person@example.com</addr> | ||
</notify> | ||
</email> | ||
<server> | ||
<name>Master Web Design</name> | ||
<domain>www.masterwebdesign.net</domain> | ||
<port>80</port> | ||
<port>25</port> | ||
<url>http://www.masterwebdesign.net/</url> | ||
<url>http://www.masterwebdesign.net/portfolio</url> | ||
</server> | ||
<server> | ||
<name>MerchantHound</name> | ||
<domain>www.merchanthound.com</domain> | ||
<port>80</port> | ||
<url>http://www.merchanthound.com</url> | ||
<url>http://electronics.merchanthound.com/asdghgas</url> | ||
</server> | ||
<server> | ||
<name>MH Skin</name> | ||
<domain>compare-prices.tomshardware.com</domain> | ||
<port>80</port> | ||
<url>http://compare-prices.tomshardware.com/</url> | ||
<url>http://compare-prices.tomshardware.com/browse/electronics</url> | ||
</server> | ||
</config> | ||
</ServerMonitor> |
Oops, something went wrong.