mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +00:00
mongo_collection_ load env.MONGO_DB_URI
This commit is contained in:
parent
bc55ce69fc
commit
7fd554f04b
1 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,8 @@ if __name__ == "__main__":
|
|||
settings_password = environ['password']
|
||||
if 'ignoredb' in environ:
|
||||
settings_ignoredb = environ['ignoredb'].split(',')
|
||||
if 'MONGO_DB_URI' in environ:
|
||||
settings_mongodb_uri = environ['MONGO_DB_URI']
|
||||
m = re.search('^(.*)_([a-zA-Z0-9]*)$', path.basename(argv[0]))
|
||||
if len(argv) < 2:
|
||||
doData(m.group(1), m.group(2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue