Giter Club home page Giter Club logo

plugin_wmi's Introduction

Cacti WMI Plugin for Windows Devices

The WMI Plugin provides data collection services for devices that support the WMI protocol. It operates asyncrhonously to the Cacti data collection and stores the resulting information into cache tables. These cache tables can then be used to generate graphs, thresholds and alerts. It relies on the 'wmic' command in Linux, and WMI services via Microsofts COM protocol from Windows Cacti servers.

WARNING: Development in progress

This plugin is NOT fully functional. It should not be used on production systems. Use at your own risk!

Installation

To install the plugin, simply copy the plugin_wmi directory to Cacti's plugins directory and rename it to simply 'wmi'. Once this is complete, goto Cacti's Plugin Management section, and Install and Enable the plugin. Once this is complete, you can start to define WMI queries for your Windows and other Device Templates that support WMI.

Make certain that you install the wmic binary if you are planning on running on Linux.

Usage

The WMI plugin allows you to define multiple Queries, and then associate those queries with Cacti Device Templates. Therefore, if you have a generic Windows Device Template, you can add those queries that are significant for a general Windows device. If you have a Microsoft SQL Server Device Template, you can add WMI Queries that are specific to Windows SQL Server there.

There is presently only one setting support in the WMI plugin, and that is to Autocreate the actual WMI polling at device creation or update based upon the WMI Queries defined as a part of the Device Template. This setting can be found under Settings -> Device Defaults.

Authors

The wmi plugin has been was developed several years ago but never actually finished. This release formalizes it's behavior and provides a new level of scalability to Cacti when gathering data from WMI compatible device's.

ChangeLog

--- 1.1 ---

  • issue#1: PHP and SQL backtrace when deleting stored WMI queries or credentials

  • issue#2: Issues with passwords containing unescaped special chars

--- 1.0 ---

  • feature: Initial Support for Cacti 1.0

Copyright (c) 2004-2024 - The Cacti Group, Inc.

plugin_wmi's People

Contributors

cigamit avatar flying-bigbird avatar linegod avatar navessan avatar netniv avatar ronytomen avatar thewitness avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin_wmi's Issues

Issues with passwords containing unescaped special chars

Dears,

latest WMI plugin installed in Cacti 1.2.5. Works smoothly except issues highlighted in another thread and when using passwords in a WMI query that contains a dollar character ($). Utilizing such password, regardless if stored in "WMI Queries | Authentication" or used in "WMI Query Tool", leads to an authentication failure against the given host. Executing exactly the same query with identical parameters from a command line (WMIC4.0.0TP4) runs smoothly so that the wmic binary can be excluded as root cause.

PHP: 7.2.19-0ubuntu0.18.04.1

Any help on this appreciated!

Thanks,
Elix

PHP and SQL backtrace when deleting stored WMI queries or credentials

Dears,

I've installed the latest version of the WMI plugin in Cacti 1.2.4 and today again after upgrading to 1.2.5. Two issues: It's not possible to delete saved WMI queries and it's not possible to delete stored credentials. In both cases, the confirmation popup appears but upon confirmation button, nothing happens. I can find some according entries in clog.

Attempt to delete a query:

2019/07/18 17:20:36 - CMDPHP PHP ERROR Backtrace: (/plugins/wmi/wmi_queries.php[97]:actions_queries(), /plugins/wmi/wmi_queries.php[147]:each(), CactiErrorHandler())
2019/07/18 17:20:36 - ERROR PHP DEPRECATED in Plugin 'wmi': The each() function is deprecated. This message will be suppressed on further calls in file: /xxxxxxxxxx/plugins/wmi/wmi_queries.php on line: 147

Attempt to delete credentials:

2019/07/18 17:24:55 - CMDPHP PHP ERROR Backtrace: (/plugins/wmi/wmi_accounts.php[76]:actions_accounts(), /plugins/wmi/wmi_accounts.php[122]:each(), CactiErrorHandler())
2019/07/18 17:24:55 - ERROR PHP DEPRECATED in Plugin 'wmi': The each() function is deprecated. This message will be suppressed on further calls in file: /data/apache2_wwwroot/plugins/wmi/wmi_accounts.php on line: 122
2019/07/18 17:24:47 - CMDPHP SQL Backtrace: (/plugins/wmi/wmi_accounts.php[90]:show_accounts(), /plugins/wmi/wmi_accounts.php[379]:db_fetch_cell_prepared(), /lib/database.php[378]:db_execute_prepared())
2019/07/18 17:24:47 - CMDPHP ERROR: A DB Cell Failed!, Error: Unknown column 'wmi_account' in 'field list'

  • DB: 5.7.26-0ubuntu0.18.04.1
  • PHP: 7.2.19-0ubuntu0.18.04.1

Appreciate any help on this!

BR,
Elix

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.