root/src/noit.conf.in

Revision 8c720f9a4bd5979520e9c7ec00d9bea8d305391b, 6.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

this is a big patch. adds an optional extended-id. you should upgrade your iep first, then your stratcon, then your noits. This is most certainly a flag-day, *but* the feature is off by default... refs #331

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