root/src/noit.conf

Revision f8c4ac748cb38d6b31387f62069fce0ff7287322, 5.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 11 years ago)

libxml2's write of this

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <noit>
3   <eventer implementation="kqueue">
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" />-->
15     <log name="feed"><outlet name="stderr"/></log>
16     <feeds>
17       <outlet name="feed"/>
18       <log name="check">
19         <outlet name="error"/>
20       </log>
21       <log name="status"/>
22       <log name="metrics"/>
23     </feeds>
24   </logs>
25   <modules directory="./modules">
26     <module image="ping_icmp" name="ping_icmp"/>
27     <http image="http">
28       <module name="resmon"/>
29       <module name="resmon_part"/>
30       <module name="http"/>
31     </http>
32     <module image="snmp" name="snmp"/>
33   </modules>
34   <listeners>
35     <consoles type="noit_console">
36       <listener address="/tmp/noit">
37         <config><line_protocol>telnet</line_protocol></config>
38       </listener>
39       <listener address="*" port="32322">
40         <config><line_protocol>telnet</line_protocol></config>
41       </listener>
42       <listener address="*" port="32323">
43         <sslconfig>
44           <optional_no_ca>false</optional_no_ca>
45           <certificate_file>test.crt</certificate_file>
46           <key_file>test.key</key_file>
47           <ca_chain>test-ca.crt</ca_chain>
48         </sslconfig>
49       </listener>
50     </consoles>
51   </listeners>
52   <checks max_initial_stutter="5">
53     <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
54     <dc1 timeout="30000" period="60000">
55       <icmp module="ping_icmp" timeout="12000">
56         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
57       </icmp>
58       <web module="http" timeout="8000">
59         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
60           <config>
61             <url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
62             <code>302</code>
63           </config>
64         </check>
65         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
66           <config>
67             <url>https://taskman.omniti.com/</url>
68             <code>200</code>
69           </config>
70         </check>
71       </web>
72       <resmon module="resmon" period="30000" timeout="5000">
73         <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
74         <parts module="resmon_part" period="0" timeout="1000" oncheck="resmon">
75           <check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fe" target="10.225.209.36">
76             <config>
77               <resmon_module>FAULTS</resmon_module>
78               <resmon_service>hardware</resmon_service>
79             </config>
80           </check>
81         </parts>
82       </resmon>
83       <switches module="snmp" period="30000">
84         <config inherit="SwitchPortX"/>
85         <switch target="10.80.116.3">
86           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="1"/>
87           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="2"/>
88           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="3"/>
89         <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="4"/></switch>
90       </switches>
91     </dc1>
92   </checks>
93   <config_templates>
94     <config id="SwitchPort">
95       <oid_description>IF-MIB::ifDescr.%[name]</oid_description>
96       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
97       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
98       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
99       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
100       <oid_inoctets>IF-MIB::ifInOctets.%[name]</oid_inoctets>
101       <oid_outoctets>IF-MIB::ifOutOctets.%[name]</oid_outoctets>
102       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
103       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
104       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
105       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
106       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[name]</oid_inucastpkts>
107       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[name]</oid_outucastpkts>
108       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[name]</oid_inbcastpkts>
109       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[name]</oid_outbcastpkts>
110     </config>
111     <config id="SwitchPortX">
112       <oid_description>IF-MIB::ifName.%[name]</oid_description>
113       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias>
114       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed>
115       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus>
116       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus>
117       <oid_inoctets>IF-MIB::ifHCInOctets.%[name]</oid_inoctets>
118       <oid_outoctets>IF-MIB::ifHCOutOctets.%[name]</oid_outoctets>
119       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors>
120       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors>
121       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards>
122       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards>
123       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[name]</oid_inucastpkts>
124       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[name]</oid_outucastpkts>
125       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[name]</oid_inbcastpkts>
126       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[name]</oid_outbcastpkts>
127     </config>
128   </config_templates>
129 </noit>
Note: See TracBrowser for help on using the browser.