Coder Social home page Coder Social logo

lhaeger / check_dxml_drvstate Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 8.0 29 KB

Novell DirXML 1.1 and Micro Focus (formerly NetIQ) Identity Manager 2.x/3.x/4.x driver state detector plugin for Nagios and Icinga - basically a wrapper for "dxcmd -getstate".

Home Page: http://www.is4it.de/en/solution/identity-access-management/

Shell 100.00%
dirxml icinga icinga-plugin idm microfocus-identiy-manager nagios nagios-plugin netiq-identity-manager

check_dxml_drvstate's People

Contributors

lhaeger avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

check_dxml_drvstate's Issues

Running under NRPE (non-root) with defaults causes incorrect or unclear monitoring statuses

When run under nagios/nrpe (non-root) the default log file location is set to /var/log which is not generally writable by anyone but root. The script attempts to run the dxcmd command and log the output, then grab the return code for driver status. However, running as non-root, you get a generic RC=1 from the OS (not dxcmd) because the logfile couldn’t be written. The script misinterprets this as driver state “STARTING” (RC=1 from dxcmd) and gives it an “OK” status for monitoring. I worked around this by relocating the logfile via the --logfile parameter but the script should really be checking writability of the log file, and certainly not failing silently with an "OK" status.

Similar issue with the location of the dxcmd/ndsconfig commands, if it can’t find them via --bindir or PATH, it just syntax errors out on the dxcmd/ndsconfig calls as the variables are null (however this is enough to present an "UNKNOWN" status). A clear message that the commands could not be located should really be surfaced to the nrpe message.

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.