• Stars
    star
    197
  • Rank 197,722 (Top 4 %)
  • Language
    Shell
  • Created over 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

influxDB, Grafana, snmp and telegraf

Synology NAS monitoring

alt text

The main points of this project are:

  • Persistence is supported via mounting volumes to a Docker container.
  • Grafana will store its data in SQLite files instead of a MySQL.
  • Added snmp packages and Synology NAS MIBS.
  • Enable

Enable SNMP

  1. From Control panel in your Synology NAS go to Terminal & SNMP
  2. Click on SNMP tab, and enable SNMPv1, SNMPv2 service
  3. in Community input put public
  4. Save

Run Docker image in your Synology

  1. Install Docker from Synology package center
  2. Create two empty folders in your Synology influxdb and grafana, we need to use it later to mount it to our container.
  3. Open Docker client from Synology > Image > Add > Add from url and paste Hub page url "https://hub.docker.com/r/alhazmy13/telegraf-influxdb-grafana"
  4. Wait until it finishes downloading the image
  5. Click on the image "alhazmy13/telegraf-influxdb-grafana" and then click on Launch
  6. Network Tab keep it in bridge mode
  7. Check "Enable auto-restart."
  8. Port settings, just change Local port for 3003 from Auto to 3003, and port 514 from Auto to 5144
  9. In Volume settings, click Add folder and select the first folder that we created, "grafana" and on mount Path, paste /var/lib/grafana
  10. In Volume settings again, click Add Folder and select the second folder that we created "influxdb" and on mount Path paste /var/lib/influxdb
  11. [OPTIONAL] Environment Tab > Add new variable "TZ" with your local time zone ignore this if you want to use the default UTC
  12. Apply, Next, Done and your container should be ready.

Start Grafana

  1. Open http://YOUR_LOCAL_NAS_IP:3003 and login with the default username root and password root
  2. You need to import the dashboard. To do this, go to http://YOUR_LOCAL_NAS_IP:3003/dashboard/import and put 14590 in "Import via grafana.com" input
  3. Click on load and complete the process

Enable Logging

  1. Install Log center From Synology package center
  2. Open Log center app
  3. Click on Log Sending > check "Send log to syslog server"
  4. Set Server = localhost, port = 5144, Protocol = UDP, Format = BSD (RFC 3164)
  5. For testing, click on "Send test log"
  6. Apply

Configure Firewall

If the firewall is enabled, then you need to add a new rule for port UDP/161, This is mandatory otherwise, some data will be missing from the dashboard #7 .

  1. Open Control panel
  2. Security -> Firewall
  3. Edit Rules -> Create New Rule
  4. In the ports section, select from a built-in applications and chose SNMP service
  5. In the IP section select Spesifc IP -> subnet -> Source: 172.12.0.0 / subnet: 255.255.0.0
  6. Action = Allow
  7. Disable and re-enable the firewall for it to take effect

More Repositories

1

MediaPicker

Media Picker is an Android Libary that lets you to select multiple images or video
Java
268
star
2

HijriDatePicker

Material (Gregorian - Hijri) Date & Time Picker
Java
142
star
3

ImageFilters

Image Filter is an Android Libary that lets you to Filtering any image
Makefile
91
star
4

Saudi-ID-Validator

Saudi-ID-Validator (Swift, Kotlin, Java, Go, JS, Python, TypeScript, PHP, Scala, ruby, c#, vb, SQL, C++, SQL and Dart)
Swift
81
star
5

MediaRecorderDialog

Android has a built in microphone through which you can capture audio and store it , or play it in your phone. There are many ways to do that but with this dialog you can do all thats with only one dialog.
Java
72
star
6

Gota

Simplifying Android Permissions
Java
70
star
7

aws-serverless-skeleton

A Serverless skeleton project using Python
Python
41
star
8

AndroidWordCloud

Android Word Cloud
Java
39
star
9

Catcho

No Force close messages anymore!
Java
35
star
10

MediaGallery

Android image slideshow with circular scrolling and custom view.
Java
30
star
11

PrayerTimesSwift

Prayer Times provides a set of handy functions to calculate prayer times for any location around the world
Swift
29
star
12

PrayerTimes

Prayer Times provides a set of handy functions to calculate prayer times for any location around the world, based on a variety of calculation methods currently used in Muslim communities.
Java
24
star
13

pwa-angular4

A progressive webapp with Angular 4 (PLEASE NOTE: angular 5 support PWA )
TypeScript
13
star
14

CacheWithNetworkDemo-Android

Dagger+Retrofit+Realm+Gson+Clean Architecture+MVP
Java
12
star
15

Contact-Form-7-Submission-limit

Contact form 7 submission limit
PHP
11
star
16

Angular4-word-cloud

Word cloud directive for Angular4
JavaScript
10
star
17

IBAN-Validator

Iban Validator (Swift, Kotlin, Java)
Swift
10
star
18

Simple-SQLite-Project-with-Android

Java
4
star
19

microservices-example

Python
4
star
20

discourse-cognito-auth

Ruby
3
star
21

alhazmy13

3
star
22

ResistorsOpenCV

A python project using OpenCV to identify and calculate resistors' values from a webcam feed.
Python
3
star
23

RadioButtonSwift3

Custom radio button for swift 3
Swift
3
star
24

MacScripts

A list of shell commands and tools specific to OS X.
Shell
3
star
25

ActivityCleanArchitecture_Template

Template for Android Studio to create an empty activity with Clean Architecture approach
FreeMarker
3
star
26

arcdps-squad-notes-plugin

A Plugin for arcdps, that tracks squad members and add notes next to each member.
C++
2
star
27

CleanSwift_Template

Clean Swift Xcode Template
Makefile
2
star
28

ghost-casper-rtl

CSS
2
star
29

Spara

Save/Restore Activity's member
Java
2
star
30

plex-tvtime-webhook

Sync Plex with TvTime using Plex WebHook.
TypeScript
2
star
31

RestAPI-using-Slim-Framework

PHP
1
star
32

UglyKotlinProject

Kotlin
1
star
33

DemoWatchOS

Demo project for communication between a watchOS and iOS app using WCSession
Swift
1
star
34

javamail-android

Automatically exported from code.google.com/p/javamail-android
Java
1
star
35

streamdeck-sensibo

Control your Sensibo air conditioners from stream deck
JavaScript
1
star