Coder Social home page Coder Social logo

check_oscam's Introduction

check_oscam

Icinga / Nagios Plugin for checking Entitlement of an paytv subscription on a running oscam server.

  • check entitlement
  • select reader
  • select subscription

Version

1.2

Release notes

1.2 Forked from https://github.com/DazClimax

  • Added support for SSL and non-standard port
  • removed requirement for Scalar::MoreUtils, because it is not available as a debian package

1.1 Small bugfix wrong character for id parameter, function help print s instead of i. Reduce date function and add version to script.

Installation

Copy to your plugin folder

$ git clone https://github.com/tobox/check_oscam.git

Define plugin in icinga

object CheckCommand "COMANDNAME" {
           import "plugin-check-command"

           command = [ PluginDir + "/check_oscam" ]

           arguments = {
                   "-H" = "$oscam_hostname$"
                   "-P" = "$oscam_webif_port$"
                   "-s" = "$oscam_webif_use_ssl$"
                   "-u" = "$oscam_user$"
                   "-p" = "$oscam_password$"
                   "-r" = "$oscam_reader$"
                   "-i" = "$oscam_subscription$"
                   "-w" = "$oscam_warningtime$"
                   "-c" = "$oscam_criticaltime$"
           }

           vars.oscam_hostname = "$address$"
}

Use plugin

object Service "Entitlement NAME" {
         import "generic-service"
         host_name = "HOSTNAME"
         check_command = "COMANDNAME"
         vars.sla = "24x7"
 
          vars += {
         oscam_webif_port = "8888"
         oscam_webif_use_ssl = "0"
         oscam_user = "USERNAME"
         oscam_password = "PASSWORD"
         oscam_reader = "READERNAME"
         oscam_subscription = "SUBSCRIPTIONID"
         }
 }

License

GPLv3 [tobox]: https://github.com/tobox [DazClimax]: https://github.com/DazClimax [git-repo-url]: https://github.com/DazClimax/check_oscam.git

check_oscam's People

Contributors

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