<?xml version="1.0" encoding="utf-8"?>
<sage:top xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:attr="http://www.net.cmu.edu/netsage/xml/attributes" xmlns:sage="http://www.net.cmu.edu/netsage/xml/main" xsi:schemaLocation="http://www.net.cmu.edu/netsage/xml/main netsage.xsd http://www.net.cmu.edu/netsage/xml/attributes attributes.xsd">
   <sage:server server="slave1.net.cmu.edu">
      <sage:globalattrs>
         <attr:randomstart time="300"/>
         <attr:basedir string="/home/mon"/>
         <attr:alertdir string="alert.d"/>
         <attr:mondir string="mon.d"/>
         <attr:statedir string="state.d"/>
         <attr:logdir string="log.d"/>
         <attr:dtlogfile string="dtlog"/>
         <attr:historicfile string="history"/>
         <attr:histlength number="1000"/>
         <attr:dtlogging boolean="1"/>
      </sage:globalattrs>
      <sage:watchgroup name="testgroup-1">
          <sage:host name="dummyserver1.net.cmu.edu"/>
          <sage:host name="dummyserver2.andrew.cmu.edu"/>
          <sage:service name="ping">
             <attr:interval time="300"/>
             <attr:monitoraction action="fping.monitor"/>
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
             </sage:period>
          </sage:service>
          <sage:service name="http">
             <attr:interval time="300"/>
             <attr:monitoraction action="http.monitor"/>
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
             </sage:period>
          </sage:service>
      </sage:watchgroup>
      <sage:watchgroup name="testgroup-2-with-overrides">
          <sage:host name="dummyserver1.net.cmu.edu"/>
          <sage:host name="dummyserver3.net.cmu.edu"/>
          <sage:service name="ping">
             <attr:interval time="240"/>
             <attr:monitoraction action="fping.monitor"/>
             <sage:period name="daylight">
                <sage:subperiod weekday_start="2" weekday_end="6" time_start="09:00:00" time_end="17:00:00"/>
             </sage:period>
          </sage:service>
          <sage:service name="http">
<sage:dependencies>
<sage:dep-and>
<sage:dep-svc hostgroup="testgroup-1" service="http"/>
<sage:dep-and>
<sage:dep-svc hostgroup="testgroup-1" service="ping"/>
<sage:dep-svc hostgroup="testgroup-2-with-overrides" service="ping"/>
</sage:dep-and>
</sage:dep-and>
</sage:dependencies>
             <attr:interval time="300"/>
             <attr:monitoraction action="http.monitor"/>
             <attr:monitorarguments string="-u /cgi-bin/testurl.pl"/>
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
             </sage:period>
          </sage:service>
      </sage:watchgroup>
   </sage:server>
   <sage:server server="master.net.cmu.edu">
      <sage:globalattrs>
         <attr:randomstart time="300"/>
         <attr:basedir string="/home/mon"/>
         <attr:alertdir string="alert.d"/>
         <attr:mondir string="mon.d"/>
         <attr:statedir string="state.d"/>
         <attr:logdir string="log.d"/>
         <attr:dtlogfile string="dtlog"/>
         <attr:historicfile string="history"/>
         <attr:histlength number="1000"/>
         <attr:dtlogging boolean="1"/>
      </sage:globalattrs>
      <sage:watchgroup name="testgroup-1">
          <sage:host name="dummyserver1.net.cmu.edu"/>
          <sage:host name="dummyserver2.andrew.cmu.edu"/>
          <sage:service name="ping">
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
                <attr:alertevery time="2400"/>
                <attr:alertafter number="3"/>
                <attr:alertaction string="" action="qpage.alert"/>
                <attr:alertaction string="" action="mail.alert"/>
                <attr:upalertaction string="" action="qpage.alert"/>
                <attr:upalertaction string="" action="mail.alert"/>
             </sage:period>
          </sage:service>
          <sage:service name="http">
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
                <attr:alertevery time="2400"/>
                <attr:alertafter number="3"/>
                <attr:alertaction string="" action="qpage.alert"/>
                <attr:alertaction string="" action="mail.alert"/>
                <attr:upalertaction string="" action="qpage.alert"/>
                <attr:upalertaction string="" action="mail.alert"/>
             </sage:period>
          </sage:service>
      </sage:watchgroup>
      <sage:watchgroup name="testgroup-2-with-overrides">
          <sage:host name="dummyserver1.net.cmu.edu"/>
          <sage:host name="dummyserver3.net.cmu.edu"/>
          <sage:service name="ping">
             <sage:period name="daylight">
                <sage:subperiod weekday_start="2" weekday_end="6" time_start="09:00:00" time_end="17:00:00"/>
                <attr:alertevery time="1800"/>
                <attr:alertafter number="4"/>
                <attr:alertaction string="" action="qpage.alert"/>
                <attr:alertaction string="" action="mail.alert"/>
                <attr:upalertaction string="" action="qpage.alert"/>
                <attr:upalertaction string="" action="mail.alert"/>
             </sage:period>
          </sage:service>
          <sage:service name="http">
<sage:dependencies>
<sage:dep-and>
<sage:dep-svc hostgroup="testgroup-1" service="http"/>
<sage:dep-and>
<sage:dep-svc hostgroup="testgroup-1" service="ping"/>
<sage:dep-svc hostgroup="testgroup-2-with-overrides" service="ping"/>
</sage:dep-and>
</sage:dep-and>
</sage:dependencies>
             <sage:period name="normal">
                <sage:subperiod weekday_start="1" weekday_end="7"/>
                <attr:alertevery time="2400"/>
                <attr:alertafter number="3"/>
                <attr:alertaction string="" action="qpage.alert"/>
                <attr:alertaction string="" action="mail.alert"/>
                <attr:upalertaction string="" action="qpage.alert"/>
                <attr:upalertaction string="" action="mail.alert"/>
             </sage:period>
          </sage:service>
      </sage:watchgroup>
   </sage:server>
</sage:top>
