Skip to content

Instantly share code, notes, and snippets.

@ggreer
Created June 2, 2011 18:45
Show Gist options
  • Save ggreer/1005007 to your computer and use it in GitHub Desktop.
Save ggreer/1005007 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf8" standalone="yes"?>
<noit lockfile="/var/run/noitd.lock">
<eventer>
<config>
<default_queue_threads>10</default_queue_threads>
<default_ca_chain>/opt/noit/etc/default-ca-chain.crt</default_ca_chain>
</config>
</eventer>
<logs>
<console_output>
<outlet name="stderr"/>
<log name="error"/>
<log name="debug" disabled="false"/>
</console_output>
<feeds>
<log name="feed" type="jlog" path="/var/log/noitd.feed(stratcon)"/>
</feeds>
<components>
<error>
<outlet name="error"/>
<log name="error/collectd"/>
<log name="error/dns"/>
<log name="error/eventer"/>
<log name="error/external"/>
<log name="error/lua"/>
<log name="error/mysql"/>
<log name="error/ping_icmp"/>
<log name="error/postgres"/>
<log name="error/selfcheck"/>
<log name="error/snmp"/>
<log name="error/ssh2"/>
</error>
<debug>
<outlet name="debug"/>
<log name="debug/collectd" disabled="true"/>
<log name="debug/dns" disabled="true"/>
<log name="debug/eventer" disabled="true"/>
<log name="debug/external" disabled="true"/>
<log name="debug/lua" disabled="true"/>
<log name="debug/mysql" disabled="true"/>
<log name="debug/ping_icmp" disabled="true"/>
<log name="debug/postgres" disabled="true"/>
<log name="debug/selfcheck" disabled="true"/>
<log name="debug/snmp" disabled="true"/>
<log name="debug/ssh2" disabled="true"/>
</debug>
</components>
<feeds>
<outlet name="feed"/>
<log name="check"/>
<log name="status"/>
<log name="metrics"/>
<log name="config"/>
</feeds>
</logs>
<modules directory="/opt/noit/libexec/noit">
<loader image="lua" name="lua">
<config>
<directory>/opt/noit/libexec/noit/?.lua</directory>
</config>
</loader>
<module image="selfcheck" name="selfcheck"/>
<module image="ping_icmp" name="ping_icmp"/>
<module image="dns" name="dns"/>
<module image="snmp" name="snmp"/>
<module image="ssh2" name="ssh2"/>
<module loader="lua" name="varnish" object="noit.module.varnish"/>
<module loader="lua" name="http" object="noit.module.http"/>
<module loader="lua" name="resmon" object="noit.module.resmon"/>
<module loader="lua" name="smtp" object="noit.module.smtp"/>
<jezebel>
<config>
<url>http://127.0.0.1:8083/dispatch</url>
</config>
<module loader="lua" name="jmx" object="noit.module.jezebel"/>
</jezebel>
</modules>
<listeners>
<sslconfig>
<optional_no_ca>false</optional_no_ca>
<certificate_file>/opt/noit/etc/noit.crt</certificate_file>
<key_file>/opt/noit/etc/noit.key</key_file>
<ca_chain>/opt/noit/etc/ca.crt</ca_chain>
</sslconfig>
<consoles type="noit_console">
<listener address="/tmp/noit">
<config>
<line_protocol>telnet</line_protocol>
</config>
</listener>
<listener address="*" port="32322">
<config>
<line_protocol>telnet</line_protocol>
</config>
</listener>
<listener address="*" port="32323" ssl="on"/>
</consoles>
<listener type="control_dispatch" address="*" port="43191" ssl="on">
<config>
<log_transit_feed_name>feed</log_transit_feed_name>
</config>
</listener>
</listeners>
<rest>
<acl>
<rule type="allow"/>
</acl>
</rest>
<checks max_initial_stutter="30000" filterset="default" transient_min_period="1000" transient_period_granularity="500">
<check uuid="f7cea020-f19d-11dd-85a6-cb6d3a2207dc" module="selfcheck" target="10.80.117.90" period="5000" timeout="4000"/>
<check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/>
<dc1 timeout="30000" period="60000" transient_min_period="10000">
<icmp module="ping_icmp">
<check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb" target="66.225.209.7"/>
</icmp>
<web module="http">
<check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fc" target="66.225.209.31">
<config>
<url>http://ngm.nationalgeographic.com/ngm/ngm.html</url>
<code>302</code>
</config>
</check>
<check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3aa" target="8.8.38.5">
<config>
<url>https://labs.omniti.com/</url>
<code>200</code>
</config>
</check>
<check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3ff" target="8.8.38.59">
<config>
<url>https://taskman.omniti.com/</url>
<code>200</code>
</config>
</check>
</web>
<resmon module="resmon" period="30000">
<check uuid="1b4e28ba-2fa1-11d2-883f-b9a761bde3fd" timeout="2000" target="10.225.209.36"/>
</resmon>
<switches module="snmp" period="60000">
<config inherit="SwitchPortX"/>
<switch target="10.1.2.3">
<check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/>
<check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/>
<check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/>
<check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/>
</switch>
</switches>
<disk module="snmp" period="60000">
<config inherit="disk">
<community>test</community>
</config>
<check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1"/>
</disk>
</dc1>
<check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/>
<check uuid="0dbc2995-1bd3-4715-92e0-dd06a17949e1" name="77de68daecd823babbb58edb1c8e14d7106e83bb" module="ping_icmp" acctid="1465" target="208.78.96.61" period="150001" timeout="100000" filterset="default">
<config>
<count>5</count>
<avail_needed>40</avail_needed>
<interval>500</interval>
</config>
</check>
<check uuid="d65a4f4a-bbe9-46e5-8a3d-0fd4f8fa2222" name="77de68daecd823babbb58edb1c8e14d7106e83bb" module="ping_icmp" acctid="4258" target="173.203.226.206" period="149996" timeout="100000" filterset="default">
<config>
<count>5</count>
<avail_needed>40</avail_needed>
<interval>500</interval>
</config>
</check>
<check uuid="0fcec535-7c6a-43fa-9107-aa6576e3e9d0" name="9be80dbcbe1968bdbac2010ef98c76bd066d085d" module="http" acctid="2440" target="" period="150002" timeout="100000" filterset="default">
<config>
<code>^[23]..$</code>
<url>http://api.delvenetworks.com:8002/heartbeat</url>
</config>
</check>
<check uuid="7ebd0fdc-7cc9-11e0-ac7b-5855caf208bf" name="http" module="http" target="4.3.2.1" period="60000" timeout="5000" filterset="default">
<config>
<code>200</code>
<url>https://labs.omniti.com/</url>
</config>
</check>
</checks>
<filtersets>
<filterset name="default">
<rule type="deny" module="^ping_icmp$" metric="^(?:minimum|maximum|count)$"/>
<rule type="allow"/>
</filterset>
</filtersets>
<config_templates>
<include file="config_templates.conf"/>
</config_templates>
</noit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment