User avatar
redux
Lisker
Posts: 67
Joined: Mon Mar 28, 2016 11:16 pm
Location: planet crypto

Lisk Zabbix Template - Monitor your Node

Fri May 27, 2016 9:54 am

Description
A zabbix template to monitor your LISK node.

https://github.com/pilldriver/lisk-zabbix-template

Monitoring information by now:
* Api: Approval Percentage
* Api: Delegate Rank
* Api: Forging Status
* Api: Missed Blocks
* Api: Node Productivity
* Api: Produced Blocks
* Api: Status Sync [Blocks]
* Api: Status Sync [Height]
* Log: Received New Block (timestamped blocks from app.log)
* Log: Fork Detected (logs.log)
* Log: Forged New Block (logs.log)
* Log: Failed Generate Block (logs.log)
* Log: Failed Common Block (logs.log)
* Process: Memory Usage
* Process: Lisk Status
* Cluster: Forging Enabled (aggregated check)
* Stats: Avg Blocks Per Minute
* Trigger: Api: Missed Block on {HOST.NAME}
* Trigger: Cluster: Forging Nodes > 1
* Trigger: Log: Failed Generate Block on {HOST.NAME}
* Trigger: Log: Fork Detected on {HOST.NAME}
* Trigger: Process: Lisk is not running on {HOST.NAME}
* Trigger: Stats: Lisk Block Height on {HOST.NAME} is unchanged for last 10 minutes

Todo:
* Better included graphs and a extend monitoring screen
* What else?

Installation on a Zabbix Client
Copy userparameter_lisk.conf to /etc/zabbix/zabbix_agentd.d/ - userparameter_lisk.conf must
be updated if you want to use a different port than port 8000

Restart the zabbix-agent

Installation in the Zabbix Server
In your Zabbix frontend: Configuration-Templates section, Import bottom in the right.

Choose the XML file (for server installation: lisk_zabbix_template.xml) and import it.

Apply this new template to your LISK servers.

Notification Setup
Notify alarms from Zabbix 3.0 to Slack, HipChat and PagerDuty

Template Config
From your Zabbix Template view click on the "Template App Lisk Service"

Go to the Macros section and fill in the details where needed

* {$LISK.ADDRESS} <- Your Lisk address from your Forging account
* {$LISK.FORGING} <- Used for aggregated check # nodes forging enabled (dont change!)
* {$LISK.LOG} <- Location of your Lisk log on your node
* {$LISK.PORT} <- The port LISK is running on (default 8000 for mainnet)
* {$LISK.PUBLICKEY} <- Your Lisk publicKey from your Forging account
* {$ZABBIX.GROUP} <- The zabbix groupname of your Lisk Servers

Requirements on your Lisk node

Debian / Ubuntu / Raspbian

Code: Select all

sudo apt-get install jq


RHEL / CentOS / Fedora

Code: Select all

sudo yum install jq
Last edited by redux on Sun Jun 12, 2016 5:57 pm, edited 3 times in total.
vote delegate: redux
SSD HW Raid ★ 8+GB mem ★ 1Gbit Uplink ★ Anti DDOS ★ CentOS 7 ★ Located in .EU

Projects: Lisk Zabbix Template | TBA.

User avatar
redux
Lisker
Posts: 67
Joined: Mon Mar 28, 2016 11:16 pm
Location: planet crypto

Re: Lisk Zabbix Template - Monitor your Node

Sun May 29, 2016 10:33 am

changelog:

Added timestamping on blocks from app.log
Added logs.log for one line logging as app.log does multiline on several messages.
Added new Macro to differentiate the logs.
Added New Trigger for stalled blockchain detection
vote delegate: redux
SSD HW Raid ★ 8+GB mem ★ 1Gbit Uplink ★ Anti DDOS ★ CentOS 7 ★ Located in .EU

Projects: Lisk Zabbix Template | TBA.

liberspirita
Lisker
Posts: 17
Joined: Thu Jul 28, 2016 7:15 pm

Re: Lisk Zabbix Template - Monitor your Node

Thu Aug 18, 2016 12:52 pm

Fantastic tool,
a pleasure to monitor my 5 nodes, in addition with an android app dedicated for zabbix on my mobile phone.
Of course, you have my vote !
******************************************************************************
Lisk supporter
2004134067472288525L Liberspirita for delegate (70% projects)
17621212458226596154L RobinHood (100% profits for supporters, mainly small holders)

andreafspeziale
Posts: 3
Joined: Tue Mar 29, 2016 3:57 pm

Re: Lisk Zabbix Template - Monitor your Node

Sat Aug 27, 2016 7:51 am

Nice job!
main liskit.me
testnet testnet.liskit.me

liskit for delegate: viewtopic.php?f=6&t=197
repository: https://github.com/txchain
telegram bot: LiskitBot

Return to “Projects & Services”

Who is online

Users browsing this forum: No registered users and 1 guest