root/src/noit.conf

Revision bee4ff5cd3e246444249d7c48e9bb34fd5e4c831, 6.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

config for this... closes #28

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