User avatar
Grumlin
Lisker
Posts: 122
Joined: Sat Mar 26, 2016 7:15 pm

Checker v1.6.0 for monitor delegate and your nodes with install and tune smtp and auto update script

Fri May 06, 2016 1:23 pm

Hi! I wrote my script with email alert and sms sender! My script such restart or rebuild the node. Script started every minute!

You need download my script in user directory that:

Code: Select all

cd ~
wget https://github.com/Grum1in/grumlin-docs/releases/download/1.0/checker.sh


You need to create conf file with command "bash checker.sh createconf"

For example:

Code: Select all

LISK_DIR=$(pwd)/lisk-Linux-x86_64
PUBLICKEY=a0f768d6476a9cfec1a64a895064fe114b26bd3fb6aeda397ccce7ef7f3f98ef
NODEIP=89.40.125.40
USEEMAILNOTICE=true
EMAIL=lisk.grumlin@gmail.com
APIPORT=8000
USESMSNOTICE=true
APISMSID=E139ХХХХ-ХХХХ-ХХХХ-ХХХХ-ХХХХ3AFE6B16
PHONENUMBER=37529ХХХХХХ
USELOCALSTORAGE=true


For send sms you need have http sms gateway
I use the sms.ru


Publick key you can get with: http://yourip:8000/api/accounts/getPubl ... te_address

script have a few commands:

install smtp(need root permissions):

Code: Select all

bash checker.sh installsmtp

tune smtp(need root permissions):

Code: Select all

bash checker.sh tunesmtp

create conf(creare checker.conf):

Code: Select all

bash checker.sh createconf

update script manually(downloads newest version):

Code: Select all

bash checker.sh update

autostart(add record in crontab):

Code: Select all

bash checker.sh autostart

autoupdate(add record in crontab for check newest version every 3 hours):

Code: Select all

bash checker.sh autoupdate

logs

Code: Select all

bash checker.sh logs
Last edited by Grumlin on Sat Feb 25, 2017 8:35 am, edited 31 times in total.

User avatar
vi1son
Lisker
Posts: 94
Joined: Mon Apr 11, 2016 9:34 pm
Location: Belarus
Contact: Skype

Re: Checker v1.0 for monitor delegate and your nodes with install smtp and tune

Fri May 06, 2016 2:26 pm

I check it out - works good



User avatar
Grumlin
Lisker
Posts: 122
Joined: Sat Mar 26, 2016 7:15 pm

Re: Checker v1.0.2 for monitor delegate and your nodes with install and tune smtp

Sat May 07, 2016 12:51 pm

add new function: update

now we can just complete command: bash checker.sh update and you script will be newest version

User avatar
Grumlin
Lisker
Posts: 122
Joined: Sat Mar 26, 2016 7:15 pm

Re: Checker v1.0.3 for monitor delegate and your nodes with install and tune smtp and auto update script

Sat May 07, 2016 2:00 pm

Add new function autoupdate, and in 1.0.3 need recreate conf, see first post

User avatar
Grumlin
Lisker
Posts: 122
Joined: Sat Mar 26, 2016 7:15 pm

Re: Checker v1.0.3 for monitor delegate and your nodes with install and tune smtp and auto update script

Sun May 08, 2016 12:37 am

update you createconf again please, fix the bug(first line must be LISK_DIR instead of PUBLICKEY)

User avatar
Grumlin
Lisker
Posts: 122
Joined: Sat Mar 26, 2016 7:15 pm

Re: Checker v1.0.4 for monitor delegate and your nodes with install and tune smtp and auto update script

Sun May 08, 2016 5:53 pm

Update to 1.1.0

add check existing processes



Return to “Guides”

Who is online

Users browsing this forum: No registered users and 1 guest