root/src/noit.conf

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

implements filter sets, fixes #24

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