当前位置:网站首页>Observation configuring wmic
Observation configuring wmic
2022-06-25 06:14:00 【allway2】
WMI Poller
To install Windows Get advanced statistics for your device , You need to install WMI Console Application .
Optional features
WMI There's no need to poll Windows equipment , But it helps to collect information about Exchange and MSSQL Some additional data for .
install WMIC
In the use of WMI Before the poller , You need to WMIC Install to your Observium On a host .
WMI The source code is fairly old , Many packages can lead to Python There is a problem with the dependency , So using precompiled static binaries is the easiest . Download the following file , Unzip and wmic Binary files are put into /usr/bin
wget https://www.observium.org/files/wmic_1.3.16_static_64bit.tar.gz
tar zxvf wmic_1.3.16_static_64bit.tar.gz
mv wmic winexe /usr/bin
You can rtunning Test whether it can execute on your system wmic --version:
[email protected]:~# ./wmic --version
Version 4.0.0tp4-SVN-build-UNKNOWN
[email protected]:~#
To configure WMI Security to allow users to poll WMI
There are several ways to solve this problem :
- Create a domain user and place them where you want to use WMI In the administrators group of all servers polled
- Use the domain administrator account
- Create a WMI Private domain user with read permission
choice (1) or (2) It's a test WMI The first choice of , Because it's the fastest . By default ,WMI Security allows any administrator of the system to control . If you are a domain administrator , You can test to ensure that WMIC Work normally immediately after installation ( The explanation is as follows ).
On the other hand , choice (3) Is a safer but more complex option . It is recommended that you take this route to reduce security risks .
Set up WMI User access rights
- choice Start > function .
- stay “ function ” Dialog box “ open ” Type... In the field wmimgmt.msc .
- single click determine To display Windows Manage infrastructure (WMI) Control panel .
- stay WMI In the left pane of the control panel , highlight WMI control ( Local ) entry , Right click , And then choose “ attribute ” Menu options . This will show WMI Control ( Local ) Properties dialog box .
- stay WMI Control ( Local ) Select... In the properties dialog box Security tab .
- stay Security In the namespace tree within the tab , an Root Folder . This action lists the available WMI The name space .
- single click CIMV2 Namespace to highlight it .
- single click Security To display ROOT\CIMV2 Security dialog for .
- single click “ROOT\CIMV2 The security of ” In the dialog box “ add to ” To display “ Select users or groups ” Dialog box .
- Add a domain user account that will be used as your proxy data collection user account . This should be a domain account ( Not a local computer account ), But it does not need to be an account with administrative access .
- single click “ determine ” close “ Select users or groups ” Dialog box and return to “ROOT\CIMV2 The security of ” Dialog box . The user account you selected should now be listed at the top of the dialog In the name list .
- Select the newly added user ( If not already selected ) And enable the following permissions :
- Enable account
Remote enable .
If the permission has not been checked , Please click on the “ allow ” Box to enable this permission . You should have selected enable account permissions , But you need choice Remote enable jurisdiction .13. single click “ determine ” close “ROOT\CIMV2 The security of ” Dialog box .
It is now time to properly set permissions for the proxy data collection user account .
Try querying on one of your servers
wmic --domain=DOMAIN --user=USER --password=PASSWORD //SERVER.DOMAIN.COM "SELECT * FROM Win32_ComputerSystem"
For command line only : Please note that , If your password is included in Ubuntu Any character used on the command line , It must be escaped ( namely , If your password is Bob!1000 You need to enter Bob\!1000).
Output example
When WMIC Properly installed and WMI When the user has the correct permissions , You should see the following valid output :
$ /usr/bin/wmic --user='user' --password='password' --workgroup='OBSERVIUM' --delimiter=## --namespace='root\CIMV2' //win.server "SELECT Name FROM Win32_ComputerSystem"
CLASS: Win32_ComputerSystem
Name
WIN
Access denied
If WMI The user does not have permission to read WMI Monitoring parameters , You will see the following error :
$ /usr/bin/wmic --user='user' --password='password' --workgroup='OBSERVIUM' --delimiter=## --namespace='root\CIMV2' //win.server "SELECT Name FROM Win32_ComputerSystem"
[librpc/rpc/dcerpc_util.c:1290:dcerpc_pipe_auth_recv()] Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-0020af6e7c57 - NT_STATUS_NET_WRITE_FAULT
[librpc/rpc/dcerpc_connect.c:790:dcerpc_pipe_connect_b_recv()] failed NT status (c0000022) in dcerpc_pipe_connect_b_recv
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
Check the user name 、 password 、 Domain parameters and WMI User permissions !
Configure observation
Global configuration
nano /opt/observium/config.php
// Enable default WMI Paramaters
$config['wmi']['domain'] = "domainname"; // NetBIOS Name Shorthand Domain/Workgroup (ie. notdomain.local.com)
$config['wmi']['user'] = "username";
$config['wmi']['pass'] = "passw0rd";
$config['poller_modules']['wmi'] = 1;
Device configuration
If you need to select a specific WMI The module polls or passes a specific user to the device / password , You can change it on the device edit page .
边栏推荐
- C simple operation mongodb
- Getting started with mongodb
- Noi Mathematics: Dirichlet convolution
- Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response
- [Suanli network] problems and challenges faced by the development of Suanli network
- Netstat command – displays network status
- Pre knowledge of asynchronous operation
- What are the reasons why most webmasters choose Hong Kong site group servers?
- Vscode voice notes to enrich information (medium)
- How to open an account online? Is it safe to open an account online?
猜你喜欢

MySQL tuning --01--- optimization steps and system performance parameters

Solve some prompt codes that pychar cannot recognize selenium

Laravel8 fill data

ctfshow-misc
The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis
Linus' speech recordings, which were lost in 1994, were made public
SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version
![[open source sharing] deeply study KVM, CEPH, fuse features, including open source projects, code cases, articles, videos, architecture brain maps, etc](/img/9d/9bcf52f521e92cf97eb1d545931c68.jpg)
[open source sharing] deeply study KVM, CEPH, fuse features, including open source projects, code cases, articles, videos, architecture brain maps, etc
Trial version of routing history and routing back and history of SAP ui5

Es11 new methods: dynamic import(), bigint, globalthis, optional chain, and null value merging operator
随机推荐
Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications
Analysis report on demand scale and Supply Prospect of global and Chinese thermal insulation materials market during the 14th Five Year Plan period 2022-2028
Solve some prompt codes that pychar cannot recognize selenium
D compile time reflection
C switch nested syntax
Vscode voice notes to enrich information (medium)
Invalid bound statement (not found)
Summary of 6 common methods of visual deep learning model architecture
The simplest way to tell you is to hash and not hash
PIP connects to Tsinghua source by default
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
Processes and threads - concepts and process scheduling
SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
ctfshow-misc
Understanding the dynamic mode of mongodb document
[hand torn STL] Stack & queue
Leetcode topic [array] -36- effective Sudoku
[data visualization application] draw spatial map (with R language code)
Copying DNA
Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones