root/src/noit.conf.in

Revision 753d52d88827d11c0c1aa19a107d0029fdaca23b, 6.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 8 years ago)

load the httptrap module in the example

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit lockfile="/var/run/noitd.lock">
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       <config><extended_id>off</extended_id></config>
50       <outlet name="feed"/>
51       <log name="check"/>
52       <log name="status"/>
53       <log name="metrics"/>
54       <log name="config"/>
55     </feeds>
56   </logs>
57   <modules directory="%modulesdir%">
58     <loader image="lua" name="lua">
59       <config><directory>%modulesluadir%/?.lua</directory></config>
60     </loader>
61     <module image="selfcheck" name="selfcheck"/>
62     <module image="ping_icmp" name="ping_icmp"/>
63     <module image="dns" name="dns"/>
64     <module image="snmp" name="snmp"/>
65     <module image="ssh2" name="ssh2"/>
66     <module image="httptrap" name="httptrap"/>
67     <module loader="lua" name="varnish" object="noit.module.varnish"/>
68     <module loader="lua" name="http" object="noit.module.http"/>
69     <module loader="lua" name="resmon" object="noit.module.resmon"/>
70     <module loader="lua" name="smtp" object="noit.module.smtp"/>
71     <jezebel>
72       <config><url>http://127.0.0.1:8083/dispatch</url></config>
73       <module loader="lua" name="jmx" object="noit.module.jezebel"/>
74     </jezebel>
75   </modules>
76   <listeners>
77     <sslconfig>
78       <optional_no_ca>false</optional_no_ca>
79       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
80       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
81       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
82     </sslconfig>
83     <consoles type="noit_console">
84       <listener address="/tmp/noit">
85         <config>
86           <line_protocol>telnet</line_protocol>
87         </config>
88       </listener>
89       <listener address="*" port="32322">
90         <config>
91           <line_protocol>telnet</line_protocol>
92         </config>
93       </listener>
94       <listener address="*" port="32323" ssl="on"/>
95     </consoles>
96     <listener type="control_dispatch" address="*" port="43191" ssl="on">
97       <config>
98         <log_transit_feed_name>feed</log_transit_feed_name>
99       </config>
100     </listener>
101   </listeners>
102   <rest>
103     <acl>
104       <rule type="allow" />
105     </acl>
106   </rest>
107   <checks max_initial_stutter="30000" filterset="default" transient_min_period="1000" transient_period_granularity="500">
108     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
109     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
110     <dc1 timeout="30000" period="60000" transient_min_period="10000">
111       <icmp module="ping_icmp">
112         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
113       </icmp>
114       <web module="http">
115         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
116           <config>
117             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
118             <code>302</code>
119           </config>
120         </check>
121         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
122           <config>
123             <url>https://labs.omniti.com/</url>
124             <code>200</code>
125           </config>
126         </check>
127         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
128           <config>
129             <url>https://taskman.omniti.com/</url>
130             <code>200</code>
131           </config>
132         </check>
133       </web>
134       <resmon module="resmon" period="30000">
135         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
136       </resmon>
137       <switches module="snmp" period="60000">
138         <config inherit="SwitchPortX"/>
139         <switch target="10.1.2.3">
140           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
141           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
142           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
143           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
144         </switch>
145       </switches>
146       <disk module="snmp" period="60000">
147         <config inherit="disk"><community>test</community></config>
148         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
149       </disk>
150     </dc1>
151     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
152   </checks>
153   <filtersets>
154     <filterset name="default">
155       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
156       <rule type="allow"/>
157     </filterset>
158   </filtersets>
159   <config_templates>
160     <include file="config_templates.conf"/>
161   </config_templates>
162 </noit>
Note: See TracBrowser for help on using the browser.