Giter Site home page Giter Site logo

eos-nagios-plugins's Introduction

Nagios plugins for EOSIO blockchains

Installation

## Install Icinga according to the OS version
cat >>/etc/apt/source.list <<'EOT'
deb http://packages.icinga.org/ubuntu icinga-bionic main
EOT

curl -sSL https://packages.icinga.com/icinga.key | sudo apt-key add -
apt update && apt install -y icinga2 nagios-plugins-contrib;


## Install nodejs from https://nodejs.org/en/download/

apt install -y git libdatetime-format-iso8601-perl libjson-xs-perl libjson-perl libwww-perl

git clone https://github.com/cc32d9/eos-nagios-plugins.git /opt/eos-nagios-plugins

cd /opt/eos-nagios-plugins/ship
npm install

ln -s /opt/eos-nagios-plugins/check_nodeos_block_time /usr/lib/nagios/plugins/
ln -s /opt/eos-nagios-plugins/check_nodeos_db_size /usr/lib/nagios/plugins/
ln -s /opt/eos-nagios-plugins/check_account_cpu /usr/lib/nagios/plugins/
ln -s /opt/eos-nagios-plugins/ship/check_eosio_ship /usr/lib/nagios/plugins/

# if you need to monitor Light API status:
ln -s /opt/eos-nagios-plugins/check_lightapi_sync /usr/lib/nagios/plugins/

Usage

Check how much nodeos is delaying behind current time:

/usr/lib/nagios/plugins/check_nodeos_block_time --url=http://api.eostribe.io
BLOCKTIME OK - 0.440752s difference|time_diff=0.440752

Check nodeos shared memory usage:

/usr/lib/nagios/plugins/check_nodeos_db_size --url=http://127.0.0.1:8888
EOS_DB OK - 8.86% used|percent_used=8.86 bytes_used=3042721344

Check account CPU allowance:

/usr/lib/nagios/plugins/check_account_cpu --url https://mainnet.eosamsterdam.net --acc=thekarmadapp
ACCOUNT_CPU CRITICAL - 413.72% used|percent_used=413.72

Check state history health:

/usr/lib/nagios/plugins/check_eosio_ship --url-ws=ws://10.0.0.100:8080 --url-api=https://wax.eu.eosamsterdam.net

Light API sync status (https://github.com/cc32d9/eos_zmq_light_api)

/usr/lib/nagios/plugins/check_lightapi_sync --url=http://127.0.0.1
LIGHTAPI_SYNC CRITICAL - 46068s delay|delay=46068

Acknowledgements

Development of check_nodeos_block_time was sponsored by EOSBET.io.

Copyright and License

check_eos_watchdoggiee: Copyright 2018 [email protected]

Copyright 2018 [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

eos-nagios-plugins's People

Contributors

cc32d9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.