Git Product home page Git Product logo

qnap_health's Introduction

About

Check NAS QNAP from Icinga2 or similar monitoring software.

Usage: Icinga2

Enable SNMP on QNAP NAS appliance and use this script with Icinga2.

Copy the command_qnap_health.conf into the configuration path of Icinga2.

Usage: Nagios

Enable SNMP on QNAP NAS appliance, community name "public".

Put the script to: "/usr/local/nagios/libexec/qnap_health" and don't forget to "chmod 0755 /usr/local/nagios/libexec/qnap_health".

Add this at the end of your "/usr/local/nagios/etc/objects/commands.cfg":

##########
## QNAP	##
##########
define command{
	command_name 	qnap_health
	command_line 	$USER1$/qnap_health -H $HOSTADDRESS$ -C public -p $ARG1$ -w $ARG2$ -c $ARG3$
}

Contributing

Please feel free to fork and collaborate on this little but useful project.

Parts of script to improve

  • Power unit check - (let me know if on your device work)
  • Rewrite some code for better readability

Test

This script was tested with:

  • QNAP model TS-853U-RP (with 4 disk)
  • QNAP model TS-859U+ (by Omar S. Ramirez thanks for your help)
  • QNAP model TS-212 and TS-231P (by github user mir07 Michael Rasmussen)
  • QNAP Model TS-EC1280U, Firmware 4.2.2 (Thanks to AndresCidoncha)
  • QNAP Model TS-459 Pro+, Firmware 4.2.6, Max HD number 4, No. Volume 1
  • QNAP Model TS-1263U-RP, Firmware 4.3.3, Max HD number 12, No. Volume 1
  • QNAP Model TS-EC1680U, Firmware 4.3.6, Max HD number 16
  • QNAP Model TS-EC2480U, Firmware 4.3.6, Max HD number 24
  • QNAP Model TS-431P2, Firmware 4.4.1

qnap_health's People

Contributors

gamato avatar nikband avatar mikesch-mp avatar waja avatar hgeijteman avatar claneys avatar widhalmt 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.