root/src/noit.conf.in

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

closes #129

  • 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     </config>
7   </eventer>
8   <logs>
9     <console_output>
10       <outlet name="stderr"/>
11       <log name="error"/>
12       <log name="debug" disabled="true"/>
13     </console_output>
14     <feeds>
15       <log name="feed" type="jlog" path="/var/log/noitd.feed(stratcon)"/>
16     </feeds>
17     <components>
18       <error>
19         <outlet name="error"/>
20         <log name="error/eventer"/>
21         <log name="error/ping_icmp"/>
22         <log name="error/serf"/>
23         <log name="error/snmp"/>
24       </error>
25       <debug>
26         <log name="debug/eventer" disabled="true"/>
27         <log name="debug/ping_icmp" disabled="true"/>
28         <log name="debug/serf" disabled="false"/>
29         <log name="debug/snmp" disabled="true"/>
30       </debug>
31     </components>
32     <feeds>
33       <outlet name="feed"/>
34       <log name="check">
35         <outlet name="error"/>
36       </log>
37       <log name="status"/>
38       <log name="metrics"/>
39       <log name="config"/>
40     </feeds>
41   </logs>
42   <modules directory="%modulesdir%">
43     <loader image="lua" name="lua">
44       <config><directory>%modulesluadir%/?.lua</directory></config>
45     </loader>
46     <module image="selfcheck" name="selfcheck"/>
47     <module image="ping_icmp" name="ping_icmp"/>
48     <http image="http">
49       <module name="resmon"/>
50       <module name="resmon_part"/>
51       <module name="http"/>
52     </http>
53     <module image="snmp" name="snmp"/>
54     <module image="ssh2" name="ssh2"/>
55     <module loader="lua" name="varnish" object="noit.module.varnish"/>
56   </modules>
57   <listeners>
58     <sslconfig>
59       <optional_no_ca>false</optional_no_ca>
60       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
61       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
62       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
63     </sslconfig>
64     <consoles type="noit_console">
65       <listener address="/tmp/noit">
66         <config>
67           <line_protocol>telnet</line_protocol>
68         </config>
69       </listener>
70       <listener address="*" port="32322">
71         <config>
72           <line_protocol>telnet</line_protocol>
73         </config>
74       </listener>
75       <listener address="*" port="32323" ssl="on"/>
76     </consoles>
77     <listener type="control_dispatch" address="*" port="43191" ssl="on">
78       <config>
79         <log_transit_feed_name>feed</log_transit_feed_name>
80       </config>
81     </listener>
82   </listeners>
83   <checks max_initial_stutter="30000" filterset="default">
84     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
85     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
86     <dc1 timeout="5000" period="60000">
87       <icmp module="ping_icmp">
88         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
89       </icmp>
90       <web module="http">
91         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
92           <config>
93             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
94             <code>302</code>
95           </config>
96         </check>
97         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
98           <config>
99             <url>https://labs.omniti.com/</url>
100             <code>200</code>
101           </config>
102         </check>
103         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
104           <config>
105             <url>https://taskman.omniti.com/</url>
106             <code>200</code>
107           </config>
108         </check>
109       </web>
110       <resmon module="resmon" period="30000">
111         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
112         <parts module="resmon_part" period="0" timeout="10" oncheck="resmon">
113           <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fe" target="10.225.209.36">
114             <config>
115               <resmon_module>FAULTS</resmon_module>
116               <resmon_service>hardware</resmon_service>
117             </config>
118           </check>
119         </parts>
120       </resmon>
121       <switches module="snmp" period="60000">
122         <config inherit="SwitchPortX"/>
123         <switch target="10.80.116.3">
124           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="1"/>
125           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="2"/>
126           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="3"/>
127           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="4"/>
128         </switch>
129       </switches>
130     </dc1>
131     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
132   </checks>
133   <filtersets>
134     <filterset name="default">
135       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
136     </filterset>
137   </filtersets>
138   <config_templates>
139     <config id="SwitchPort">
140       <oid_description>IF-MIB::ifDescr.%[name]</oid_description>
141       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
142       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
143       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
144       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
145       <oid_inoctets>IF-MIB::ifInOctets.%[name]</oid_inoctets>
146       <oid_outoctets>IF-MIB::ifOutOctets.%[name]</oid_outoctets>
147       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
148       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
149       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
150       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
151       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[name]</oid_inucastpkts>
152       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[name]</oid_outucastpkts>
153       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[name]</oid_inbcastpkts>
154       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[name]</oid_outbcastpkts>
155     </config>
156     <config id="SwitchPortX">
157       <oid_description>IF-MIB::ifName.%[name]</oid_description>
158       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
159       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
160       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
161       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
162       <oid_inoctets>IF-MIB::ifHCInOctets.%[name]</oid_inoctets>
163       <oid_outoctets>IF-MIB::ifHCOutOctets.%[name]</oid_outoctets>
164       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
165       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
166       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
167       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
168       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[name]</oid_inucastpkts>
169       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[name]</oid_outucastpkts>
170       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[name]</oid_inbcastpkts>
171       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[name]</oid_outbcastpkts>
172     </config>
173   </config_templates>
174 </noit>
Note: See TracBrowser for help on using the browser.