root/src/noit.conf.in

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

add a sample in the noit.conf, refs #78

  • 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="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>%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="34332" 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="5000" 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         <parts module="resmon_part" period="0" timeout="10" oncheck="resmon">
112           <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fe" target="10.225.209.36">
113             <config>
114               <resmon_module>FAULTS</resmon_module>
115               <resmon_service>hardware</resmon_service>
116             </config>
117           </check>
118         </parts>
119       </resmon>
120       <switches module="snmp" period="60000">
121         <config inherit="SwitchPortX"/>
122         <switch target="10.80.116.3">
123           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="1"/>
124           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="2"/>
125           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="3"/>
126           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="4"/>
127         </switch>
128       </switches>
129     </dc1>
130     <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
131   </checks>
132   <filtersets>
133     <filterset name="default">
134       <rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$" />
135     </filterset>
136   </filtersets>
137   <config_templates>
138     <config id="SwitchPort">
139       <oid_description>IF-MIB::ifDescr.%[name]</oid_description>
140       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
141       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
142       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
143       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
144       <oid_inoctets>IF-MIB::ifInOctets.%[name]</oid_inoctets>
145       <oid_outoctets>IF-MIB::ifOutOctets.%[name]</oid_outoctets>
146       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
147       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
148       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
149       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
150       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[name]</oid_inucastpkts>
151       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[name]</oid_outucastpkts>
152       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[name]</oid_inbcastpkts>
153       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[name]</oid_outbcastpkts>
154     </config>
155     <config id="SwitchPortX">
156       <oid_description>IF-MIB::ifName.%[name]</oid_description>
157       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
158       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
159       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
160       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
161       <oid_inoctets>IF-MIB::ifHCInOctets.%[name]</oid_inoctets>
162       <oid_outoctets>IF-MIB::ifHCOutOctets.%[name]</oid_outoctets>
163       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
164       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
165       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
166       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
167       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[name]</oid_inucastpkts>
168       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[name]</oid_outucastpkts>
169       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[name]</oid_inbcastpkts>
170       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[name]</oid_outbcastpkts>
171     </config>
172   </config_templates>
173 </noit>
Note: See TracBrowser for help on using the browser.