A tool to monitor and health check servers through plug-in scripts

WatchDogClient - WDC

WDC is a client application for WatchDog - wd, which is a tool to monitor and health check servers through plug-in scripts.

WDC listens to a remote alert server which broadcasts alert messages. The received alert will be logged to WDC/logs/ in user's home directory. It also comes with a local http server listening on port 8080 with an endpoint /{id} that can be used to get details of an alert given it's id. The same can be done via command line using the inspect command of wdc.

Intallation

go install github.com/opxyc/wdc@latest
Usage:
  wdc [command]

Available Commands:
  help        Help about any command
  inspect     Inspect an alert using it's ID
  listen      Start listening to incoming alerts

Start listening to alerts

$ wdc listen

But default, wdc connects to localhost:40080 at endpoint /ws/connect.

Usage:
  wdc listen [flags]

Flags:
  -r, --addr string        network address of alert server (default "localhost:40080")
  -e, --end-point string   websocket connection endpoint of alert server (default "/ws/connect")

Inspecting an alert

$ wdc inspect ID
be@mC:~/Desktop/wdc$ wdc inspect PgKt664SLUxceGiuFhTGMn
ID             PgKt664SLUxceGiuFhTGMn
Time           2021-Oct-27 23:31:03
Hostname       dr-pg-l02
Task Name      mount-point-arc-check
Message        Mount point /arc > 90%
Status         OK (actions executed successfully) 

Command output:
(mount-point-arc-check.out) current utilization 91.2%
(mount-point-arc-check.delete-archives.out) deleting archives
(mount-point-arc-check.delete-archives.out) current utilization 63.8%

You can also get the same info by visiting localhost:8080/{id}.


Log Structure

WDC logs into a new log file every day and hence inside UserHome/WDC/logs, there will be log files with name in the format yyyy-month-dd. Each alert is logged in the below format (with example).

// 2021/90/27 18:37:45
// rJeqKsiMECBUpCGG54YhgL                           👈 log id
// 2021-Oct-27 13:40:04	                            👈 the time alert was generated
// mC                                               👈 hostname
// cpu-usage-gt-90                                  👈 task name
// cpu usage on > 90%. take action immediately      👈 short msg
// (cpu-usage-gt-90.err) exit status 1              👈 long msg (combined output of the
// (cpu-usage-gt-90.out) current CPU usage is 15        cmd executed at wd client running on backend server)
// (cpu-usage-gt-90.stop-backup.err) exec: "bkpc stop":
// could not stop backup process; unresponding thread
// 1                                                👈 status code: 0 or 1
// ENDOFrJeqKsiMECBUpCGG54YhgL                      👈 end of one alert

If the terms taskname, message, cmd etc. is not clear, head to WD.

Owner
Similar Resources

This application is a tool to rapidly create TFS tasks and synchronize them with wiki.

This application is a tool to rapidly create TFS tasks and synchronize them with wiki.

Jan 10, 2022

sigurlx a web application attack surface mapping tool.

sigurlx a web application attack surface mapping tool, it does ...:

Jul 24, 2021

A web application attack surface mapping tool. It takes in a list of urls then performs numerous probes

sigurlscann3r A web application attack surface mapping tool. It takes in a list of urls then performs numerous probes Resources Features Installation

Sep 24, 2022

A cross platform single binary tool to work with draw io files

SNIPO SNIPIO is a cross platform single binary tool to work with draw io files With snipio you can do the following operations: list all layers in a d

Jan 7, 2023

A simple command line tool using which you can skip phone number based SMS verification by using a temporary phone number that acts like a proxy

A simple command line tool using which you can skip phone number based SMS verification by using a temporary phone number that acts like a proxy

Fake-SMS A simple command line tool using which you can skip phone number based SMS verification by using a temporary phone number that acts like a pr

Dec 31, 2022

ging is a tool for create gin web framework development templates

ging ging is a tool for create gin web framework development templates This tool is for the freshmen who want to learn golang and gin web framework, i

Jan 15, 2022

RSS master is a RSS subscription function aggregation tool, You can use it easily!

🇨🇳 中文 rsm ✨ RSS master[rsm] is a RSS subscription function aggregation tool, You can use it easily! How to start? 🚁 Start rsm with rsm run -c,--cfg

Oct 18, 2022

Go-watchdog - a web application observability tool built for Go

Go-watchdog - a web application observability tool built for Go

Go-watchdog is a web application observability tool built for Go, it exposes a status endpoint for application services like databases, caches, message-brokers, mails and storages.

Jul 11, 2022

A job queue and scheduler written in Go, backed by Postgres, and available over HTTP

A job queue and scheduler written in Go, backed by Postgres, and available over HTTP

Rickover This holds the code for a scheduler and a job queue written in Go and backed by Postgres. The goals/features of this project are: Visibility

Dec 31, 2022
Related tags
Automated penetration and auxiliary systems, providing XSS, XXE, DNS log, SSRF, RCE, web netcat and other Servers,gin-vue-admin
Automated penetration and auxiliary systems, providing XSS, XXE, DNS log, SSRF, RCE, web netcat and other Servers,gin-vue-admin

Simple DNS log Server,easy to ACME DNS challenge log easy send to elasticsearch https://github.com/hktalent/DNS_Server go4Hacker Automated penetration

Dec 30, 2022
Token price monitor with golang
Token price monitor with golang

TOKEN-PRICE-MONITOR Token được list lên PancakeSwap sẽ có contract để lấy giá tương ứng của pair đó. Trong ví dụ này mình sẽ lấy giá BAKE/USDT trên Pa

Nov 19, 2021
Uploads data to the Storj ecosystem and tries to download induvidual pieces from different servers to measure latency

Storj longtail This application uploads data to the Storj ecosystem and tries to download induvidual pieces from different servers to measure latency.

Oct 28, 2021
Misou is a personal search engine very much inspired by monocle that looks through my knowledge sources.
Misou is a personal search engine very much inspired by monocle that looks through my knowledge sources.

?? Mi 搜 - a personal search engine Misou is a personal search engine very much inspired by monocle that looks through my knowledge sources. It is writ

Nov 7, 2022
Check the report history of any IP address to see if anyone else has reported malicious activities using API

abuseip Check the report history of any IP address to see if anyone else has reported malicious activities using API by abuseipdb.com. Installation $

Nov 13, 2021
The cider is a simple tool of building GitHub pages. It's fast and easy to use.
The cider is a simple tool of building GitHub pages. It's fast and easy to use.

The cider is a simple tool of building GitHub pages. It's fast and easy to use. See example: https://www.leyafo.com Install Compiling from source code

Feb 13, 2022
urlhunter is a recon tool that allows searching on URLs that are exposed via shortener services such as bit.ly and goo.gl.
urlhunter is a recon tool that allows searching on URLs that are exposed via shortener services such as bit.ly and goo.gl.

a recon tool that allows searching on URLs that are exposed via shortener services

Jan 7, 2023
Analytics box a simple and privacy focused analytics tool written in go like google analytics
Analytics box a simple and privacy focused analytics tool written in go like google analytics

Analytics box is analytics tool like google analytics but instead of ripping user's privacy off them like google it respects their privacy and doesn't collect any unnecessary information.

Nov 27, 2022
A simple and privacy focused analytics tool written in go.
A simple and privacy focused analytics tool written in go.

Analytics Box Hello guys, this is privacy friendly analytics tool, Analytics Box for web written in go. It ensures user privacy but at the same time a

Nov 27, 2022
htf (Host That File) is a tool to make serving up your favorite pentest tools simpler and faster.
htf (Host That File) is a tool to make serving up your favorite pentest tools simpler and faster.

htf htf (Host That File) is a tool to make serving up your favorite pentest tools simpler and faster. All you need to do is populate the htf configura

Nov 28, 2021