Révision c6f88968
Improve perlpod formatting for multiple plugins
Escpecially the final marker ("=cut") was missing in these plugins.
| plugins/mongodb/mongo_ops | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/env python3 |
| 2 | 2 |
""" |
| 3 | 3 |
=head1 NAME |
| 4 |
MongoDB ops Plugin |
|
| 4 |
|
|
| 5 |
mongo_ops - MongoDB ops Plugin |
|
| 5 | 6 |
|
| 6 | 7 |
=head1 APPLICABLE SYSTEMS |
| 7 | 8 |
|
| 8 |
MongoDB 3.X and 4.X with pymongo installed.
|
|
| 9 |
MongoDB 3.X and 4.X with pymongo installed. |
|
| 9 | 10 |
|
| 10 | 11 |
=head1 CONFIGURATION |
| 11 | 12 |
|
| 12 |
munin-node.conf |
|
| 13 |
defaults for host is 127.0.0.1 and port 27017 |
|
| 14 |
and will work without being defined : |
|
| 13 |
Default for host is 127.0.0.1 and port 27017 and will work without being defined: |
|
| 15 | 14 |
|
| 16 | 15 |
[mongodb_ops] |
| 17 | 16 |
env.host 127.0.0.1 |
| ... | ... | |
| 20 | 19 |
env.password P@55w0rd |
| 21 | 20 |
env.db dbname |
| 22 | 21 |
|
| 23 |
or
|
|
| 22 |
or |
|
| 24 | 23 |
|
| 25 | 24 |
[mongodb_ops] |
| 26 | 25 |
env.MONGO_DB_URI mongodb://user:password@host:port/dbname |
| 27 | 26 |
|
| 28 | 27 |
=head1 AUTHOR |
| 29 | 28 |
|
| 30 |
Original script there : https://github.com/comerford/mongo-munin |
|
| 31 |
Updated by Alban Espie-Guillon <alban.espie@alterway.fr> |
|
| 29 |
Original script there : https://github.com/comerford/mongo-munin |
|
| 30 |
|
|
| 31 |
Updated by Alban Espie-Guillon <alban.espie@alterway.fr> |
|
| 32 |
|
|
| 33 |
=cut |
|
| 32 | 34 |
""" |
| 35 |
|
|
| 33 | 36 |
import sys |
| 34 | 37 |
import os |
| 35 | 38 |
import pymongo |
Formats disponibles : Unified diff