root/src/noit.conf.in

Revision 6310dfe878f0aa7dc90a5b3d858f94da99c228af, 8.3 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 2 months ago)

flip example to lua implementation of ssh2

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