Giter VIP home page Giter VIP logo

check_wmi_plus_wmic_dropin's Introduction

wmic.py drop-in replacement for check_wmi_plus.pl

UPDATE: Please use aiowmi if you're searching for a more stable and daemonized wmic replacement: https://github.com/cesbit/aiowmi/tree/main/contrib/wmic_server

As some of you may have noticed, the good old wmic command line utility on Linux does no longer meet the required security level from MS.

This leads to annoying eventlog error messages:

The server-side authentication level policy does not allow the user DOMAIN\user from address 127.0.0.1 to activate DCOM server. 
Please raise the activation authentication level at least to RPC_C_AUTHN_LEVEL_PKT_INTEGRITY in client application.

See also:

Since client-less Windows monitoring using WMI/DCOM with Nagios or Icinga is quite cool, we decided to search for a solution for this problem.

As a result, here comes a little (kind of) drop-in replacement for the wmic binary, in order to get check_wmi_plus.pl working again. The script is based on the example wmiquery.py from Alberto Solino.

Please note: This is a first try, it hasn't been fully tested yet and there may be still some features missing.

UPDATE: As it seems there has been already an earlier attempt of a python wmic replacement by @dlundgren, which we weren't aware of. You can find it here: https://github.com/dlundgren/py-wmi-client

How to use

  • Download the wmic.py file
  • Place it into /bin/wmic.py or wherever your current wmic binary is deployed
  • Move your original wmic binary to a safe place, e.g. mv /bin/wmic /bin/wmic-orig
  • Create a symlink to the wmic.py: e.g. symlink -s /bin/wmic.py /bin/wmic
  • Happy dance!! ๐Ÿ˜Ž

Licensing

This software is provided under a slightly modified version of the Apache Software License. See the accompanying LICENSE file for more information.

This product includes software developed by SecureAuth Corporation (https://www.secureauth.com/).

Contribute

We love the Open Source community and are happy to review your pull requests.

check_wmi_plus_wmic_dropin's People

Contributors

wornet-aer avatar maldex avatar

Watchers

 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.