root/src/noit.conf.in

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

fixes #213 w/ examples

  • 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/eventer"/>
22         <log name="error/ping_icmp"/>
23         <log name="error/serf"/>
24         <log name="error/snmp"/>
25       </error>
26       <debug>
27         <log name="debug/eventer" disabled="true"/>
28         <log name="debug/ping_icmp" disabled="true"/>
29         <log name="debug/serf" disabled="false"/>
30         <log name="debug/snmp" disabled="true"/>
31       </debug>
32     </components>
33     <feeds>
34       <outlet name="feed"/>
35       <log name="check">
36         <outlet name="error"/>
37       </log>
38       <log name="status"/>
39       <log name="metrics"/>
40       <log name="config"/>
41     </feeds>
42   </logs>
43   <modules directory="%modulesdir%">
44     <loader image="lua" name="lua">
45       <config><directory>%modulesluadir%/?.lua</directory></config>
46     </loader>
47     <module image="selfcheck" name="selfcheck"/>
48     <module image="ping_icmp" name="ping_icmp"/>
49     <module image="snmp" name="snmp"/>
50     <module image="ssh2" name="ssh2"/>
51     <module loader="lua" name="varnish" object="noit.module.varnish"/>
52     <module loader="lua" name="http" object="noit.module.http"/>
53     <module loader="lua" name="resmon" object="noit.module.resmon"/>
54     <module loader="lua" name="smtp" object="noit.module.smtp"/>
55   </modules>
56   <listeners>
57     <sslconfig>
58       <optional_no_ca>false</optional_no_ca>
59       <certificate_file>%sysconfdir%/%PKIPREFIX%noit.crt</certificate_file>
60       <key_file>%sysconfdir%/%PKIPREFIX%noit.key</key_file>
61       <ca_chain>%sysconfdir%/%PKIPREFIX%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="control_dispatch" address="*" port="43191" ssl="on">
77       <config>
78         <log_transit_feed_name>feed</log_transit_feed_name>
79       </config>
80     </listener>
81   </listeners>
82   <checks max_initial_stutter="30000" filterset="default">
83     <check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
84     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
85     <dc1 timeout="30000" period="60000">
86       <icmp module="ping_icmp">
87         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
88       </icmp>
89       <web module="http">
90         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
91           <config>
92             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
93             <code>302</code>
94           </config>
95         </check>
96         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
97           <config>
98             <url>https://labs.omniti.com/</url>
99             <code>200</code>
100           </config>
101         </check>
102         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
103           <config>
104             <url>https://taskman.omniti.com/</url>
105             <code>200</code>
106           </config>
107         </check>
108       </web>
109       <resmon module="resmon" period="30000">
110         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
111       </resmon>
112       <switches module="snmp" period="60000">
113         <config inherit="SwitchPortX"/>
114         <switch target="10.1.2.3">
115           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
116           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
117           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
118           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
119         </switch>
120       </switches>
121       <disk module="snmp" period="60000">
122         <config inherit="disk"><community>test</community></config>
123         <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" />
124       </disk>
125     </dc1>
126     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
127   </checks>
128   <filtersets>
129     <filterset name="default">
130       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
131     </filterset>
132   </filtersets>
133   <config_templates>
134     <config id="SwitchPort">
135       <oid_description>IF-MIB::ifDescr.%[:ccns:name]</oid_description>
136       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
137       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
138       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
139       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
140       <oid_inoctets>IF-MIB::ifInOctets.%[:ccns:name]</oid_inoctets>
141       <oid_outoctets>IF-MIB::ifOutOctets.%[:ccns:name]</oid_outoctets>
142       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
143       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
144       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
145       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
146       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[:ccns:name]</oid_inucastpkts>
147       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
148       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[:ccns:name]</oid_inbcastpkts>
149       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[:ccns:name]</oid_outbcastpkts>
150     </config>
151     <config id="SwitchPortX">
152       <oid_description>IF-MIB::ifName.%[:ccns:name]</oid_description>
153       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
154       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
155       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
156       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
157       <oid_inoctets>IF-MIB::ifHCInOctets.%[:ccns:name]</oid_inoctets>
158       <oid_outoctets>IF-MIB::ifHCOutOctets.%[:ccns:name]</oid_outoctets>
159       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
160       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
161       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
162       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
163       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[:ccns:name]</oid_inucastpkts>
164       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
165       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[:ccns:name]</oid_inbcastpkts>
166       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[:ccns:name]</oid_outbcastpkts>
167     </config>
168     <config id="disk">
169       <oid_path>UCD-SNMP-MIB::dskPath.%[:ccns:name]</oid_path>
170       <oid_device>UCD-SNMP-MIB::dskDevice.%[:ccns:name]</oid_device>
171       <oid_total>UCD-SNMP-MIB::dskTotal.%[:ccns:name]</oid_total>
172       <oid_avail>UCD-SNMP-MIB::dskAvail.%[:ccns:name]</oid_avail>
173       <oid_used>UCD-SNMP-MIB::dskUsed.%[:ccns:name]</oid_used>
174       <oid_pctspace>UCD-SNMP-MIB::dskPercent.%[:ccns:name]</oid_pctspace>
175       <oid_pctinodes>UCD-SNMP-MIB::dskPercentNode.%[:ccns:name]</oid_pctinodes>
176       <oid_errorflag>UCD-SNMP-MIB::dskErrorFlag.%[:ccns:name]</oid_errorflag>
177       <oid_errormsg>UCD-SNMP-MIB::dskErrorMsg.%[:ccns:name]</oid_errormsg>
178     </config>
179   </config_templates>
180 </noit>
Note: See TracBrowser for help on using the browser.