root/src/noit.conf.in

Revision 4655be2b8ba2d03299aa1bfec69021c3856e1d8c, 8.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 weeks ago)

Implement a modular resolver cache.

Design is a bit limited for now: a full load and rewrite.

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit lockfile="/var/run/noitd.lock" text_size_limit="512">
3   <!-- <watchdog glider="/opt/gimli/bin/glider" tracedir="/var/log/noitd.crash"/> -->
4   <eventer>
5     <config>
6       <concurrency>4</concurrency>
7       <default_queue_threads>10</default_queue_threads>
8       <default_ca_chain>%sysconfdir%/default-ca-chain.crt</default_ca_chain>
9       <ssl_dhparam512_file>%sysconfdir%/dhparam512.txt</ssl_dhparam512_file>
10       <ssl_dhparam1024_file>%sysconfdir%/dhparam1024.txt</ssl_dhparam1024_file>
11     </config>
12   </eventer>
13   <resolver>
14     <server>8.8.8.8</server>
15     <server>4.2.2.1</server>
16     <!-- <search>dev.circonus.net</search> -->
17   </resolver>
18   <logs>
19     <log name="internal" type="memory" path="10000,100000"/>
20     <console_output>
21       <outlet name="stderr"/>
22       <outlet name="internal"/>
23       <log name="error"/>
24       <log name="debug" disabled="true"/>
25     </console_output>
26     <feeds>
27       <log name="feed" type="jlog" path="/var/log/noitd.feed(stratcon)"/>
28     </feeds>
29     <components>
30       <error>
31         <outlet name="error"/>
32         <log name="error/collectd"/>
33         <log name="error/ganglia"/>
34         <log name="error/dns"/>
35         <log name="error/eventer"/>
36         <log name="error/external"/>
37         <log name="error/lua"/>
38         <log name="error/mysql"/>
39         <log name="error/ping_icmp"/>
40         <log name="error/postgres"/>
41         <log name="error/selfcheck"/>
42         <log name="error/snmp"/>
43         <log name="error/ssh2"/>
44         <log name="error/statsd"/>
45       </error>
46       <debug>
47         <outlet name="debug"/>
48         <log name="debug/collectd" disabled="true"/>
49         <log name="debug/ganglia" disabled="true"/>
50         <log name="debug/dns" disabled="true"/>
51         <log name="debug/eventer" disabled="true"/>
52         <log name="debug/external" disabled="true"/>
53         <log name="debug/lua" disabled="true"/>
54         <log name="debug/mysql" disabled="true"/>
55         <log name="debug/ping_icmp" disabled="true"/>
56         <log name="debug/postgres" disabled="true"/>
57         <log name="debug/selfcheck" disabled="true"/>
58         <log name="debug/snmp" disabled="true"/>
59         <log name="debug/ssh2" disabled="true"/>
60         <log name="debug/statsd" disabled="true"/>
61       </debug>
62     </components>
63     <feeds>
64       <config><extended_id>off</extended_id></config>
65       <outlet name="feed"/>
66       <log name="check"/>
67       <log name="delete"/>
68       <log name="status"/>
69       <log name="metrics"/>
70       <log name="bundle"/>
71       <log name="config"/>
72     </feeds>
73   </logs>
74   <modules directory="%modulesdir%">
75     <loader image="lua" name="lua">
76       <config><directory>%modulesluadir%/?.lua</directory></config>
77     </loader>
78     <module image="selfcheck" name="selfcheck"/>
79     <module image="ping_icmp" name="ping_icmp"/>
80     <module image="dns" name="dns"/>
81     <module image="ssh2" name="ssh2"/>
82     <module image="httptrap" name="httptrap"/>
83     <module image="statsd" name="statsd"/>
84     <module image="ganglia" name="ganglia"/>
85     <module loader="lua" name="varnish" object="noit.module.varnish"/>
86     <module loader="lua" name="http" object="noit.module.http"/>
87     <module loader="lua" name="resmon" object="noit.module.resmon"/>
88     <module loader="lua" name="smtp" object="noit.module.smtp"/>
89     <module loader="lua" name="ntp" object="noit.module.ntp"/>
90     <module loader="lua" name="dhcp" object="noit.module.dhcp"/>
91     <module loader="lua" name="pop3" object="noit.module.pop3"/>
92     <module loader="lua" name="monit" object="noit.module.monit"/>
93     <jezebel>
94       <config><url>http://127.0.0.1:8083/dispatch</url></config>
95       <module loader="lua" name="jmx" object="noit.module.jezebel"/>
96       <module loader="lua" name="snmp" object="noit.module.jezebel"/>
97     </jezebel>
98     <generic image="resolver_cache" name="resolver_cache"/>
99     <generic image="check_test" name="check_test"/>
100     <generic image="lua" name="lua_web">
101       <config>
102         <directory>%modulesluadir%/?.lua</directory>
103         <dispatch>web</dispatch>
104       </config>
105     </generic>
106     <generic image="ip_acl" name="ip_acl"/>
107   </modules>
108   <listeners>
109     <sslconfig>
110       <optional_no_ca>false</optional_no_ca>
111       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
112       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
113       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
114     </sslconfig>
115     <consoles type="noit_console">
116       <listener address="/tmp/noit">
117         <config>
118           <line_protocol>telnet</line_protocol>
119         </config>
120       </listener>
121       <listener address="*" port="32322">
122         <config>
123           <line_protocol>telnet</line_protocol>
124         </config>
125       </listener>
126       <listener address="*" port="32323" ssl="on"/>
127     </consoles>
128     <listener type="control_dispatch" address="*" port="43191" ssl="on">
129       <config>
130         <log_transit_feed_name>feed</log_transit_feed_name>
131         <document_root>%datarootdir%/noit-web</document_root>
132       </config>
133     </listener>
134     <listener type="http_rest_api" address="*" port="8888" ssl="off">
135       <config>
136         <document_root>%datarootdir%/noit-web</document_root>
137       </config>
138     </listener>
139   </listeners>
140   <rest>
141     <acl>
142       <rule type="allow" />
143     </acl>
144   </rest>
145   <checks filterset="default"
146           resolve_rtype="prefer-ipv4"
147           transient_min_period="1000" transient_period_granularity="500">
148     <config xmlns:ip_acl="noit://module/ip_acl">
149       <ip_acl:global/>
150     </config>
151     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="127.0.0.1" period="5000" timeout="4000"/>
152     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="8.8.8.8" period="15000" timeout="14000"/>
153     <check uuid="9bccffcf-fee8-4885-987a-faa10f16e724" module="ganglia" target="127.0.0.1" period="15000" timeout="14000"/>
154     <dc1 timeout="30000" period="60000" transient_min_period="10000">
155       <icmp module="ping_icmp">
156         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
157       </icmp>
158       <web module="http">
159         <config xmlns:ip_acl="noit://module/ip_acl">
160           <ip_acl:sample/>
161         </config>
162         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="labs.omniti.com">
163           <config>
164             <url>https://labs.omniti.com/</url>
165             <code>200</code>
166           </config>
167         </check>
168         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="taskman.omniti.com">
169           <config>
170             <url>https://taskman.omniti.com/</url>
171             <code>200</code>
172           </config>
173         </check>
174       </web>
175       <resmon module="resmon" period="30000">
176         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
177       </resmon>
178       <switches module="snmp" period="60000">
179         <config inherit="SwitchPortX"/>
180         <switch target="10.1.2.3">
181           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
182           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
183           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
184           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
185         </switch>
186       </switches>
187       <disk module="snmp" period="60000">
188         <config inherit="disk"><community>test</community></config>
189         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
190       </disk>
191     </dc1>
192     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="git.github.com" period="60000" timeout="4000"/>
193     <check uuid="ff4f1de8-a405-11e1-8770-9347de0fce85" module="statsd" target="127.0.0.1" period="60000" timeout="59999"/>
194   </checks>
195   <filtersets>
196     <filterset name="default">
197       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
198       <rule type="allow"/>
199     </filterset>
200   </filtersets>
201   <config_templates>
202     <include file="config_templates.conf"/>
203   </config_templates>
204   <acls>
205     <acl name="global">
206       <rule type="deny">8.8.38.0/24</rule>
207     </acl>
208     <acl name="sample">
209       <rule type="deny">66.225.209.0/24</rule>
210     </acl>
211   </acls>
212 </noit>
Note: See TracBrowser for help on using the browser.