Skip to content

ailton-felix/helloworld-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Site Monitor

This is a simple website monitor developed in Go. It allows monitoring the status of specified sites in a text file and records the results in a log file.

Features

  • Website Monitoring: Periodically checks the status of sites listed in a text file.
  • Log Recording: Records monitoring results in a log file for later reference.
  • Log Display: Allows viewing stored monitoring records in the log file.

How to Use

  1. Code Compilation: Make sure you have Go installed on your system. Compile the code with the following command:
go build main.go
  1. Running the Program: Run the compiled program:
./main
  1. Choose an Option: The program will display a menu with the following options:
  • 1 to start monitoring the sites.
  • 2 to display the monitoring records.
  • 0 to exit the program.
  1. Website Monitoring: During monitoring, the program will periodically check the status of the specified sites. The results will be displayed in the console.

  2. Log Recording: The monitoring results will be recorded in a log file located at ./data/log.txt.

  3. Log Display: By selecting option 2, the monitoring records will be displayed in the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages