root/src/noit.conf.in

Revision 8c8aea6bc50ed2cc0619d0585a079dc9a4de6a16, 5.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

lockfile as root node attribute in both noit.conf and stratcon.conf, closes #263

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