root/src/noit.conf.in

Revision 322ceb0139cf145a94006446310d0aa106998056, 5.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

This allows for a

<include file="fileinsamedirasmaster.conf"/>

tp be placed anywhere in the master config of either noitd or stratcond.
The include is processed by parsing the specified file and putting all
children of the root element of the included document as replacements for
the children of the <include> node itself.

Special care is taken to make it look like we did not do this when we go to
write the config anywhere.

refs #254

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit>
3   <eventer>
4     <config>
5       <default_queue_threads>10</default_queue_threads>
6       <default_ca_chain>%sysconfdir%/default-ca-chain.crt</default_ca_chain>
7     </config>
8   </eventer>
9   <logs>
10     <console_output>
11       <outlet name="stderr"/>
12       <log name="error"/>
13       <log name="debug" disabled="true"/>
14     </console_output>
15     <feeds>
16       <log name="feed" type="jlog" path="/var/log/noitd.feed(stratcon)"/>
17     </feeds>
18     <components>
19       <error>
20         <outlet name="error"/>
21         <log name="error/collectd"/>
22         <log name="error/dns"/>
23         <log name="error/eventer"/>
24         <log name="error/external"/>
25         <log name="error/lua"/>
26         <log name="error/mysql"/>
27         <log name="error/ping_icmp"/>
28         <log name="error/postgres"/>
29         <log name="error/selfcheck"/>
30         <log name="error/snmp"/>
31         <log name="error/ssh2"/>
32       </error>
33       <debug>
34         <outlet name="debug"/>
35         <log name="debug/collectd" disabled="true"/>
36         <log name="debug/dns" disabled="true"/>
37         <log name="debug/eventer" disabled="true"/>
38         <log name="debug/external" disabled="true"/>
39         <log name="debug/lua" disabled="true"/>
40         <log name="debug/mysql" disabled="true"/>
41         <log name="debug/ping_icmp" disabled="true"/>
42         <log name="debug/postgres" disabled="true"/>
43         <log name="debug/selfcheck" disabled="true"/>
44         <log name="debug/snmp" disabled="true"/>
45         <log name="debug/ssh2" disabled="true"/>
46       </debug>
47     </components>
48     <feeds>
49       <outlet name="feed"/>
50       <log name="check">
51         <outlet name="error"/>
52       </log>
53       <log name="status"/>
54       <log name="metrics"/>
55       <log name="config"/>
56     </feeds>
57   </logs>
58   <modules directory="%modulesdir%">
59     <loader image="lua" name="lua">
60       <config><directory>%modulesluadir%/?.lua</directory></config>
61     </loader>
62     <module image="selfcheck" name="selfcheck"/>
63     <module image="ping_icmp" name="ping_icmp"/>
64     <module image="snmp" name="snmp"/>
65     <module image="ssh2" name="ssh2"/>
66     <module loader="lua" name="varnish" object="noit.module.varnish"/>
67     <module loader="lua" name="http" object="noit.module.http"/>
68     <module loader="lua" name="resmon" object="noit.module.resmon"/>
69     <module loader="lua" name="smtp" object="noit.module.smtp"/>
70   </modules>
71   <listeners>
72     <sslconfig>
73       <optional_no_ca>false</optional_no_ca>
74       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
75       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
76       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
77     </sslconfig>
78     <consoles type="noit_console">
79       <listener address="/tmp/noit">
80         <config>
81           <line_protocol>telnet</line_protocol>
82         </config>
83       </listener>
84       <listener address="*" port="32322">
85         <config>
86           <line_protocol>telnet</line_protocol>
87         </config>
88       </listener>
89       <listener address="*" port="32323" ssl="on"/>
90     </consoles>
91     <listener type="control_dispatch" address="*" port="43191" ssl="on">
92       <config>
93         <log_transit_feed_name>feed</log_transit_feed_name>
94       </config>
95     </listener>
96   </listeners>
97   <rest>
98     <acl>
99       <rule type="allow" />
100     </acl>
101   </rest>
102   <checks max_initial_stutter="30000" filterset="default">
103     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
104     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
105     <dc1 timeout="30000" period="60000">
106       <icmp module="ping_icmp">
107         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
108       </icmp>
109       <web module="http">
110         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
111           <config>
112             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
113             <code>302</code>
114           </config>
115         </check>
116         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
117           <config>
118             <url>https://labs.omniti.com/</url>
119             <code>200</code>
120           </config>
121         </check>
122         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
123           <config>
124             <url>https://taskman.omniti.com/</url>
125             <code>200</code>
126           </config>
127         </check>
128       </web>
129       <resmon module="resmon" period="30000">
130         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
131       </resmon>
132       <switches module="snmp" period="60000">
133         <config inherit="SwitchPortX"/>
134         <switch target="10.1.2.3">
135           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
136           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
137           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
138           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
139         </switch>
140       </switches>
141       <disk module="snmp" period="60000">
142         <config inherit="disk"><community>test</community></config>
143         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
144       </disk>
145     </dc1>
146     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
147   </checks>
148   <filtersets>
149     <filterset name="default">
150       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
151       <rule type="allow"/>
152     </filterset>
153   </filtersets>
154   <config_templates>
155     <include file="config_templates.conf"/>
156   </config_templates>
157 </noit>
Note: See TracBrowser for help on using the browser.