Giter VIP home page Giter VIP logo

prtgzfssahealth's Introduction

prtgZFSSAhealth

PRTG Python Advanced script to get health status from ZFSSA using Rest service.

Dependencies

request (use pip and the requirements.txt file provided) and paepy (included in prtg).

It is a good idea to get pip for your prtg server, so use any of the following links in how to get pip:

Open powershell with privileges.

Start-Process powershell -Verb runAs

Then install the requirements.

& 'C:\Program Files (x86)\PRTG Network Monitor\Python34\Scripts\pip.exe' install -r requirements.txt

Usage

Copy your script to "\Custom Sensors\python" directory (example: C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\python).

Include your sensor as Python Script Advanced.

In Additional Parameters tab, use some pattern like the next examples:

for Standalone:

--hosts <zfssanode1> --username <username> --password <password>

for Cluster:

--hosts <zfssanode1,zfssanode2> --username <username> --password <password>

Notes

  • You need a ZFSSA user with minimum privileges to retrieve data from the system.
  • The Rest service must be enabled in the ZFSSA.
  • Be careful about the sensor frequency, the pools takes some time to return a response depending on you configuration.
  • You need Administrator privileges in the PRTG server to copy the scripts, install pip and the packages with pip.
  • Copy the file prtg.custom.yesno.problems.ovl to the custom lookups directory "\lookups\custom" (example: C:\Program Files (x86)\PRTG Network Monitor\lookups\custom), for more info check https://www.paessler.com/manuals/prtg/define_lookups.

Available status at the moment

  • System problems.
  • Pools status
  • Pools Usage Percent (Warning: 85, Error: 90 )

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.