Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
codeprimate committed Dec 29, 2008
0 parents commit 74eaf89
Show file tree
Hide file tree
Showing 36 changed files with 2,985 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README
@@ -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.
33 changes: 33 additions & 0 deletions ServerMonitor-config.xml
@@ -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>

0 comments on commit 74eaf89

Please sign in to comment.