create account

Easily remotely monitor your scripts and dApps for failures and downtime by themarkymark

View this thread on: hive.blogpeakd.comecency.com
· @themarkymark ·
$23.48
Easily remotely monitor your scripts and dApps for failures and downtime
![image.png](https://files.peakd.com/file/peakd-hive/themarkymark/EtM1PfN9-image.png)

Most people who have managed servers and applications are familiar with up/down server monitoring.  This is a service that pings your server from multiple locations every few minutes and alerts you if your server is non-responsive.

This feature is a life saver to know when a critical server or service goes offline allowing you to respond immediately.

I run a monitor that keeps an eye on Hive network which you can check out at https://hivestatus.usehive.com.

https://i.imgur.com/GW2XscP.png

# Introducing Heart Beat Checks

What a lot of people are not familiar with is heart beat checks that can be used with scripts and services to let you know if a backup fails or some other critical script.

This feature works in reverse, normally server monitoring contacts your server every 1-5 minutes and if it reaches it, it does nothing.  If it cannot reach it, it will typically check from another location to confirm the server is in fact down, then alert you.  With heart beat checks, your server contacts a remote server and if that server doesn't hear from you in a set amount of time, it alerts you.

# Why would I use heartbeat checks?
While this doesn't seem like a big deal, it can be extremely helpful.  Let's say you have a backup task that runs daily and doesn't have any built in notification system.  If the backup fails to run or fails, it will not contact the heartbeat and after the set time out, the heart beat will notify you.

You can also have your error handling code do regular heartbeat notifications, and when something goes wrong, it does not send a heart beat.

In the case of a backup, you can have the heartbeat notify you if you haven't heard from it in 24 hours as most backups are done daily.  More time sensitive services can send a pulse every few minutes and send a notification if it hasn't been heard from in 5 minutes.

There are a lot of really powerful use cases for this type of service.

# How to setup Heartbeat checks?

You can code your own heartbeat type of checks into your application by having a remote server that those apps can contact. 

[Uptime Robot](https://uptimerobot.com) offers both server monitoring (free) and heartbeat monitoring (paid plan) for a very reasonable price.

https://i.imgur.com/hMr64o6.png

I currently use the paid plan for $7/month.  It allows me to monitor 50 servers and or heartbeats.  While you can monitor servers for free with Uptime Robot (checks every five minutes), you do need a paid plan to be able to do heartbeat monitoring, it also allows you to monitor every 1 minute instead of every 5 minutes.

The heartbeat monitoring is a fairly new but very useful feature.

The above Hive Status page you see above is a custom status page from UptimeRobot without any branding, so it looks like it is my own page. One of the nice features with paid accounts I like.

You can read about heartbeat monitoring with Uptime Robot here:
https://blog.uptimerobot.com/new-feature-heartbeat-monitoring/

👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 249 others
👎  
properties (23)
authorthemarkymark
permlinkeasily-remotely-monitor-your-scripts-and-dapps-for-failures-and-downtime
categorytechnology
json_metadata{"app":"peakd/2020.03.14","format":"markdown","tags":["technology","dev","programming","devops","palnet","neoxian"],"links":["https://hivestatus.usehive.com","https://uptimerobot.com","https://blog.uptimerobot.com/new-feature-heartbeat-monitoring/"],"image":["https://files.peakd.com/file/peakd-hive/themarkymark/EtM1PfN9-image.png","https://i.imgur.com/GW2XscP.png","https://i.imgur.com/hMr64o6.png"]}
created2020-04-11 17:45:21
last_update2020-04-11 17:45:21
depth0
children7
last_payout2020-04-18 17:45:21
cashout_time1969-12-31 23:59:59
total_payout_value13.252 HBD
curator_payout_value10.225 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,067
author_reputation1,671,687,065,348,624
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,801,536
net_rshares71,780,135,352,612
author_curate_reward""
vote details (314)
@bala41288 ·
That's nice. Definitely works great for monitoring large scale applications and if you have multiple servers to manage. 

I currently have my own service that pool the server and let me know the status of the server and my applications. 
properties (22)
authorbala41288
permlinkre-themarkymark-2020412t359229z
categorytechnology
json_metadata{"tags":["technology","dev","programming","devops","palnet","neoxian"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-04-11 21:35:09
last_update2020-04-11 21:35:09
depth1
children0
last_payout2020-04-18 21:35:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length237
author_reputation1,086,147,754,185,586
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,804,033
net_rshares0
@codingdefined ·
> paid plan for $7/month.

That's cheap for 50 servers. 

Though we can also write our own program where you can ping the server every minute to check if it sending the packet or not.
properties (22)
authorcodingdefined
permlinkq8mylp
categorytechnology
json_metadata{"app":"hiveblog/0.1"}
created2020-04-11 18:13:00
last_update2020-04-11 18:13:00
depth1
children3
last_payout2020-04-18 18:13:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length183
author_reputation389,500,584,123,833
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,801,865
net_rshares0
@themarkymark ·
You can, but once you try to match their 10+ unique monitoring locations around the globe and maintaining the servers and monitoring them it gets far more expensive.

There is also a mobile app and some additional useful features.
properties (22)
authorthemarkymark
permlinkre-codingdefined-q8myn9
categorytechnology
json_metadata{"tags":["technology"],"app":"peakd/2020.03.14"}
created2020-04-11 18:13:57
last_update2020-04-11 18:13:57
depth2
children2
last_payout2020-04-18 18:13:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length230
author_reputation1,671,687,065,348,624
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,801,883
net_rshares0
@codingdefined ·
That's true, I am talking about Individuals where you have 2-3 servers only.
properties (22)
authorcodingdefined
permlinkq8mytp
categorytechnology
json_metadata{"app":"hiveblog/0.1"}
created2020-04-11 18:17:51
last_update2020-04-11 18:17:51
depth3
children1
last_payout2020-04-18 18:17:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation389,500,584,123,833
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,801,931
net_rshares0
@foxon ·
I love seeing stuff like this from witnesses. While I understand the politics of name recognition may require other activities, I really want my witnesses to be crack sysadmins. Keep the server up and working. Posts like this are exactly the kind of thing that give me that confidence

Periodic (idk, like monthly) status updates would also be sweet - hardware utilization, uptime, current infrastructure, etc

Thanks for the witnessing, marky!
properties (22)
authorfoxon
permlinkre-themarkymark-q8n6dv
categorytechnology
json_metadata{"tags":["technology"],"app":"peakd/2020.03.14"}
created2020-04-11 21:01:09
last_update2020-04-11 21:01:09
depth1
children0
last_payout2020-04-18 21:01:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length444
author_reputation9,226,931,685,882
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,803,732
net_rshares0
@magicmonk ·
bookmarked. Thank you Mark for contributing towards this blockchain :)
properties (22)
authormagicmonk
permlinkre-themarkymark-q8ncla
categorytechnology
json_metadata{"tags":["technology"],"app":"peakd/2020.03.14"}
created2020-04-11 23:15:15
last_update2020-04-11 23:15:15
depth1
children0
last_payout2020-04-18 23:15:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length70
author_reputation958,542,476,144,057
root_title"Easily remotely monitor your scripts and dApps for failures and downtime"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,804,872
net_rshares0