GithubHelp home page GithubHelp logo

check_smhi's Introduction

check_smhi

A Nagios plugin that checks the SMHI (Sveriges Meteorologiska och Hydrologiska Institut) webpage for wheather alerts for a specfic region. If no alerts are issued for the specified region or district the plugin exits with a STATE_OK (0) exit code. If a class 1 warning (lowest on the scale) is issued for the region the plugin exits with a STATE_WARNING (1). For class 2 and class 3 wheater alerts the plugin exits with a STATE_CRITICAL (2) exit code.

Usage

-D
   District to check for wheather alerts.
   NOTE: Districts must be quoted, such as "Skåne län utom österlen"
-P
   Print a list with all the avaliable districts.
-h
   Print detailed help screen.
-V
   Print version information.

Note from above that regions/districts must be quoted as a string!

Contributions

All contriubtions are welcome! Fork the repository, make your changes, push it back up and send me a pull request. Once I've checked out the code and accepted it I will add you to the THANKS file and update the CHANGELOG.

Copyright

This plugin is released under the GNU GPL license, version 2. Note that this plugin may fail at any time! So DON'T rely on this plugin to protect life or property!

Note that I am NOT in any way affiliated with SMHI. I wrote this plugin on my own on and my own spare time. This plugin fetches it's data from SMHI so please use the plugin with respect for SMHI. For example use a check interval of something like 30 minutes instead of every single minute.

check_smhi's People

Contributors

jackbenny avatar

Watchers

 avatar  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.