diff options
author | Evgeniy Kostenko <ask@ossmail.ru> | 2018-08-05 06:07:31 +0300 |
---|---|---|
committer | Evgeniy Kostenko <ask@ossmail.ru> | 2018-08-05 06:07:31 +0300 |
commit | 1d82489dc2775d09fcbb2627a6366b77a19d4fd0 (patch) | |
tree | bf3728ef5b4d7aec166c31a0880ed8a3bb2dd90c /python.d | |
parent | e7ae6bb3c838d0336f8e8667b30087f65a46e949 (diff) |
changes for "New Module PR Checklist" (makefiles,readme,dashboard)
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/Makefile.am | 1 | ||||
-rw-r--r-- | python.d/README.md | 34 | ||||
-rw-r--r-- | python.d/monit.chart.py | 2 |
3 files changed, 36 insertions, 1 deletions
diff --git a/python.d/Makefile.am b/python.d/Makefile.am index 43fcef6c69..2c620b6455 100644 --- a/python.d/Makefile.am +++ b/python.d/Makefile.am @@ -44,6 +44,7 @@ dist_python_DATA = \ megacli.chart.py \ memcached.chart.py \ mongodb.chart.py \ + monit.chart.py \ mysql.chart.py \ nginx.chart.py \ nginx_plus.chart.py \ diff --git a/python.d/README.md b/python.d/README.md index 41a142675b..baf917bd89 100644 --- a/python.d/README.md +++ b/python.d/README.md @@ -1381,6 +1381,40 @@ If no configuration is given, module will attempt to connect to mongodb daemon o --- +# monit + +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). + +1. **Filesystems** + * Filesystems + * Directories + * Files + * Pipes + +2. **Applications** + * Processes (+threads/childs) + * Programs + +3. **Network** + * Hosts (+latency) + * Network interfaces + +### configuration + +Sample: + +```yaml +local: + name : 'local' + host : '127.0.0.1' + port : 2812 + user: : admin + pass: : monit +``` + +If no configuration is given, module will attempt to connect to monit as `http://localhost:2812/_status?format=xml&level=full`. + +--- # mysql diff --git a/python.d/monit.chart.py b/python.d/monit.chart.py index bacd729c5d..6285d7d1f4 100644 --- a/python.d/monit.chart.py +++ b/python.d/monit.chart.py @@ -77,7 +77,7 @@ CHARTS = { class Service(UrlService): def __init__(self, configuration=None, name=None): UrlService.__init__(self, configuration=configuration, name=name) - self.url = self.configuration.get('url', "http://127.0.0.1:2812/_status?format=xml&level=full") + self.url = self.configuration.get('url', "http://localhost:2812/_status?format=xml&level=full") self.order = ORDER self.definitions = CHARTS |