{"id":15202988,"url":"https://github.com/lifailon/check-host","last_synced_at":"2025-09-24T18:31:07.186Z","repository":{"id":203484521,"uuid":"709693861","full_name":"Lifailon/Check-Host","owner":"Lifailon","description":"Module for check ping, http, tcp, udp and dns to Internet using Check Host via REST API","archived":false,"fork":false,"pushed_at":"2023-10-25T12:17:16.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"rsa","last_synced_at":"2025-01-04T13:33:37.183Z","etag":null,"topics":["api","bash","check","check-host","checker","http","linux","module","powershell","powershell-core","pwsh","script","shell","tcp","udp","windows"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/CheckHost","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lifailon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T07:58:59.000Z","updated_at":"2024-11-12T03:39:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2183923c-637b-479b-82e8-db44b733b1f2","html_url":"https://github.com/Lifailon/Check-Host","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"07971f6a78b7b6332b2e55fdc77fcc357de3315b"},"previous_names":["lifailon/check-host"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FCheck-Host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FCheck-Host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FCheck-Host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FCheck-Host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/Check-Host/tar.gz/refs/heads/rsa","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234107121,"owners_count":18780999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bash","check","check-host","checker","http","linux","module","powershell","powershell-core","pwsh","script","shell","tcp","udp","windows"],"created_at":"2024-09-28T04:21:25.116Z","updated_at":"2025-09-24T18:31:01.939Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check-Host\n\nCross-platform PowerShell Module for check ping, hhtp, tcp, udp and dns to Internet using **[Check-Host](https://check-host.net/)** via REST API.\n\n## Install Windows\n\n```PowerShell\n$path = $(($env:PSModulePath -split \";\")[0]) + \"\\Get-CheckHost\"\nif (Test-Path $path) {\n    Remove-Item $path -Force -Recurse\n    New-Item -ItemType Directory -Path $path\n} else {\n    New-Item -ItemType Directory -Path $path\n}\nInvoke-RestMethod https://raw.githubusercontent.com/Lifailon/Check-Host/rsa/Get-CheckHost/Get-CheckHost.psm1 -OutFile \"$path\\Get-CheckHost.psm1\"\n```\n\n## Install Linux\n\n```bash\npath=$(pwsh -Command '$($env:PSModulePath -split \":\")[0]')/Get-CheckHost\nif [ -f $path ]\nthen\n    rm $path\n    mkdir $path\nelse\n    mkdir $path\nfi\ncurl -s https://raw.githubusercontent.com/Lifailon/Check-Host/rsa/Get-CheckHost/Get-CheckHost.psm1 -o $path/Get-CheckHost.psm1\n```\n\nDependencies: **[PowerShell Core](https://github.com/PowerShell/PowerShell)**\n\n`apt install powershell`\n\n## Format\n\n**Windows**: `Get-CheckHost -Type \u003cping/http/tcp/udp/dns\u003e -Server \u003chostname\u003e -Count \u003cnodes\u003e`\n\n**Linux**: `pwsh -c \"Get-CheckHost -Server yandex.ru:443 -Type tcp\"`\n\n```bash\nlifailon@grafana-01:~$ pwsh -c \"Get-CheckHost -Server yandex.ru:443 -Type tcp\"\n\nServer                  Location Status\n------                  -------- ------\nir3.node.check-host.net Shiraz    0.092\nir6.node.check-host.net Karaj     0.189\npt1.node.check-host.net Viana     0.096\ntr1.node.check-host.net Istanbul  0.090\nua2.node.check-host.net Kyiv      0.065\n```\n\n### Node list\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Import-Module Get-CheckHost\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -List\n\nServer                  Address         Location\n------                  -------         --------\nae1.node.check-host.net 5.44.42.40      Dubai\nat1.node.check-host.net 78.153.130.65   Vienna\nbg1.node.check-host.net 93.123.16.89    Sofia\nbr1.node.check-host.net 209.14.69.16    Sao Paulo\nch1.node.check-host.net 179.43.148.195  Zurich\ncz1.node.check-host.net 77.75.230.51    C.Budejovice\nde1.node.check-host.net 167.235.135.184 Nuremberg\nde4.node.check-host.net 185.37.147.117  Frankfurt\nes1.node.check-host.net 185.230.55.13   Barcelona\nfi1.node.check-host.net 65.109.182.130  Helsinki\nfr2.node.check-host.net 195.154.114.92  Paris\nhk1.node.check-host.net 141.98.234.68   Hong Kong\nil1.node.check-host.net 181.214.197.192 Tel Aviv\nir1.node.check-host.net 185.105.238.209 Tehran\nir3.node.check-host.net 185.24.253.139  Shiraz\nir4.node.check-host.net 185.255.91.239  Tabriz\nir5.node.check-host.net 5.159.54.120    Esfahan\nir6.node.check-host.net 193.8.95.39     Karaj\nit2.node.check-host.net 185.25.204.60   Milan\njp1.node.check-host.net 38.47.52.199    Tokyo\nkz1.node.check-host.net 185.120.77.165  Karaganda\nlt1.node.check-host.net 88.119.179.10   Vilnius\nmd1.node.check-host.net 178.17.171.235  Chisinau\nnl1.node.check-host.net 185.209.161.169 Amsterdam\npl1.node.check-host.net 178.216.200.169 Poznan\npl2.node.check-host.net 45.146.7.45     Warsaw\npt1.node.check-host.net 185.83.213.25   Viana\nrs1.node.check-host.net 194.146.57.64   Belgrade\nru1.node.check-host.net 185.130.104.238 Moscow\nru2.node.check-host.net 194.26.229.20   Moscow\nru3.node.check-host.net 92.223.65.81    Saint Petersburg\nru4.node.check-host.net 185.39.205.237  Ekaterinburg\nse1.node.check-host.net 193.233.255.128 Stockholm\ntr1.node.check-host.net 185.169.54.231  Istanbul\ntr2.node.check-host.net 77.92.151.181   Gebze\nua1.node.check-host.net 185.86.77.126   Khmelnytskyi\nua2.node.check-host.net 91.231.182.39   Kyiv\nua3.node.check-host.net 91.102.183.15   SpaceX Starlink\nuk1.node.check-host.net 185.138.164.21  Coventry\nus1.node.check-host.net 5.253.30.82     Los Angeles\nus3.node.check-host.net 185.143.223.66  Atlanta\n```\n\n### Check ping\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com -Type ping -Count 5\n\nServer                  Location Status Time\n------                  -------- ------ ----\nat1.node.check-host.net Vienna   OK     0,01\nat1.node.check-host.net Vienna   OK     0,01\nat1.node.check-host.net Vienna   OK     0,01\nat1.node.check-host.net Vienna   OK     0,01\nil1.node.check-host.net Tel Aviv OK     0,06\nil1.node.check-host.net Tel Aviv OK     0,06\nil1.node.check-host.net Tel Aviv OK     0,06\nil1.node.check-host.net Tel Aviv OK     0,06\nir5.node.check-host.net Esfahan  OK     0,12\nir5.node.check-host.net Esfahan  OK     0,11\nir5.node.check-host.net Esfahan  OK     0,11\nir5.node.check-host.net Esfahan  OK     0,11\njp1.node.check-host.net Tokyo    OK     0,00\njp1.node.check-host.net Tokyo    OK     0,00\njp1.node.check-host.net Tokyo    OK     0,00\njp1.node.check-host.net Tokyo    OK     0,00\ntr1.node.check-host.net Istanbul OK     0,05\ntr1.node.check-host.net Istanbul OK     0,05\ntr1.node.check-host.net Istanbul OK     0,05\ntr1.node.check-host.net Istanbul OK     0,05\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server gooooooooogle.com -Type ping -Count 5\n\nServer                  Location  Status  Time\n------                  --------  ------  ----\nbr1.node.check-host.net Sao Paulo TIMEOUT 3,00\nbr1.node.check-host.net Sao Paulo TIMEOUT 3,00\nbr1.node.check-host.net Sao Paulo TIMEOUT 3,00\nbr1.node.check-host.net Sao Paulo TIMEOUT 3,00\nch1.node.check-host.net Zurich    TIMEOUT 3,00\nch1.node.check-host.net Zurich    TIMEOUT 3,00\nch1.node.check-host.net Zurich    TIMEOUT 3,00\nch1.node.check-host.net Zurich    TIMEOUT 3,00\nir4.node.check-host.net Tabriz    TIMEOUT 3,00\nir4.node.check-host.net Tabriz    TIMEOUT 3,00\nir4.node.check-host.net Tabriz    TIMEOUT 3,00\nir4.node.check-host.net Tabriz    TIMEOUT 3,00\nir5.node.check-host.net Esfahan   TIMEOUT 3,00\nir5.node.check-host.net Esfahan   TIMEOUT 3,00\nir5.node.check-host.net Esfahan   TIMEOUT 3,00\nir5.node.check-host.net Esfahan   TIMEOUT 3,00\npl1.node.check-host.net Poznan    TIMEOUT 3,00\npl1.node.check-host.net Poznan    TIMEOUT 3,00\npl1.node.check-host.net Poznan    TIMEOUT 3,00\npl1.node.check-host.net Poznan    TIMEOUT 3,00\n```\n\n### Check http\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com:443 -Type http -Count 5\n\nServer                  Location     Status Time\n------                  --------     ------ ----\nbr1.node.check-host.net Sao Paulo    True   0,90\nde1.node.check-host.net Nuremberg    True   0,04\nfi1.node.check-host.net Helsinki     True   0,06\nua1.node.check-host.net Khmelnytskyi True   0,15\nua2.node.check-host.net Kyiv         True   0,17\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com:444 -Type http -Count 5\n\nServer                  Location Status  Time\n------                  -------- ------  ----\nbg1.node.check-host.net Sofia    False   3,00\nch1.node.check-host.net Zurich   False  18,07\npl1.node.check-host.net Poznan   False  18,06\nru1.node.check-host.net Moscow   False  18,00\n```\n\n### Check dns\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com -Type dns -Count 5\n\nServer                  Location  A_Record\n------                  --------  --------                                                          \nae1.node.check-host.net Dubai     142.250.181.110\nes1.node.check-host.net Barcelona 142.250.184.14\nrs1.node.check-host.net Belgrade  142.251.208.110\nse1.node.check-host.net Stockholm\ntr2.node.check-host.net Gebze     {173.194.76.139, 173.194.76.102, 173.194.76.100, 173.194.76.138…} \n```\n\n### Check tcp and udp port\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com:443 -Type tcp -Count 5\n\nServer                  Location         Status\n------                  --------         ------\nbr1.node.check-host.net Sao Paulo          0,22\nir4.node.check-host.net Tabriz             0,06\nru3.node.check-host.net Saint Petersburg   0,01\nru4.node.check-host.net Ekaterinburg       0,10\ntr2.node.check-host.net Gebze              0,05\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com:22 -Type tcp -Count 5\n\nServer                  Location Status\n------                  -------- ------\nir1.node.check-host.net Tehran   Connection timed out\nir4.node.check-host.net Tabriz   Connection timed out\nlt1.node.check-host.net Vilnius  Connection timed out\nua2.node.check-host.net Kyiv     Connection timed out\nuk1.node.check-host.net Coventry Connection timed out\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-CheckHost -Server google.com:22 -Type udp -Count 5\n\nServer                  Location  Timeout\n------                  --------  -------\nae1.node.check-host.net Dubai           1\nde1.node.check-host.net Nuremberg       1\nes1.node.check-host.net Barcelona       1\nlt1.node.check-host.net Vilnius         1\nrs1.node.check-host.net Belgrade        1\n```\n\n# netcheck\n\n**Module version for shell Bash.**\n\n**Format**: `netcheck --type \u003cping/dns/http/tcp/udp\u003e \u003chost\u003e \u003cnode_count/node_name\u003e`\n\n### Install\n\n```bash\nsudo curl -s https://raw.githubusercontent.com/Lifailon/Check-Host/rsa/netcheck/netcheck.sh -o /usr/bin/netcheck\nsudo chmod +x /usr/bin/netcheck\n```\n\nDependencies: **[jq](https://github.com/jqlang/jq)**\n\n`apt install jq`\n\n### ping\n\n```bash\nlifailon@netbox-01:~$ netcheck -t ping yandex.ru\n{\n  \"kz1.node.check-host.net\": [\n    [\n      [\n        \"OK\",\n        0.0498127937316895,\n        \"77.88.55.88\"\n      ],\n      [\n        \"OK\",\n        0.0495548248291016\n      ],\n      [\n        \"OK\",\n        0.0496258735656738\n      ],\n      [\n        \"OK\",\n        0.0498530864715576\n      ]\n    ]\n  ]\n}\n```\n\n### Nodes\n\nGet node list use selected source for check:\n\n```bash\nlifailon@netbox-01:~$ netcheck -n\n{\n  \"hostname\": \"ae1.node.check-host.net\",\n  \"location\": \"Dubai\"\n}\n{\n  \"hostname\": \"at1.node.check-host.net\",\n  \"location\": \"Vienna\"\n}\n...\n{\n  \"hostname\": \"us1.node.check-host.net\",\n  \"location\": \"Los Angeles\"\n}\n{\n  \"hostname\": \"us3.node.check-host.net\",\n  \"location\": \"Atlanta\"\n}\n```\n\n### Ping using selected node\n\n```\nlifailon@netbox-01:~$ netcheck -t ping yandex.ru us1.node.check-host.net\n{\n  \"us1.node.check-host.net\": [\n    [\n      [\n        \"OK\",\n        0.210521936416626,\n        \"5.255.255.70\"\n      ],\n      [\n        \"OK\",\n        0.210937976837158\n      ],\n      [\n        \"OK\",\n        0.210684061050415\n      ],\n      [\n        \"OK\",\n        0.210653066635132\n      ]\n    ]\n  ]\n}\n```\n\n### dns\n\n```bash\nlifailon@netbox-01:~$ netcheck -t dns yandex.ru\n{\n  \"br1.node.check-host.net\": [\n    {\n      \"A\": [\n        \"5.255.255.77\",\n        \"77.88.55.60\",\n        \"77.88.55.88\",\n        \"5.255.255.70\"\n      ],\n      \"AAAA\": [\n        \"2a02:6b8:a::a\"\n      ],\n      \"TTL\": 193\n    }\n  ]\n}\n```\n\n### http\n\nUsing multiple nodes:\n\n```bash\nlifailon@netbox-01:~$ netcheck -t http yandex.ru 5\n{\n  \"ch1.node.check-host.net\": [\n    [\n      1,\n      0.218896150588989,\n      \"Moved temporarily\",\n      \"302\",\n      \"77.88.55.60\"\n    ]\n  ],\n  \"hk1.node.check-host.net\": [\n    [\n      1,\n      0.687891006469727,\n      \"Moved temporarily\",\n      \"302\",\n      \"77.88.55.88\"\n    ]\n  ],\n  \"md1.node.check-host.net\": [\n    [\n      1,\n      0.20933985710144,\n      \"Moved temporarily\",\n      \"302\",\n      \"77.88.55.60\"\n    ]\n  ],\n  \"ru2.node.check-host.net\": [\n    [\n      1,\n      0.0666680335998535,\n      \"Moved temporarily\",\n      \"302\",\n      \"5.255.255.77\"\n    ]\n  ],\n  \"ua3.node.check-host.net\": [\n    [\n      1,\n      0.349638938903809,\n      \"Moved temporarily\",\n      \"302\",\n      \"5.255.255.77\"\n    ]\n  ]\n}\n```\n\n### tcp and udp\n\n```bash\nroot@netbox-01:/home/lifailon# netcheck -t tcp yandex.ru:443\n{\n  \"ua2.node.check-host.net\": [\n    {\n      \"address\": \"77.88.55.88\",\n      \"time\": 0.059514\n    }\n  ]\n}\nroot@netbox-01:/home/lifailon# netcheck -t tcp yandex.ru:22\n{\n  \"ae1.node.check-host.net\": [\n    {\n      \"error\": \"Connection timed out\"\n    }\n  ]\n}\nroot@netbox-01:/home/lifailon# netcheck -t udp yandex.ru:443\n{\n  \"cz1.node.check-host.net\": [\n    {\n      \"address\": \"77.88.55.60\",\n      \"timeout\": 1\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fcheck-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Fcheck-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fcheck-host/lists"}