root/src/noit.conf.in

Revision a21293e750275e87425ce8d157b40eec2e2afd2d, 8.7 kB (checked in by Theo Schlossnagle <theo.schlossnagle@circonus.com>, 2 months ago)

add reverse_check into the sample config

  • 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>%mtevmodulesdir%/lua/?.lua;%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="httptrap" name="httptrap"/>
82     <module image="statsd" name="statsd"/>
83     <module image="collectd" name="collectd"/>
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="json" object="noit.module.resmon"/>
89     <module loader="lua" name="smtp" object="noit.module.smtp"/>
90     <module loader="lua" name="ssh2" object="noit.module.ssh2"/>
91     <module loader="lua" name="ntp" object="noit.module.ntp"/>
92     <module loader="lua" name="dhcp" object="noit.module.dhcp"/>
93     <module loader="lua" name="pop3" object="noit.module.pop3"/>
94     <module loader="lua" name="monit" object="noit.module.monit"/>
95     <jezebel>
96       <config><url>http://127.0.0.1:8083/dispatch</url></config>
97       <module loader="lua" name="jmx" object="noit.module.jezebel"/>
98       <module loader="lua" name="snmp" object="noit.module.jezebel"/>
99     </jezebel>
100     <generic image="resolver_cache" name="resolver_cache"/>
101     <generic image="check_test" name="check_test"/>
102     <generic image="reverse_check" name="reverse_check"/>
103     <generic image="lua_mtev" name="lua_web">
104       <config>
105         <directory>%mtevmodulesdir%/lua/?.lua;%modulesluadir%/?.lua</directory>
106         <mount_all>web:GET:/:^.*$</mount_all>
107       </config>
108     </generic>
109     <generic image="ip_acl" name="ip_acl"/>
110   </modules>
111   <listeners>
112     <sslconfig>
113       <optional_no_ca>false</optional_no_ca>
114       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
115       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
116       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
117     </sslconfig>
118     <consoles type="noit_console">
119       <listener address="/tmp/noit">
120         <config>
121           <line_protocol>telnet</line_protocol>
122         </config>
123       </listener>
124       <listener address="*" port="32322">
125         <config>
126           <line_protocol>telnet</line_protocol>
127         </config>
128       </listener>
129       <listener address="*" port="32323" ssl="on"/>
130     </consoles>
131     <listener type="control_dispatch" address="*" port="43191" ssl="on">
132       <config>
133         <log_transit_feed_name>feed</log_transit_feed_name>
134         <document_root>%datarootdir%/noit-web</document_root>
135       </config>
136     </listener>
137     <listener type="http_rest_api" address="*" port="8888" ssl="off">
138       <config>
139         <document_root>%datarootdir%/noit-web</document_root>
140       </config>
141     </listener>
142   </listeners>
143   <rest>
144     <acl>
145       <rule type="allow" />
146     </acl>
147   </rest>
148   <checks filterset="default"
149           resolve_rtype="prefer-ipv4"
150           transient_min_period="1000" transient_period_granularity="500">
151     <config xmlns:ip_acl="noit://module/ip_acl">
152       <ip_acl:global/>
153     </config>
154     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="127.0.0.1" period="5000" timeout="4000"/>
155     <check uuid="a7cea020-a19d-14dd-25a6-cf6d3a2207dc" module="json" target="172.16.244.200" period="5000" timeout="4000">
156       <config xmlns:reverse="noit://module/reverse">
157         <reverse:key>SoopErS3cr3T</reverse:key>
158       </config>
159     </check>
160     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="8.8.8.8" period="15000" timeout="14000"/>
161     <check uuid="9bccffcf-fee8-4885-987a-faa10f16e724" module="ganglia" target="127.0.0.1" period="15000" timeout="14000"/>
162     <dc1 timeout="30000" period="60000" transient_min_period="10000">
163       <icmp module="ping_icmp">
164         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
165       </icmp>
166       <web module="http">
167         <config xmlns:ip_acl="noit://module/ip_acl">
168           <ip_acl:sample/>
169         </config>
170         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="labs.omniti.com">
171           <config>
172             <url>https://labs.omniti.com/</url>
173             <code>200</code>
174           </config>
175         </check>
176         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="taskman.omniti.com">
177           <config>
178             <url>https://taskman.omniti.com/</url>
179             <code>200</code>
180           </config>
181         </check>
182       </web>
183       <resmon module="resmon" period="30000">
184         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
185       </resmon>
186       <switches module="snmp" period="60000">
187         <config inherit="SwitchPortX"/>
188         <switch target="10.1.2.3">
189           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
190           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
191           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
192           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
193         </switch>
194       </switches>
195       <disk module="snmp" period="60000">
196         <config inherit="disk"><community>test</community></config>
197         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
198       </disk>
199     </dc1>
200     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="git.github.com" period="60000" timeout="4000"/>
201     <check uuid="ff4f1de8-a405-11e1-8770-9347de0fce85" module="statsd" target="127.0.0.1" period="60000" timeout="59999"/>
202   </checks>
203   <filtersets>
204     <filterset name="default">
205       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
206       <rule type="allow"/>
207     </filterset>
208   </filtersets>
209   <config_templates>
210     <include file="config_templates.conf"/>
211   </config_templates>
212   <acls>
213     <acl name="global">
214       <rule type="deny">8.8.38.0/24</rule>
215     </acl>
216     <acl name="sample">
217       <rule type="deny">66.225.209.0/24</rule>
218     </acl>
219   </acls>
220 </noit>
Note: See TracBrowser for help on using the browser.