Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script by lukestokes

View this thread on steempeak.com
· @lukestokes ·
$39.93
Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script
Last year I wrote a <a href="https://steemit.com/witness-category/@lukestokes/bash-script-to-monitor-your-witness-node">script to monitor my witness nodes</a> and then <a href="https://steemit.com/witness-category/@lukestokes/updated-bash-script-to-monitor-your-witness-node">updated it again 10 months ago</a>. Today I updated my producing node and my seed node to v0.19.10 while also pulling in the latest changes from <a href="https://github.com/Someguy123/steem-docker/tree/v0.19.10">@someguy123's steem-docker v0.19.10 branch</a>. One of the changes I noticed and appreciated was the addition of `-f` to the logs command so it would continuously follow the logs instead of just spitting out the last 30 entries. This is something I've done manually many times, so it was a welcome addition to the script.

Unfortunately, I forgot my monitoring scripts were also using that command and expecting it to exit each time instead of continually follow the logs. My monitoring script is on a cronjob to run every minute which means new processes were being spun up every minute. Yeah, my servers were not to happy with me today, but thankfully I was able to find and fix the problem (while having to kill off a ridiculous amount of processes) without missing any blocks or melting down my servers.

If you're using my monitoring script, you can get the latest version <a href="https://gist.github.com/lukestokes/a92e1ee6f264d120c3669b7a1741135c">here as a Github gist</a>. The main changes:

```
last_saved_block=$(< last_block.txt)
source .env
latest_log_entry=$(docker logs --tail=1 $DOCKER_NAME)
```

The block number position also changed to 10 instead of 11:

```
latest_block=$(echo $latest_log_entry | awk '{print $10;}')
```

And at the bottom:

```
echo $latest_log_entry >> notification_sent.txt
```

As <a href="https://steemit.com/monstereos/@lukestokes/i-created-my-first-monstereos-and-steemit-releases-v0-19-10">I mentioned yesterday</a>, v0.19.10 has just been released. There have been a few witnesses testing appbase for some time now and working through bugs, so I felt confident enough to test it out myself. After letting it run for a while on my non-producing node and my seed, I decided to start producing on it as <a href="https://steemd.com/witnesses">you can see here</a>:

![](https://cdn.steemitimages.com/DQmfZKy1EuyFH2k42s6D8Mu2MHhEiUPXAhWzpigiPcT3ZkE/image.png)

My secondary node which isn't producing right now is still running on v0.19.5 in case any unexpected issues come up. Once more witnesses feel comfortable with v0.19.10, I'll upgrade that one also.

This post is mainly for other witnesses, but if you want to know more about what witnesses do, please check out <a href="https://steemit.com/witness-category/@lukestokes/steemit-is-free-but-your-witness-vote-determines-its-future">this post I wrote last year</a>.

If you're using my notification script, please make sure to update it before pulling down the latest steem in a box. If you're a witness, you really should have some scripts letting you know about the health of the chain. When <a href="https://steemit.com/witness-category/@lukestokes/explaining-the-steem-blockchain-freeze-of-july-2nd-2018">the Steem chain froze on July 2nd</a>, I was one of the first to know about it and respond thanks to my little script. :)

-----

<img src="https://steemitimages.com/DQmR3hhPtgcqhNDZyArucp2dZv2pG62WDKiWam8jrppCXNB/on_a_log_cropped.png">

<p>
    <div class="pull-right">
        <a href="https://steemit.com/introduceyourself/@lukestokes/my-name-is-luke-let-s-create-the-world-we-want-to-live-in"><img src="https://steemitimages.com/DQmRh7DLpp1hDKugxyWxdDof7rkj5fpBus6tECvv7vcmL6d/smile.png" /></a>
    </div>
    <em><a href="https://steemit.com/introduceyourself/@lukestokes/my-name-is-luke-let-s-create-the-world-we-want-to-live-in">Luke Stokes</a> is a father, <a href="https://steemit.com/@corinnestokes">husband</a>, programmer, STEEM witness, <a href="https://steemit.com/eosdac/@lukestokes/a-big-step-towards-our-decentralized-future-i-ve-joined-the-eosdac-launch-team">DAC launcher</a>, and voluntaryist who wants to help create a world we all want to live in. Learn about cryptocurrency at <a href="http://understandingblockchainfreedom.com/">UnderstandingBlockchainFreedom.com</a></em>
</p>

<center><a href="http://steemitboard.com/board.html?user=lukestokes"><img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/commented.png?v=20180708"> <img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/votes.png?v=20180708"> <img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/posts.png?v=20180708"><img src="https://steemitimages.com/80x65/http://steemitboard.com/@lukestokes/level.png?v=20180708"> <img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/comments.png?v=20180708"> <img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/voted.png?v=20180708"> <img src="https://steemitimages.com/50x55/http://steemitboard.com/@lukestokes/payout.png?v=20180708"></a></center>

<center><sub><a href="https://steemit.com/witness-category/@lukestokes/vote-luke-stokes-for-witness-as-lukestokes-mhth">I'm a Witness</a>! Please <a href="https://steemit.com/~witnesses">vote for @lukestokes.mhth</a></sub></center><center><a href="https://steemit.com/~witnesses" alt="Please vote for @lukestokes.mhth"><img src="https://cdn.steemitimages.com/DQmcJaRo6VwNdfL6qHinLLQo3nKndpKy7D4PEbxDMC3aVcU/image.png"></a></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 146 others
properties (23)
post_id56,267,611
authorlukestokes
permlinkwitness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script
categorywitness-category
json_metadata{"tags":["witness-category","witness-update"],"format":"markdown","links":["https:\/\/steemit.com\/witness-category\/@lukestokes\/bash-script-to-monitor-your-witness-node","https:\/\/steemit.com\/witness-category\/@lukestokes\/updated-bash-script-to-monitor-your-witness-node","https:\/\/github.com\/Someguy123\/steem-docker\/tree\/v0.19.10","https:\/\/gist.github.com\/lukestokes\/a92e1ee6f264d120c3669b7a1741135c","https:\/\/steemit.com\/monstereos\/@lukestokes\/i-created-my-first-monstereos-and-steemit-releases-v0-19-10","https:\/\/steemd.com\/witnesses","https:\/\/steemit.com\/witness-category\/@lukestokes\/steemit-is-free-but-your-witness-vote-determines-its-future","https:\/\/steemit.com\/witness-category\/@lukestokes\/explaining-the-steem-blockchain-freeze-of-july-2nd-2018","https:\/\/steemit.com\/introduceyourself\/@lukestokes\/my-name-is-luke-let-s-create-the-world-we-want-to-live-in","https:\/\/steemit.com\/@corinnestokes","https:\/\/steemit.com\/eosdac\/@lukestokes\/a-big-step-towards-our-decentralized-future-i-ve-joined-the-eosdac-launch-team","http:\/\/understandingblockchainfreedom.com\/","http:\/\/steemitboard.com\/board.html?user=lukestokes","https:\/\/steemit.com\/witness-category\/@lukestokes\/vote-luke-stokes-for-witness-as-lukestokes-mhth","https:\/\/steemit.com\/~witnesses"],"image":["https:\/\/cdn.steemitimages.com\/DQmfZKy1EuyFH2k42s6D8Mu2MHhEiUPXAhWzpigiPcT3ZkE\/image.png"],"app":"steemit\/0.1"}
created2018-07-12 05:17:36
last_update2018-07-12 05:17:36
depth0
children7
net_rshares18,758,237,296,067
last_payout2018-07-19 05:17:36
cashout_time1969-12-31 23:59:59
total_payout_value33.686 SBD
curator_payout_value6.246 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5,528
author_reputation395,063,281,398,324
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (210)
@danishusman ·
GooD Work.
properties (22)
post_id56,267,945
authordanishusman
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t052229538z
categorywitness-category
json_metadata{"tags":["witness-category"],"app":"steemit\/0.1"}
created2018-07-12 05:22:48
last_update2018-07-12 05:22:48
depth1
children0
net_rshares0
last_payout2018-07-19 05:22:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length10
author_reputation364,008,153,075
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@vikas4233 ·
Thanks @lukestokes for sharing this information, witnesses are working hard I didn't read your past related to witnesses but few days back searched about witnesses and found the result that @gtg @good-karma @blocktrades @themarkymark and few more witnesses are doing well for make this Steemit community better and better...
properties (22)
post_id56,268,094
authorvikas4233
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t052540761z
categorywitness-category
json_metadata{"app":"steemit\/0.1","users":["lukestokes","gtg","good-karma","blocktrades","themarkymark"],"tags":["witness-category"]}
created2018-07-12 05:25:33
last_update2018-07-12 05:25:33
depth1
children0
net_rshares0
last_payout2018-07-19 05:25:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length324
author_reputation-143,438,807,721
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@inquiringtimes · (edited)
Thanks, Luke! You're among the first 6 in the top 50 to complete the softfork :)
properties (22)
post_id56,269,138
authorinquiringtimes
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t054054244z
categorywitness-category
json_metadata{"app":"steemit\/0.1","tags":["witness-category"]}
created2018-07-12 05:40:54
last_update2018-07-12 05:42:21
depth1
children0
net_rshares0
last_payout2018-07-19 05:40:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length80
author_reputation22,502,057,091,140
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@mediaservice · (edited)
Nice Monitoring Script code information. Thanks @lukestokes.
properties (22)
post_id56,269,161
authormediaservice
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t054122251z
categorywitness-category
json_metadata{"app":"steemit\/0.1","users":["lukestokes"],"tags":["witness-category"]}
created2018-07-12 05:41:21
last_update2018-07-12 05:41:48
depth1
children0
net_rshares0
last_payout2018-07-19 05:41:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length60
author_reputation1,613,532,724,139
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jimmyfotogallery ·
wowo, good job man
👍  
properties (23)
post_id56,275,521
authorjimmyfotogallery
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t070435642z
categorywitness-category
json_metadata{"app":"steemit\/0.1","tags":["witness-category"]}
created2018-07-12 07:06:42
last_update2018-07-12 07:06:42
depth1
children0
net_rshares1,008,985,319
last_payout2018-07-19 07:06:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length18
author_reputation18,573,292,100,167
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@nekmudagroh ·
thank you @lukestokes, you are working very well in handling steemit 😊👍
properties (22)
post_id56,283,095
authornekmudagroh
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t085327286z
categorywitness-category
json_metadata{"users":["lukestokes"],"app":"steemit\/0.1","tags":["witness-category"]}
created2018-07-12 08:53:36
last_update2018-07-12 08:53:36
depth1
children0
net_rshares0
last_payout2018-07-19 08:53:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length71
author_reputation8,981,178,609,606
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@felander ·
Since we are a small witness we have decided to stay on the 0.19.5 for the moment untill a lot more have switched as well. 

And indeed when @swisswitness will change to 0.19.10 we will start with main and initially keep backup on 0.19.5 as well. It pays to be safer
👍  
properties (23)
post_id56,298,961
authorfelander
permlinkre-lukestokes-witness-update-now-producing-on-v0-19-10-plus-upgrades-to-my-monitoring-script-20180712t121617562z
categorywitness-category
json_metadata{"app":"steemit\/0.1","tags":["witness-category"],"users":["swisswitness"]}
created2018-07-12 12:16:18
last_update2018-07-12 12:16:18
depth1
children0
net_rshares150,498,741
last_payout2018-07-19 12:16:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length266
author_reputation160,529,759,686,946
root_title"Witness Update: Now Producing on v0.19.10 Plus Upgrades to My Monitoring Script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)