HTTPPoll Manual - Example Configuration

<?xml version="1.0"?>
<!DOCTYPE httppoll SYSTEM "httppoll.dtd">

<httppoll>
  <!-- Seconds to wait between polling -->
  <poll-interval>180</poll-interval>
  
  <!-- SMTP host for email alerts -->
  <smtp-host>smtp.example.com</smtp-host>

  <!-- Default alert action settings -->
  <default-alert-action>
    <shell>
      <enabled>false</enabled>
    </shell>
    <email>
      <enabled>true</enabled>
      <repeatable>false</repeatable>
      <to>drake@example.com</to>
      <from>admin@example.com</from>
      <subject>HTTPPoll alert - $URL</subject>
      <message>$URL returned error code: $ERROR_CODE / $ERROR_MESSAGE</message>
    </email>
    <dialog-box>
      <enabled>true</enabled>
      <repeatable>false</repeatable>
      <title>HTTPPoll alert - $URL</title>
      <message>$URL returned error code: $ERROR_CODE / $ERROR_MESSAGE</message>
    </dialog-box>
  </default-alert-action>

  <!-- Target #1 -->
  <target>
    <url>slashdot.org</url>
    <file>/</file>
  </target>
      
  <!-- Target #2 -->
  <target>
    <url>test1.example.com</url>
    <file>/foo/</file>
    <alert-threshhold>400</alert-threshhold>
    <alert-action>
      <shell>
        <enabled>true</enabled>
        <command>touch /tmp/HTTPPoll_ALERT_FOO</command>
      </shell>
      <email>
	<cc>joe@example.com</cc>
	<subject>HTTPPoll alert - FOO down</subject>
      </email>
      <dialog-box>
	<repeatable>true</repeatable>
      </dialog-box>
    </alert-action>
  </target>

  <!-- Target #3 -->
  <target>
    <url>test2.example.com</url>
    <port>8080</port>
    <file>/bar.html</file>
    <alert-action>
      <email>
	<to>Alice &lt;alice@example.com&gt;</to>
	<cc>Joe &lt;joe@example.com&gt;</cc>
	<subject>Problem with $URL</subject>
        <message>status: $ERROR_CODE. message: $ERROR_MESSAGE</message>
      </email>
      <dialog-box>
        <enabled>false</enabled>
      </dialog-box>
    </alert-action>
    <scheduled-downtime>
        <start>
	    <hour>23</hour>
	    <minute>0</minute>
	</start>
	<end>
	    <hour>23</hour>
	    <minute>30</minute>
	</end>
    </scheduled-downtime>
  </target>

</httppoll>