Giter VIP home page Giter VIP logo

nagios-check-supervisord's People

Contributors

peternewman avatar prupert avatar vint21h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nagios-check-supervisord's Issues

Allow critical for connection refused

Hi,

Although we can patch it, we would love an option to return state critical when the connection is refused or timed out:

check_supervisord.py -s 127.0.0.1 -p 9001
ERROR: Server communication problem. [Errno 111] Connection refused
echo $?
3

Would be great if it was 2 instead of 3.

Unknown is not bad enough for us, on critical we take special actions, that is why. We saw other nagios checks supplying similar functionality trough a parameter.

support for --starting-state-exit-code

If a program is "starting", currently the script will exit with a WARNING exit code. In most cases it may be desirable to accept a "starting" program as normal behaviour. Example:

WARNING: something curiously with 'example-api-client_01': (STARTING), 'example-api-client_00': OK, 'example-api-default_00': OK, 'example-api-default_01': OK, 'example-api-default_02': OK, 'example-api-high_00': OK, 'example-api-high_01': OK

Would it be possible to add an option for --starting-state-exit-code, in a similar fashion to --stopped-state-exit-code?

Option for exit status when no programs found

If no supervisord programs are defined, currently the script will exit with the UNKOWN exit code. I believe it may be useful to set the desired --no-progams-defined-status via an argument. In some cases it may be desirable to raise a WARNING or CRITICAL, in other cases it may be expected and thus should result in OK state.

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.