wbenny / synology-nas-monitoring

MIT License
96 stars 17 forks source link

Synology NAS monitoring

Configuration files and tutorial on how to monitor your Synology NAS using SNMP, Telegraf, InfluxDB and Grafana.

Dashboard

Motivation

There are already few SNMP/Grafana monitoring solutions available. However, they are usually:

This Synology NAS monitoring uses InfluxDB 2 with Flux query language and the dashboard is configurable with virtually zero hard coded values.

Configuration

Enable SNMP service on Synology NAS. In DSM:

Warning: this setting is not secure, especially if your NAS is exposed to the Internet. For more security, choose different Community (e.g. random string) or enable and configure SNMPv3 service. Note that if you change Community or enable SNMPv3 service, you have to make appropriate changes to the Telegraf configuration. Please, consult the documentation.

Create influxdb container

In Advanced Settings:

InfluxDB should be now available at http://your-nas:8086/.

Create telegraf container

In Advanced Settings:

Before running the container:

Create grafana container

In Advanced Settings:

Grafana should be now available at http://your-nas:3000/. Default credentials are admin:admin. After login, it will ask you for a new password.

After logging into Grafana web interface:

If not selected by default, choose appropriate Data source at the top.

License

Content of this repository - except the telegraf/mibs folder - is open-source under the MIT license. See the LICENSE.txt file in this repository.

telegraf/mibs folder contains following files:

If you find this project interesting, you can buy me a coffee

  BTC 3GwZMNGvLCZMi7mjL8K6iyj6qGbhkVMNMF
  LTC MQn5YC7bZd4KSsaj8snSg4TetmdKDkeCYk