<commit_before>Simple Python Server Monitor
============================

Super simple Python based server ping monitor. Emails you with any email address (default: Gmail) if server is down.

Configuration for Gmail (Easiest)
---------------------------------

Open the configuration.py file with your favorite text editor.

1. Add the IP address or hostname of the server you would like to monitor.

    "hostname": '8.8.8.8', # Put your server in place of the 8.8.8.8 (Keep the quotation marks)

2.Add the hostname or ip address and the recipient email

    "recipient_email": '<EMAIL>', # The email that the alerts will be sent to


3. Add the Gmail address you would like to send the email from when your server goes down.

    "monitor_email": '<EMAIL>',

4. Add the Gmail password that is associated with the above Gmail email address

    "monitor_password": '<PASSWORD>',

5. Add script to crontab to run every x amount of minutes you would like to run it.


Configuration for a custom email account
----------------------------------------

Open the configuration.py file with your favorite text editor.

1. Add the IP address or hostname of the server you would like to monitor.

    "hostname": '8.8.8.8', # Put your server in place of the 8.8.8.8 (Keep the quotation marks)

2.Add the hostname or ip address and the recipient email

    "recipient_email": '<EMAIL>', # The email that the alerts will be sent to


3. Add the email address you would like to send the email from when your server goes down.

    "monitor_email": '<EMAIL>',

4. Add the email password that is associated with the above email address

    "monitor_password": '<PASSWORD>',

5. Set the email server (smtp) address to send the emails from

    "monitor_server": 'smtp.yourdomain.com',

6. Set the email server port

    "monitor_server_port": 587,

5. Add script to crontab to run every x amount of minutes you would like to run it.


Optional Settings
-----------------

You can optionally set the subject of the email that is sent when the server goes down

    "email_subject": 'Subject of the email'
<commit_msg>Fixed code blocks in the README file<commit_after>Simple Python Server Monitor
============================

Super simple Python based server ping monitor. Emails you with any email address (default: Gmail) if server is down.

Configuration for Gmail (Easiest)
---------------------------------

Open the configuration.py file with your favorite text editor.

1. Add the IP address or hostname of the server you would like to monitor.

        "hostname": '8.8.8.8', # Put your server in place of the 8.8.8.8 (Keep the quotation marks)

2. Add the hostname or ip address and the recipient email

        "recipient_email": '<EMAIL>', # The email that the alerts will be sent to


3. Add the Gmail address you would like to send the email from when your server goes down.

        "monitor_email": '<EMAIL>',

4. Add the Gmail password that is associated with the above Gmail email address

        "monitor_password": '<PASSWORD>',

5. Add script to crontab to run every x amount of minutes you would like to run it.


Configuration for a custom email account
----------------------------------------

Open the configuration.py file with your favorite text editor.

1. Add the IP address or hostname of the server you would like to monitor.

        "hostname": '8.8.8.8', # Put your server in place of the 8.8.8.8 (Keep the quotation marks)

2. Add the hostname or ip address and the recipient email

        "recipient_email": '<EMAIL>', # The email that the alerts will be sent to


3. Add the email address you would like to send the email from when your server goes down.

        "monitor_email": '<EMAIL>',

4. Add the email password that is associated with the above email address

        "monitor_password": '<PASSWORD>',

5. Set the email server (smtp) address to send the emails from

        "monitor_server": 'smtp.yourdomain.com',

6. Set the email server port

        "monitor_server_port": 587,

5. Add script to crontab to run every x amount of minutes you would like to run it.


Optional Settings
-----------------

You can optionally set the subject of the email that is sent when the server goes down

    "email_subject": 'Subject of the email'

{'fraction_non_alphanumeric': 0.11654575239878305, 'fraction_numerical': 0.014509712146033232, 'mean_word_length': 2.9391705069124425, 'pattern_counts': {'":': 22, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6448894', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1109, 'n_words': 616}