blob: a0fd8f933769a933be479091d40e2beb903f77f4 [file] [log] [blame]
Filip Pytloun818f5e12015-10-06 16:28:32 +02001
2=====
3Sensu
4=====
5
6Sample pillars
7==============
8
9Sensu Server with API
10
11.. code-block:: yaml
12
13 sensu:
14 server:
15 enabled: true
16 keepalive_warning: 20
jan kaufman2af39ed2016-02-25 11:02:19 +010017 keepalive_critical: 60
Filip Pytloun818f5e12015-10-06 16:28:32 +020018 mine_checks: true
19 database:
20 engine: redis
21 host: localhost
22 port: 6379
23 message_queue:
24 engine: rabbitmq
25 host: rabbitmq
26 port: 5672
27 user: monitor
28 password: pwd
29 virtual_host: '/monitor'
30 bind:
31 address: 0.0.0.0
32 port: 4567
33 handler:
34 default:
35 enabled: true
36 set:
37 - mail
jan kaufman2af39ed2016-02-25 11:02:19 +010038 - pipe
Filip Pytloun818f5e12015-10-06 16:28:32 +020039 stdout:
40 enabled: true
41 mail:
42 mail_to: 'mail@domain.cz'
43 host: smtp1.domain.cz
44 port: 465
45 user: 'mail@domain.cz'
46 password: 'pwd'
47 authentication: cram_md5
48 encryption: ssl
49 domain: 'domain.cz'
jan kaufman2af39ed2016-02-25 11:02:19 +010050 pipe:
51 enabled: true
52 command: /usr/bin/tee /tmp/debug
Filip Pytloun818f5e12015-10-06 16:28:32 +020053
54Sensu Dashboard (now uchiwa)
55
56.. code-block:: yaml
57
58 sensu:
59 dashboard:
60 enabled: true
61 bind:
62 address: 0.0.0.0
63 port: 8080
64 admin:
65 username: admin
66 password: pass
67
68Sensu Client
69
70.. code-block:: yaml
71
72 sensu:
73 client:
74 enabled: true
75 message_queue:
76 engine: rabbitmq
77 host: rabbitmq
78 port: 5672
79 user: monitor
80 password: pwd
81 virtual_host: '/monitor'
82
Adam Tenglera143f362016-10-31 19:40:35 +010083Sensu Client with check explicitly disabled
84
85.. code-block:: yaml
86
87 sensu:
88 client:
89 enabled: true
90 message_queue:
91 engine: rabbitmq
92 host: rabbitmq
93 port: 5672
94 user: monitor
95 password: pwd
96 virtual_host: '/monitor'
97 check:
98 local_linux_storage_swap_usage:
99 enabled: False
100
Filip Pytloun818f5e12015-10-06 16:28:32 +0200101Sensu Client with community plugins
102
103.. code-block:: yaml
104
105 sensu:
106 client:
107 enabled: true
108 plugin:
109 sensu_community_plugins:
110 enabled: true
111 monitoring_for_openstack:
112 enabled: true
vmikes299f9af2016-09-06 16:04:22 +0200113 ruby_gems:
114 enabled: True
115 name:
116 bunny:
Filip Pytloun818f5e12015-10-06 16:28:32 +0200117 message_queue:
118 engine: rabbitmq
119 host: rabbitmq
120 port: 5672
121 user: monitor
122 password: pwd
123 virtual_host: '/monitor'
124
Jakub Pavlikcca98e92016-09-06 18:08:22 +0200125Sensu SalesForce handler
126
127.. code-block:: yaml
128
129 sensu:
130 server:
131 enabled: true
132 handler:
133 default:
134 enabled: true
135 set:
136 - sfdc
137 stdout:
138 enabled: true
139 sfdc:
140 enabled: true
141 sfdc_client_id: "3MVG9Oe7T3Ol0ea4MKj"
142 sfdc_client_secret: 11482216293059
143 sfdc_username: test@test1.test
144 sfdc_password: passTemp
145 sfdc_auth_url: https://mysite--scloudqa.cs12.my.salesforce.com
146 environment: a2XV0000001
147 sfdc_organization_id: 00DV00000
148
Filip Pytloun818f5e12015-10-06 16:28:32 +0200149Read more
150=========
151
152* http://docs.sensuapp.org/0.9/installing_sensu.html
153* https://speakerdeck.com/joemiller/practical-examples-with-sensu-monitoring-framework
154* https://github.com/fridim/nagios-plugin-check_galera_cluster
155* http://www.reimann.sh/2011/06/30/nagios-check-pacemaker-failed-actions/
156* http://sys4.de/en/blog/2014/01/23/montoring-pacemaker-nagios/
157* https://raw.githubusercontent.com/sensu/sensu-community-plugins/master/plugins/openstack/neutron/neutron-agent-status.py
158* https://github.com/sensu/sensu-community-plugins/blob/master/plugins/openstack/keystone/check_keystone-api.sh
159* http://openstack.prov12n.com/monitoring-openstack-nagios-3/
160* https://raw.githubusercontent.com/drewkerrigan/nagios-http-json/master/check_http_json.py
161* https://github.com/opinkerfi/nagios-plugins/tree/master/check_ibm_bladecenter
162* https://github.com/opinkerfi/nagios-plugins/tree/master/check_storwize
163* https://github.com/ehazlett/sensu-py/
164* https://github.com/Level-Up/Supervisord-Nagios-Plugin/blob/master/check_supv.py
Filip Pytlouncf8a8f62017-02-02 13:02:03 +0100165
166Documentation and Bugs
167======================
168
169To learn how to install and update salt-formulas, consult the documentation
170available online at:
171
172 http://salt-formulas.readthedocs.io/
173
174In the unfortunate event that bugs are discovered, they should be reported to
175the appropriate issue tracker. Use Github issue tracker for specific salt
176formula:
177
178 https://github.com/salt-formulas/salt-formula-sensu/issues
179
180For feature requests, bug reports or blueprints affecting entire ecosystem,
181use Launchpad salt-formulas project:
182
183 https://launchpad.net/salt-formulas
184
185You can also join salt-formulas-users team and subscribe to mailing list:
186
187 https://launchpad.net/~salt-formulas-users
188
189Developers wishing to work on the salt-formulas projects should always base
190their work on master branch and submit pull request against specific formula.
191
192 https://github.com/salt-formulas/salt-formula-sensu
193
194Any questions or feedback is always welcome so feel free to join our IRC
195channel:
196
197 #salt-formulas @ irc.freenode.net