root/src/noit.conf.in

Revision ed271b26d31bd852807033fd23086db565b6106b, 6.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 2 years ago)

make 'offset' metric consistent.

offset in 'ntp' is seconds, offset in 'ntp control' is milliseconds.
so as to reduce confusion, provide both offset and offset_ms so that
we're clear and people relying on a specific unit don't have their
hopes dashed.

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