shell scripts for monitoring my masternodes
-
You need to export system/profile env variable
export DATADOG_API_KEY=<YOUR_DATADOG_API_HERE>
-
clone this repo into
<YOUR_DIR>
, for example/usr/local/src
-
run
bash setup.sh
You can use following command and crontab to do autodeployment after git commit
- switch to root
sudo su
- open crontab editor
crontab -e
- paste following line at the bottomg of the list
*/1 * * * * cd /usr/local/src/masternode-tools && /usr/bin/git pull --rebase && bash setup.sh
It will pull from git every minute (https://crontab.guru/#*/1__**) and install all scripts which are executable
source /usr/local/bin/ddhelper.sh
sentMetric $host $coin $metricname $value $role $username
source /usr/local/bin/ddhelper.sh
// alert_type is option, default is info
sentMetric $host $coin $title $message $role $username <alert_type>
- edit your coin config file
- for wallet transactions use
walletnotify=/usr/local/bin/walletnotifyCROP %s
- for daemon alerts use
alertnotify=/usr/local/bin/alertnotifyCROP %s
- official howto setup node - https://horizenofficial.atlassian.net/wiki/spaces/ZEN/pages/136872139/Installation
- botstrap blockchain - https://bootstraps.ultimatenodes.io/horizen/masternode/