How to monitor Ubuntu 4 VM in Hetnzer

Mohd Rashid 0 Reputation points
2023-01-27T10:05:56.1933333+00:00

Hi All,

My 4 VMs are running in Hetzner Cloud

I have monitor 4 VMs of ubuntu OS running on it and some data is also running in all 4 VMs.

I want to write a shell script on that 4 VMs whether they are Up/Down like ping

That script should check daily or every hour about 4 VMs is Up/Down or Not

Please give me some link or tips how can i write it

and Shell script i will keep in jenkins job to daily it will check

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,001 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 31,571 Reputation points
    2023-01-29T22:08:20.3566667+00:00

    Start by doing a simple internet search and try some of the examples and see what fits for your environment.

    https://www.bing.com/search?q=powershell+monitor+server

    Or contact Hetzner Cloud support and ask them what monitoring options they provide to customers.

    0 comments No comments

  2. Rich Matheisen 44,776 Reputation points
    2023-01-30T00:23:34.3+00:00

    Well, if all you want to do is ping four FQDNs then this should do it:

    ping fqdn1 >myresults.txt
    ping fqdn2 >>myresults.txt
    ping fqdn3 >>myresults.txt
    ping fqdn4 >>myresults.txt
    
    
    0 comments No comments