Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu

Site Monitor Micro Service [Source Code]

Site Monitor Micro Service [Source Code]

$9.99

Categories: Java, Spring (Boot) / Quarkus, Vaadin 24+
  • Description

Description

Buy this Site Monitor Micro Service – Java – Spring Boot – Vaadin Web Application. It has a scheduler that opens your sites every hour and if it fails – it sends an email.

The actual mail sending is not through SMPT, but is produced/messaged with kafka. You could by the consumer email-sender-micro-service at https://programtom.com/dev/product/email-sender-micro-service-kafka-consumer-source-code/.

Prerequisites of the Site Monitor Micro Service as Jar – Docker Image

The micro service is using

  • Maria DB as Database
  • It auto-generates the db scheme with JPA/Spring Repository
  • It has simple CRUD interface over the sites that will be monitored and the – is online checks.
  • docker file & setup. If you would like to run it outside docker – just change the configuration from
    host.docker.internal to localhost

You will also need Kafka running – as this micro service communicates with the email sender on it.

Building the Micro Service

You will receive site_monitor_app source code. You could build it with:

mvn clean package -Pproduction -Dvaadin.force.production.build=true

and package it to image with the Dockerfile + the command –

docker build --build-arg JAR_FILE=target/*.jar -t com.programtom.site_monitor_app/Application. The command are included as scripts.

Administrative Interface

Open the Web Admin Interace at http://localhost:8701/site_monitor_app (or site_monitor_app-1.0-SNAPSHOT if the generated war is deployed).

You could login with hard-coded login as – it is intended to be hidden in your local network. You have the power to extend it and add your authentication. For publicly facing apps I personally intend to use Google Login Integration.

blank

 

The main view of this web app is list of sites that it will check. The pinging is in every hour. Additionally on every 24 hours you will recieve summary of the pings.

blank

This is the basic CRUD operation on the sites with

  • url it will try to open
  • email where the application will report it findings.

blank

Site Opening Checks

Every site has it sitemodels (attempts to open the site). If it fails to open – it will send email and record it.

blank

If all is OK – the application will record the success

  • timestamp,
  • milliseconds that it took to open it
  • the result (most likely html).

blank

 

Mail Messages from Site Monitoring

Here is an example of opning my app. As you see in the picture – at the end of the year 2023 there was an issue and I’ve got several emails urging me to fix the issue.

blank

When all is OK – I am receiving standard statistics with 24 OK requests.

blank

Additional bonus of this is – if I don’t recieve such email – this indicates that there is an issue with the site monitoring application and I need to check that.

Related products

  • JSON Model Extractor - Quarkus - Vaadin Web App

    JSON Model Extractor – Spring Boot Vaadin Web App

    $9.99
    Add to cart
  • Email Sender Micro Service

    Email Sender Micro Service Kafka Consumer [Source Code]

    $4.99
    Add to cart
  • New Login with Google 2024

    Google Login [to Program Tom Apps] Micro Service

    $4.99
    Add to cart
  • File Explorer Vaadin Web App

    File Explorer Vaadin Web App

    $9.99
    Add to cart
  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (87)
    • Flutter Apps (26)
    • GPT (4)
    • Java (39)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (36)
    • Utils (15)
    • Vaadin 24+ (28)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Post Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)