1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-09-19 00:53:19 +00:00

Improve perlpod formatting for multiple plugins

Escpecially the final marker ("=cut") was missing in these plugins.
This commit is contained in:
Lars Kruse 2020-10-06 00:29:38 +02:00
parent 743395a605
commit c6f88968d1
20 changed files with 198 additions and 142 deletions

View file

@ -1,11 +1,12 @@
#!/usr/bin/env python
"""
=head1 NAME
MongoDB btree Plugin
mongo_btree - MongoDB btree Plugin
=head1 APPLICABLE SYSTEMS
Works until MongoDB 2.7. The "indexCounters" field was removed in 2.8 version.
Works until MongoDB 2.7. The "indexCounters" field was removed in 2.8 version.
=head1 CONFIGURATION
@ -14,8 +15,11 @@
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import urllib2

View file

@ -1,11 +1,12 @@
#!/usr/bin/env python
"""
=head1 NAME
MongoDB connections Plugin
mongo_conn - MongoDB connections Plugin
=head1 APPLICABLE SYSTEMS
Works until MongoDB 3.6. The httpinterface was later removed.
Works until MongoDB 3.6. The httpinterface was later removed.
=head1 CONFIGURATION
@ -14,8 +15,11 @@
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import urllib2

View file

@ -1,20 +1,18 @@
#!/usr/bin/env python3
"""
=head1 NAME
MongoDB Replication Lag
Connects to a single mongo instance and retrieve
replication lag for all connected members.
mongo_lag - MongoDB Replication Lag
Connects to a single mongo instance and retrieve replication lag for all connected members.
=head1 APPLICABLE SYSTEMS
MongoDB 3.X and 4.X with pymongo installed.
MongoDB 3.X and 4.X with pymongo installed.
=head1 CONFIGURATION
munin-node.conf
defaults for host is 127.0.0.1 and port 27017
and will work without being defined :
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
[mongo_lag]
env.host 127.0.0.1
@ -24,16 +22,23 @@
=head1 AUTHOR
Stefan Andersen <stefan@stefanandersen.dk>
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
Stefan Andersen <stefan@stefanandersen.dk>
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
=head1 LICENSE
The Beer Ware License (Revision 42)
<alban.espie@alterway.fr> wrote this file. As long
as you retain this notice you can do whatever you want
with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
The Beer Ware License (Revision 42)
<alban.espie@alterway.fr> wrote this file. As long
as you retain this notice you can do whatever you want
with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
SPDX-License-Identifier: Beerware
=cut
"""
import os
import sys
import pymongo

View file

@ -1,11 +1,12 @@
#!/usr/bin/env python
"""
=head1 NAME
MongoDB lock Plugin
mongo_lock - MongoDB lock Plugin
=head1 APPLICABLE SYSTEMS
MongoDB 2.X. The "lockTime" field was removed in later versions.
MongoDB 2.X. The "lockTime" field was removed in later versions.
=head1 CONFIGURATION
@ -14,8 +15,11 @@
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Doc added by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import urllib2

View file

@ -1,17 +1,16 @@
#!/usr/bin/env python3
"""
=head1 NAME
MongoDB mem Plugin
mongo_mem - MongoDB memory Plugin
=head1 APPLICABLE SYSTEMS
MongoDB 3.X and 4.X with pymongo installed.
MongoDB 3.X and 4.X with pymongo installed.
=head1 CONFIGURATION
munin-node.conf
defaults for host is 127.0.0.1 and port 27017
and will work without being defined :
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
[mongo_mem]
env.host 127.0.0.1
@ -20,16 +19,20 @@
env.password P@55w0rd
env.db dbname
or
or
[mongodb_mem]
env.MONGO_DB_URI mongodb://user:password@host:port/dbname
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import sys
import os
import pymongo

View file

@ -1,17 +1,16 @@
#!/usr/bin/env python3
"""
=head1 NAME
MongoDB ops Plugin
mongo_ops - MongoDB ops Plugin
=head1 APPLICABLE SYSTEMS
MongoDB 3.X and 4.X with pymongo installed.
MongoDB 3.X and 4.X with pymongo installed.
=head1 CONFIGURATION
munin-node.conf
defaults for host is 127.0.0.1 and port 27017
and will work without being defined :
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
[mongodb_ops]
env.host 127.0.0.1
@ -20,16 +19,20 @@
env.password P@55w0rd
env.db dbname
or
or
[mongodb_ops]
env.MONGO_DB_URI mongodb://user:password@host:port/dbname
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import sys
import os
import pymongo

View file

@ -1,17 +1,16 @@
#!/usr/bin/env python3
"""
=head1 NAME
MongoDB Connection Count Plugin
mongodb_conn - MongoDB Connection Count Plugin
=head1 APPLICABLE SYSTEMS
MongoDB 3.X and 4.X with pymongo installed.
MongoDB 3.X and 4.X with pymongo installed.
=head1 CONFIGURATION
munin-node.conf
defaults for host is 127.0.0.1 and port 27017
and will work without being defined :
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
[mongodb_conn]
env.host 127.0.0.1
@ -21,16 +20,22 @@
=head1 AUTHOR
Alban Espie-Guillon <alban.espie@alterway.fr>
based on Stefan Andersen <stefan@stefanandersen.dk> work.
Alban Espie-Guillon <alban.espie@alterway.fr>
based on Stefan Andersen <stefan@stefanandersen.dk> work.
=head1 LICENSE
The Beer Ware License (Revision 42)
<alban.espie@alterway.fr> wrote this file. As long
as you retain this notice you can do whatever you want
with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
The Beer Ware License (Revision 42)
<alban.espie@alterway.fr> wrote this file. As long
as you retain this notice you can do whatever you want
with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
SPDX-License-Identifier: Beerware
=cut
"""
import os
import sys
import pymongo

View file

@ -1,17 +1,16 @@
#!/usr/bin/env python3
"""
=head1 NAME
MongoDB docs Plugin
mongodb_docs - MongoDB docs Plugin
=head1 APPLICABLE SYSTEMS
MongoDB 3.X and 4.X with pymongo installed.
MongoDB 3.X and 4.X with pymongo installed.
=head1 CONFIGURATION
munin-node.conf
defaults for host is 127.0.0.1 and port 27017
and will work without being defined :
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
[mongodb_docs]
env.host 127.0.0.1
@ -20,16 +19,20 @@
env.password P@55w0rd
env.db dbname
or
or
[mongodb_docs]
env.MONGO_DB_URI mongodb://user:password@host:port/dbname
=head1 AUTHOR
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
Original script there : https://github.com/comerford/mongo-munin
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
=cut
"""
import sys
import os
import pymongo