root/src/sample.conf

Revision 998fcf4e10bc37cda542d39850f8da317f74f79d, 2.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

this is libxml2's thoughts on our hand-written config -- damn close

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit>
3   <eventer>
4     <implementation>kqueue</implementation>
5   </eventer>
6   <modules>
7     <directory>./modules</directory>
8     <module>
9       <image>ping_icmp</image>
10       <name>ping_icmp</name>
11       <config>
12         <key1>value2</key1>
13         <key2>value2</key2>
14       </config>
15     </module>
16     <module>
17       <image>http</image>
18       <name>resmon</name>
19     </module>
20     <module>
21       <image>http</image>
22       <name>resmon_part</name>
23     </module>
24     <module>
25       <image>http</image>
26       <name>http</name>
27     </module>
28   </modules>
29   <listeners>
30     <listener>
31       <type>noit_console</type>
32       <address>/tmp/noit</address>
33     </listener>
34     <listener>
35       <type>noit_console</type>
36       <address>*</address>
37       <port>32323</port>
38     </listener>
39   </listeners>
40   <checks>
41     <dc1 timeout="30000" period="60000">
42       <icmp module="ping_icmp" timeout="12000">
43         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
44       </icmp>
45       <web module="http" timeout="8000">
46         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
47           <config>
48             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
49             <code>302</code>
50           </config>
51         </check>
52         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
53           <config>
54             <url>https://taskman.omniti.com/</url>
55             <code>200</code>
56           </config>
57         </check>
58       </web>
59       <resmon module="resmon" period="30000" timeout="5000">
60         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
61         <parts module="resmon_part" period="0" timeout="1000" oncheck="resmon">
62           <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fe" target="10.225.209.36">
63             <config>
64               <resmon_module>FAULTS</resmon_module>
65               <resmon_service>hardware</resmon_service>
66             </config>
67           </check>
68         </parts>
69       </resmon>
70     </dc1>
71   </checks>
72 </noit>
Note: See TracBrowser for help on using the browser.