root/src/noit.conf.in

Revision 16e8c85a9d0e6b2e2bf74a7d159f6352253c50a9, 6.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

fixes #315

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