root/src/noit.conf.in

Revision 3739c78a534317b34706e055d7a120bdd59ab883, 8.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

fixes #245

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit>
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         <outlet name="error"/>
52       </log>
53       <log name="status"/>
54       <log name="metrics"/>
55       <log name="config"/>
56     </feeds>
57   </logs>
58   <modules directory="%modulesdir%">
59     <loader image="lua" name="lua">
60       <config><directory>%modulesluadir%/?.lua</directory></config>
61     </loader>
62     <module image="selfcheck" name="selfcheck"/>
63     <module image="ping_icmp" name="ping_icmp"/>
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   </modules>
71   <listeners>
72     <sslconfig>
73       <optional_no_ca>false</optional_no_ca>
74       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
75       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
76       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
77     </sslconfig>
78     <consoles type="noit_console">
79       <listener address="/tmp/noit">
80         <config>
81           <line_protocol>telnet</line_protocol>
82         </config>
83       </listener>
84       <listener address="*" port="32322">
85         <config>
86           <line_protocol>telnet</line_protocol>
87         </config>
88       </listener>
89       <listener address="*" port="32323" ssl="on"/>
90     </consoles>
91     <listener type="control_dispatch" address="*" port="43191" ssl="on">
92       <config>
93         <log_transit_feed_name>feed</log_transit_feed_name>
94       </config>
95     </listener>
96   </listeners>
97   <rest>
98     <acl>
99       <rule type="allow" />
100     </acl>
101   </rest>
102   <checks max_initial_stutter="30000" filterset="default">
103     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
104     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
105     <dc1 timeout="30000" period="60000">
106       <icmp module="ping_icmp">
107         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
108       </icmp>
109       <web module="http">
110         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
111           <config>
112             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
113             <code>302</code>
114           </config>
115         </check>
116         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
117           <config>
118             <url>https://labs.omniti.com/</url>
119             <code>200</code>
120           </config>
121         </check>
122         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
123           <config>
124             <url>https://taskman.omniti.com/</url>
125             <code>200</code>
126           </config>
127         </check>
128       </web>
129       <resmon module="resmon" period="30000">
130         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
131       </resmon>
132       <switches module="snmp" period="60000">
133         <config inherit="SwitchPortX"/>
134         <switch target="10.1.2.3">
135           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
136           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
137           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
138           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
139         </switch>
140       </switches>
141       <disk module="snmp" period="60000">
142         <config inherit="disk"><community>test</community></config>
143         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
144       </disk>
145     </dc1>
146     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
147   </checks>
148   <filtersets>
149     <filterset name="default">
150       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
151     </filterset>
152   </filtersets>
153   <config_templates>
154     <config id="SwitchPort">
155       <oid_description>IF-MIB::ifDescr.%[:ccns:name]</oid_description>
156       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
157       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
158       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
159       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
160       <oid_inoctets>IF-MIB::ifInOctets.%[:ccns:name]</oid_inoctets>
161       <oid_outoctets>IF-MIB::ifOutOctets.%[:ccns:name]</oid_outoctets>
162       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
163       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
164       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
165       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
166       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[:ccns:name]</oid_inucastpkts>
167       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
168       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[:ccns:name]</oid_inbcastpkts>
169       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[:ccns:name]</oid_outbcastpkts>
170     </config>
171     <config id="SwitchPortX">
172       <oid_description>IF-MIB::ifName.%[:ccns:name]</oid_description>
173       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
174       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
175       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
176       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
177       <oid_inoctets>IF-MIB::ifHCInOctets.%[:ccns:name]</oid_inoctets>
178       <oid_outoctets>IF-MIB::ifHCOutOctets.%[:ccns:name]</oid_outoctets>
179       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
180       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
181       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
182       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
183       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[:ccns:name]</oid_inucastpkts>
184       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
185       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[:ccns:name]</oid_inbcastpkts>
186       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[:ccns:name]</oid_outbcastpkts>
187     </config>
188     <config id="disk">
189       <oid_path>UCD-SNMP-MIB::dskPath.%[:ccns:name]</oid_path>
190       <oid_device>UCD-SNMP-MIB::dskDevice.%[:ccns:name]</oid_device>
191       <oid_total>UCD-SNMP-MIB::dskTotal.%[:ccns:name]</oid_total>
192       <oid_avail>UCD-SNMP-MIB::dskAvail.%[:ccns:name]</oid_avail>
193       <oid_used>UCD-SNMP-MIB::dskUsed.%[:ccns:name]</oid_used>
194       <oid_pctspace>UCD-SNMP-MIB::dskPercent.%[:ccns:name]</oid_pctspace>
195       <oid_pctinodes>UCD-SNMP-MIB::dskPercentNode.%[:ccns:name]</oid_pctinodes>
196       <oid_errorflag>UCD-SNMP-MIB::dskErrorFlag.%[:ccns:name]</oid_errorflag>
197       <oid_errormsg>UCD-SNMP-MIB::dskErrorMsg.%[:ccns:name]</oid_errormsg>
198     </config>
199   </config_templates>
200 </noit>
Note: See TracBrowser for help on using the browser.