root/src/stratcon.conf.in

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

Add support for riemann as the IEP subsystem.
Remove all traces of Esper.
Change the license on all our bits to simply match reconnoiter.
Cleanup copyrights and embelish auditing script.
Updated test 108 to check riemann iep results.

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <stratcon lockfile="/var/run/stratcond.lock">
3   <!-- <watchdog glider="/opt/gimli/bin/glider" tracedir="/var/log/stratcond.crash"/> -->
4   <eventer/>
5
6   <logs>
7     <console_output>
8       <outlet name="stderr"/>
9       <log name="error"/>
10       <log name="debug"/>
11       <log name="error/iep"/>
12       <log name="error/eventer" disabled="true"/>
13       <log name="error/datastore" disabled="true"/>
14       <log name="debug/eventer" disabled="true"/>
15     </console_output>
16   </logs>
17
18   <modules directory="%modulesdir%">
19     <generic image="stomp_driver" name="stomp_driver"/>
20     <generic image="postgres_ingestor" name="postgres_ingestor"/>
21   </modules>
22
23   <noits>
24     <config>
25       <!--
26         If we have a connection failure, attempt to reconnect
27         immediately.  Upon failure wait 1000ms (1s) and
28         exponentially backoff up to 900000ms (900s or 15m)
29       -->
30       <reconnect_initial_interval>1000</reconnect_initial_interval>
31       <reconnect_maximum_interval>15000</reconnect_maximum_interval>
32     </config>
33     <sslconfig>
34       <key_file>%sysconfdir%/%PKIPREFIX%stratcon.key</key_file>
35       <certificate_file>%sysconfdir%/%PKIPREFIX%stratcon.crt</certificate_file>
36       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
37     </sslconfig>
38     <noit address="127.0.0.1" port="43191" />
39   </noits>
40
41   <iep disabled="false">
42     <start directory="%iepdbdir%"
43            command="%iepbindir%/run-iep.sh" />
44     <broker adapter="rabbitmq">
45       <hostname>mq1,mq2</hostname>
46       <username>guest</username>
47       <password>guest</password>
48     </broker>
49     <mq type="rabbitmq">
50       <hostname>mq1,mq2</hostname>
51       <exchange>noit.firehose</exchange>
52       <exchangetype>topic</exchangetype>
53       <routingkey>check,null</routingkey>
54       <username>guest</username>
55       <password>guest</password>
56     </mq>
57     <riemann>
58       <configfile>riemann.config</configfile>
59     </riemann>
60   </iep>
61
62   <database>
63     <journal>
64       <path>/var/log/stratcon.persist</path>
65     </journal>
66     <dbconfig>
67       <host>localhost</host>
68       <dbname>reconnoiter</dbname>
69       <user>stratcon</user>
70       <password>unguessable</password>
71     </dbconfig>
72     <statements>
73       <!-- These are optional and used for stuff like setting search paths -->
74       <!--
75       <metanodepostconnect><![CDATA[
76         SELECT do_some_magic();
77       ]]></metanodepostconnect>
78       <storagepostconnect><![CDATA[
79         SELECT do_some_magic($1,$2);
80       ]]></storagepostconnect>
81       -->
82       <allchecks><![CDATA[
83         SELECT remote_address, id, target, module, name
84           FROM check_currently
85       ]]></allchecks>
86       <findcheck><![CDATA[
87         SELECT remote_address, id, target, module, name
88           FROM check_currently
89          WHERE sid = $1
90       ]]></findcheck>
91       <allstoragenodes><![CDATA[
92         SELECT storage_node_id, fqdn, dsn
93           FROM stratcon.storage_node
94       ]]></allstoragenodes>
95       <findstoragenode><![CDATA[
96         SELECT fqdn, dsn
97           FROM stratcon.storage_node
98          WHERE storage_node_id = $1
99       ]]></findstoragenode>
100       <mapallchecks><![CDATA[
101         SELECT id, sid, noit as remote_cn, storage_node_id, fqdn, dsn
102           FROM stratcon.map_uuid_to_sid LEFT JOIN stratcon.storage_node USING (storage_node_id)
103       ]]></mapallchecks>
104       <mapchecktostoragenode><![CDATA[
105         SELECT o_storage_node_id as storage_node_id, o_sid as sid,
106                o_fqdn as fqdn, o_dsn as dsn, o_noit as remote_cn
107           FROM stratcon.map_uuid_to_sid($1,$2)
108       ]]></mapchecktostoragenode>
109       <check><![CDATA[
110         INSERT INTO check_archive_%Y%m%d
111                     (remote_address, whence, sid, id, target, module, name)
112              VALUES ($1, 'epoch'::timestamptz + ($2 || ' seconds')::interval,
113                      $3, $4, $5, $6, $7)
114       ]]></check>
115       <status><![CDATA[
116         INSERT INTO check_status_archive_%Y%m%d
117                     (whence, sid, state, availability, duration, status)
118              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
119                      $2, $3, $4, $5, $6)
120       ]]></status>
121       <metric_numeric><![CDATA[
122         INSERT INTO metric_numeric_archive_%Y%m%d
123                     (whence, sid, name, value)
124              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
125                      $2, $3, $4)
126       ]]></metric_numeric>
127       <metric_text><![CDATA[
128         INSERT INTO metric_text_archive_%Y%m%d
129                     ( whence, sid, name,value)
130              VALUES ('epoch'::timestamptz + ($1 || ' seconds')::interval,
131                      $2, $3, $4)
132       ]]></metric_text>
133       <config><![CDATA[
134         SELECT stratcon.update_config
135                ($1, $2, $3,
136                 'epoch'::timestamptz + ($4 || ' seconds')::interval,
137                 $5)
138       ]]></config>
139       <findconfig><![CDATA[
140         SELECT config FROM stratcon.current_node_config WHERE remote_cn = $1
141       ]]></findconfig>
142     </statements>
143   </database>
144
145   <listeners>
146     <sslconfig>
147       <key_file>%sysconfdir%/%PKIPREFIX%stratcon.key</key_file>
148       <certificate_file>%sysconfdir%/%PKIPREFIX%stratcon.crt</certificate_file>
149       <ca_chain>%sysconfdir%/%PKIPREFIX%ca.crt</ca_chain>
150     </sslconfig>
151     <consoles type="noit_console">
152       <listener address="/tmp/stratcon">
153         <config><line_protocol>telnet</line_protocol></config>
154       </listener>
155     </consoles>
156     <realtime type="http_rest_api">
157       <listener address="*" port="80">
158         <config>
159           <hostname>stratcon.noit.example.com</hostname>
160           <document_domain>noit.example.com</document_domain>
161         </config>
162       </listener>
163     </realtime>
164     <listener type="control_dispatch" address="*" port="43191" ssl="on" />
165   </listeners>
166
167   <rest>
168     <acl type="deny">
169       <rule type="deny" url="/\.svn"/>
170       <rule type="allow" cn="^admin$"/>
171       <rule type="allow" cn="^nagios$" url="^/noits/show$"/>
172       <rule type="allow" url="^/noits/config$"/>
173       <rule type="allow" url="^/data/"/>
174       <rule type="allow" url="^/$"/>
175     </acl>
176   </rest>
177
178 </stratcon>
Note: See TracBrowser for help on using the browser.