changes for "New Module PR Checklist" (makefiles,readme,dashboard)
Evgeniy Kostenko committed
Aug 5, 2018 at 06:07 UTC
1d82489dc2775d09fcbb2627a6366b77a19d4fd0
6 files changed
+44
-1
conf.d/Makefile.am
+1
@@ -56,6 +56,7 @@ dist_pythonconfig_DATA = \
56
python.d/megacli.conf \
57
python.d/memcached.conf \
58
python.d/mongodb.conf \
59
+ python.d/monit.conf \
60
python.d/mysql.conf \
61
python.d/nginx.conf \
62
python.d/nginx_plus.conf \
conf.d/python.d.conf
+1
@@ -55,6 +55,7 @@ logind: no
55
# mdstat: yes
56
# memcached: yes
57
# mongodb: yes
58
+# monit: yes
59
# mysql: yes
60
# nginx: yes
61
# nginx_plus: yes
python.d/Makefile.am
+1
@@ -44,6 +44,7 @@ dist_python_DATA = \
44
megacli.chart.py \
45
memcached.chart.py \
46
mongodb.chart.py \
47
+ monit.chart.py \
48
mysql.chart.py \
49
nginx.chart.py \
50
nginx_plus.chart.py \
python.d/README.md
+34
@@ -1381,6 +1381,40 @@ If no configuration is given, module will attempt to connect to mongodb daemon o
1381
1382
---
1383
1384
+# monit
1385
+
1386
+Monit monitoring module. Data is grabbed from stats XML interface (exsists for a long time, but not mentioned in official documentation). Mostly this plugin shows statuses of monit targets, i.e. [statuses of specified checks](https://mmonit.com/monit/documentation/monit.html#Service-checks).
1387
+
1388
+1. **Filesystems**
1389
+ * Filesystems
1390
+ * Directories
1391
+ * Files
1392
+ * Pipes
1393
+
1394
+2. **Applications**
1395
+ * Processes (+threads/childs)
1396
+ * Programs
1397
+
1398
+3. **Network**
1399
+ * Hosts (+latency)
1400
+ * Network interfaces
1401
+
1402
+### configuration
1403
+
1404
+Sample:
1405
+
1406
+```yaml
1407
+local:
1408
+ name : 'local'
1409
+ host : '127.0.0.1'
1410
+ port : 2812
1411
+ user: : admin
1412
+ pass: : monit
1413
+```
1414
+
1415
+If no configuration is given, module will attempt to connect to monit as `http://localhost:2812/_status?format=xml&level=full`.
1416
+
1417
+---
1418
1419
# mysql
1420
python.d/monit.chart.py
+1
-1
@@ -77,7 +77,7 @@ CHARTS = {
77
class Service(UrlService):
78
def __init__(self, configuration=None, name=None):
79
UrlService.__init__(self, configuration=configuration, name=name)
80
- self.url = self.configuration.get('url', "http://127.0.0.1:2812/_status?format=xml&level=full")
80
+ self.url = self.configuration.get('url', "http://localhost:2812/_status?format=xml&level=full")
81
self.order = ORDER
82
self.definitions = CHARTS
83
web/dashboard_info.js
+6
@@ -196,6 +196,12 @@ netdataDashboard.menu = {
196
info: 'Performance metrics for <b>memcached</b>. Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.'
197
},
198
199
+ 'monit': {
200
+ title: 'monit',
201
+ icon: '<i class="fas fa-database"></i>',
202
+ info: 'Statuses of checks in <b>monit</b>. Monit is a utility for managing and monitoring processes, programs, files, directories and filesystems on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.'
203
+ },
204
+
205
'mysql': {
206
title: 'MySQL',
207
icon: '<i class="fas fa-database"></i>',