root/src/noit.conf

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

implements configuration pushing into the DB. refs #26

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