diff --git a/src/_dns.py b/src/_dns.py index c0e6d1d5d779f6e36a3a84fe8c5e5ce2eb45cff6..dacb8e2e775034ee9036f61051eead95af2b24c8 100644 --- a/src/_dns.py +++ b/src/_dns.py @@ -1,3 +1,9 @@ +"""Check DNS. + +Check name servers, synchronization between them, TCP connection and some +important records. +""" + from functools import lru_cache import dns.resolver # pylint: disable=import-error import dns.query # pylint: disable=import-error diff --git a/src/auth.py b/src/auth.py index b9aff69e40d745a47a2a39167a71cedd6b7bf916..0f49f2ae2f2c60aa0152fd87815f1a21c508cfd4 100644 --- a/src/auth.py +++ b/src/auth.py @@ -1,3 +1,5 @@ +"""Check the auth.shore.co.il web service.""" + from utils import website_handler URLS = [ diff --git a/src/autoconfig.py b/src/autoconfig.py index a3404adfc4cef914ed5651ded4733dc2f78c5032..f14466213cdaf3018b11ce09ef5a2766d8297e74 100644 --- a/src/autoconfig.py +++ b/src/autoconfig.py @@ -1,3 +1,5 @@ +"""Check the autoconfig.shore.co.il web page.""" + from utils import website_handler URLS = [ diff --git a/src/elasticsearch.py b/src/elasticsearch.py index eb301709bcd85201c5988bd5accdf7f8a791880d..8f39cd9498fda42c01007ea121c328f8a68b3304 100644 --- a/src/elasticsearch.py +++ b/src/elasticsearch.py @@ -1,3 +1,5 @@ +"""Check the Elasticsearch service.""" + from utils import website_handler URLS = [ diff --git a/src/gitlab.py b/src/gitlab.py index c872a31e5311f652abdc25523ef03e9cc3e14636..f55c5f460c4eea3a24f7ccf6890d41cef84639a7 100644 --- a/src/gitlab.py +++ b/src/gitlab.py @@ -1,3 +1,5 @@ +"""Check Gitlab.""" + from utils import website_handler URLS = [ diff --git a/src/imap.py b/src/imap.py index 57fbcb1c1ba63a9e3b43e631f594380a6147b6b1..cce71b42b3297d3c2953ab79c9d6553c9046084f 100644 --- a/src/imap.py +++ b/src/imap.py @@ -1,3 +1,5 @@ +"""Check IMAP.""" + from imaplib import IMAP4_SSL from utils import Check diff --git a/src/kibana.py b/src/kibana.py index d41683dbc630964bb0778c179413acdbd0f7cb64..e9695d9f6263cb0e08703c517feef401ed0c089a 100644 --- a/src/kibana.py +++ b/src/kibana.py @@ -1,3 +1,5 @@ +"""Check Kibana.""" + from utils import website_handler URLS = [ diff --git a/src/kodi.py b/src/kodi.py index df903c24e97550a4fab16787de61dfce9fc98cf4..0fd9c1fe979974e94361f8edf02def7b21d18c45 100644 --- a/src/kodi.py +++ b/src/kodi.py @@ -1,3 +1,5 @@ +"""Check Kodi.""" + from utils import website_handler URLS = [ diff --git a/src/mta_sts.py b/src/mta_sts.py index 4d9d0737409f7c7033c61d6faa81d983478ddb93..3054ceb8bb21c474f17683692a6e3e08d0064e26 100644 --- a/src/mta_sts.py +++ b/src/mta_sts.py @@ -1,3 +1,5 @@ +"""Check MTA-STS web page.""" + from utils import website_handler URLS = [ diff --git a/src/myip.py b/src/myip.py index f2f90ed4e91856aaaff03b9ca38eaf7bc53dbb0c..13385fac9acd6c00b46d58d279a10042202186b2 100644 --- a/src/myip.py +++ b/src/myip.py @@ -1,3 +1,5 @@ +"""Check the MyIP web service.""" + from utils import website_handler URLS = [ diff --git a/src/nextcloud.py b/src/nextcloud.py index c5d29a897d4c8af35868ec4b218daa0fc02f2216..928f0a92c6f439bd9524d77a16b724ef8cefc1c0 100644 --- a/src/nextcloud.py +++ b/src/nextcloud.py @@ -1,3 +1,5 @@ +"""Check Nextcloud.""" + from utils import website_handler URLS = [ diff --git a/src/notify.py b/src/notify.py index ffdfcde7580013bc776bbfba04d70074ffb873fb..6a11d1672355c0d64521c5a37d416a96bbba04a0 100644 --- a/src/notify.py +++ b/src/notify.py @@ -1,3 +1,5 @@ +"""Check the notify web service.""" + from utils import website_handler URLS = [ diff --git a/src/registry.py b/src/registry.py index 59266201c2ff2aec5e0beb7617da2575e2e08952..c2390832647f704c488243ddff2667cf6dc0a8e0 100644 --- a/src/registry.py +++ b/src/registry.py @@ -1,3 +1,5 @@ +"""Check the container image registry and frontend.""" + from utils import website_handler URLS = [ diff --git a/src/smtp.py b/src/smtp.py index 20afdf153bcf1d0f4f62b4d556dd541e7d1df197..a2952ce42f40673ef841f08175bc734a41ec9b83 100644 --- a/src/smtp.py +++ b/src/smtp.py @@ -1,3 +1,5 @@ +"""Check SMTP.""" + from smtplib import SMTP from utils import Check diff --git a/src/ssh.py b/src/ssh.py index 38e92d7616685a74830aed1e2bf6e3acf61ccf22..1824b2ae1d825be9c756388e23c7c232b99f9405 100644 --- a/src/ssh.py +++ b/src/ssh.py @@ -1,3 +1,5 @@ +"""Check SSH.""" + import socket from utils import Check diff --git a/src/transmission.py b/src/transmission.py index 3d53e3de2776bfce2ed814c537b29c6dc07021c0..97eca3246cb09c66375efdc54bf2f0d9dc930d49 100644 --- a/src/transmission.py +++ b/src/transmission.py @@ -1,3 +1,5 @@ +"""Check the Transmission web service.""" + from utils import website_handler URLS = [ diff --git a/src/utils.py b/src/utils.py index c764dabdfbabcb2b9a8a788751310d6ba9505677..c89283e745bcd6d1e718b494031557ea967eae8d 100644 --- a/src/utils.py +++ b/src/utils.py @@ -1,3 +1,5 @@ +"""Utilities for common checks.""" + import os import boto3 # pylint: disable=import-error import requests # pylint: disable=import-error,useless-suppression diff --git a/src/vouch.py b/src/vouch.py index e689a0f0a17aa396691b2b2ab1986acc894d6bc9..c00cc4802e6365feeb4966803293cccbe776c522 100644 --- a/src/vouch.py +++ b/src/vouch.py @@ -1,3 +1,5 @@ +"""Check the Vouch service.""" + from utils import website_handler URLS = [ diff --git a/src/www.py b/src/www.py index e675d733567e94777ff083c1a33e5f7748c2cc05..9180bddbce01404b71eb33dbe66c6b11264d3fe5 100644 --- a/src/www.py +++ b/src/www.py @@ -1,3 +1,5 @@ +"""Check the shore.co.il and www.shore.co.il web sites.""" + from utils import website_handler URLS = [