Projet

Général

Profil

Révision c6f88968

IDc6f88968d1a44c463aaeb9af77aba70cad860e7c
Parent 743395a6
Enfant 0253df6f

Ajouté par Lars Kruse il y a environ 5 ans

Improve perlpod formatting for multiple plugins

Escpecially the final marker ("=cut") was missing in these plugins.

Voir les différences:

plugins/mongodb/mongo_lag
1 1
#!/usr/bin/env python3
2 2
"""
3 3
=head1 NAME
4
    MongoDB Replication Lag
5 4

  
6
    Connects to a single mongo instance and retrieve
7
    replication lag for all connected members.
5
mongo_lag - MongoDB Replication Lag
6

  
7
Connects to a single mongo instance and retrieve replication lag for all connected members.
8 8

  
9 9
=head1 APPLICABLE SYSTEMS
10 10

  
11
    MongoDB 3.X and 4.X with pymongo installed.
11
MongoDB 3.X and 4.X with pymongo installed.
12 12

  
13 13
=head1 CONFIGURATION
14 14

  
15
    munin-node.conf
16
    defaults for host is 127.0.0.1 and port 27017
17
    and will work without being defined :
15
Default for host is 127.0.0.1 and port 27017 and will work without being defined:
18 16

  
19 17
    [mongo_lag]
20 18
    env.host 127.0.0.1
......
24 22

  
25 23
=head1 AUTHOR
26 24

  
27
    Stefan Andersen <stefan@stefanandersen.dk>
28
    Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
25
Stefan Andersen <stefan@stefanandersen.dk>
26

  
27
Updated by Alban Espie-Guillon <alban.espie@alterway.fr>
29 28

  
30 29
=head1 LICENSE
31
    The Beer Ware License (Revision 42)
32
    <alban.espie@alterway.fr> wrote this file. As long
33
    as you retain this notice you can do whatever you want
34
    with this stuff. If we meet some day, and you think
35
    this stuff is worth it, you can buy me a beer in return.
30

  
31
The Beer Ware License (Revision 42)
32
<alban.espie@alterway.fr> wrote this file. As long
33
as you retain this notice you can do whatever you want
34
with this stuff. If we meet some day, and you think
35
this stuff is worth it, you can buy me a beer in return.
36

  
37
SPDX-License-Identifier: Beerware
38

  
39
=cut
36 40
"""
41

  
37 42
import os
38 43
import sys
39 44
import pymongo

Formats disponibles : Unified diff