Code Monkey home page Code Monkey logo

synology-monitoring's Introduction

synology-monitoring

Simple shell script for capturing SNMP stats to InfluxDB and monitoring health in Grafana.

Grafana Dashboard

Requirements
  • InfluxDB
  • Grafana
  • Synology NAS with SNMP enabled
Setup

The script is best suited to run on the NAS itself and highly recommended. It can be ran on another device but the device would need to be able to run shell scripts, able to make SNMP calls such as using snmpwalk and has the Synology SNMP MIB's . With minimal configuration, the Synology NAS should be more than capable of capturing this itself.

  1. Save the script to a known location on the NAS. For example, /volume1/Local/Scripts/synology_snmp.sh
  2. Input the InfluxDB information such as URL/IP, ports, database name, username and password.
  3. Modify any other configuration settings, each should have an explanation.
  4. On the Synology NAS, Select Control Panel > Terminal & SNMP > SNMP and enable SNMP V1, V2c service.
    Ensure that you set the community to 'public' in the Synology settings as the snmpwalk command is utilizing the -c public flag
  5. On the Synology NAS, Select Control Panel > Task Scheduler > Create >> Scheduled Task >> User-defined Script.
  6. Give the Task a recognizable name.
  7. On the Task Settings, set the Run command to bash /path/to/synology_snmp.sh
  8. On the Schedule:
    • Run on the following days: Daily
    • First run time: 00:00
    • Frequency: Every minute The frequency of times it runs within that minute is defined in the script itself
    • Last run time: 23:59
  9. Import the Synology_dashboard.json file to your Grafana instance, Create > Import > Import .json file.

synology-monitoring's People

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.