Giter Site home page Giter Site logo

wadama / nas_rep_status Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 400 KB

Bash script for monitoring status of Synology snapshot remote replication in PRTG

License: GNU General Public License v3.0

Shell 100.00%
synology bash-script synology-nas paessler prtg prtg-custom-sensor synology-snapshot-replication

nas_rep_status's Introduction

nas_rep_status

Bash script for PRTG by Paessler to monitoring status of remote snashot replication.

The sensor will show the status and time passed since the last replication. The data is collected from /var/log/synolog/synodr.log.

Sensor has to be created in PRTG on your Synology device.

Sensor tested on DS 918+ with DSM 7.2-64570.

This new version will also show the amount of replicated data.

Prerequisites

Be sure you have set correct logon values for SSH in your device.

I personally use "Login via private key" with an user especially for monitoring which also may use sudo for this script without a password.

Screenshot1

HINT: Since DSM 6.2.2 for SSH access the user has to be member of the local Administrators group on your Synology NAS.

Installing

Place the script to /var/prtg/scriptsxml on your Synology NAS and make it executable. (You may have to create this directory structure because PRTG expects the script here.)

wget https://raw.githubusercontent.com/WAdama/nas_rep_status/master/nas_lun_rep_status.sh
or
wget https://raw.githubusercontent.com/WAdama/nas_rep_status/master/nas_share_rep_status.sh
chmod +x nas_lun_rep_status.sh / chmod +x nas_share_rep_status.sh

On your PRTG system place the file prtg.standardlookups.nas.repstatus.ovl in INSTALLDIR\PRTG Network Monitor\lookups\custom and refresh it under System Administration / Administrative Tools

In PRTG create under your device which represents your Synology a SSH custom advanced senor.

Choose under "Script" the script you need, nas_lun_rep_status.sh is for LUNs and nas_share_rep_status.sh is for shares. No configuration is needed, the script gets your replications from your system.

This script will set default values for limits in Last run and Last successful replication channel:

Upper warning limit: 36 h (129600 s)

Upper error limit: 60 h (216000 s)

Screenshot1

Screenshot1

HINT: If you still want to use the former version, you will find it in branch v1

nas_rep_status's People

Contributors

wadama avatar

Watchers

 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.