GithubHelp home page GithubHelp logo

songyuqing-cloud / nagioseasier-module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from github/nagioseasier-module

0.0 0.0 0.0 186 KB

Make nagios easier to use, because you deserve it.

License: MIT License

nagioseasier-module's Introduction

Nagios Easier

Once upon a time, some pretty all right folks wrote a tool nagiosharder. It allowed you to interact with Nagios without having to load the web interface. It was pretty all right too, but due to the nature of screen scraping, it tended to break whenever Nagios versions changed (that's no fun!) and meant more screen scraping had to be done for all sorts of nested tables.

Nagios Easier attempts to provide a similarly useful interface, but using the new Query Handler support in Nagios 4. This allows us to interact with Nagios using a Unix domain socket. Since this API is standardized, it's a lot less brittle than worrying about screen scraping 5x nested tables.

Installation

Dependencies

  • nagios
  • libltdl-dev

Building

Then you should just be able to build this with:

make

And then you'll get a nagioseasier.so file. You can put it wherever, really, but I recommend /usr/lib/nagioseasier/nagioseasier.so.

From there you can load it in your Nagios configuration as an Event Broker Module with a config line like so:

broker_module=/usr/lib/nagioseasier/nagioseasier.so

Using

Enabling this module in Nagios adds a new nagioseasier query handler to the Nagios query handler socket. This allows you to interact with Nagios for common administrative tasks in a convenient way. Some examples of what you can do with nagioseasier:

#nagioseasier status app1
#nagioseasier status app1/nginx

#nagioseasier downtime app1/nginx 15 @wfarr testing changes

#nagioseasier disable_notifications busted1

#nagioseasier problems puppet-environment
#nagioseasier problems puppet-environment unknown

Commands

Available commands:
  status <host|service>                          Display the status of a host or service
  check <host|service>                           Schedule a re-check of the host or service

  enable_notifications <host|service>            Enable notifications for a host or host-service
  disable_notifications <host|service>           Disable notifications for a host or host-service

  acknowledge <host|service> [<comment>]         Acknowledge a host/service problem (opt. comment)
  unacknowledge <host|service>                   Unacknowledge a host/service problem

  downtime <host|service> [<minutes> <comment>]  Schedule downtime for a host/service (opt. num minutes, comment)

  problems [<svcgroup|hstgroup> <state>]         Display all services in a non-OK state

nagioseasier-module's People

Contributors

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