Skip to content

whoopsmonitor/whoopsmonitor-check-port-open

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whoopsmonitor-check-port-open

Check if the port is open on remote server (with netcat).

Environmental variables

  • WM_HOST - Hostname or IP address.
  • WM_PORT - Port to check.

Example

Details of the check in Whoops Monitor configuration tab or for the .env file.

WM_HOST=127.0.0.1
WM_PORT=22

Output

  • 0 - port is opened
  • 2 - port is not opened

Build

docker build -t whoopsmonitor-check-port-open .

Run

docker run --rm --env-file .env whoopsmonitor-check-port-open