Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:documentation:03_monitoring:03_remote_monitoring [2021/06/21 15:04]
jimmy.olano [Pandora FMS SNMP Browser] Enlaces externos interwiki.
en:documentation:03_monitoring:03_remote_monitoring [2021/09/16 09:17] (current)
Line 508: Line 508:
  
 ==== Windows remote monitoring with WMI ==== ==== Windows remote monitoring with WMI ====
-WMI is a Microsoft system for obtaining remote information from computers running Windows OS. It is available from Windows XP version to the most current versions. WMI allows you to get all kinds of information from the OS, applications and even hardware. WMI queries can be made locally (in fact, Pandora FMS agent does it internally, calling the API of the operating system and asking the WMI subsystem) or remotely. In some systems, remote access to WMI is not enabled and must be enabled in order to be consulted from the outside. 
  
-Pandora FMS allows remote monitoring of Windows equipment through WMI queriesTo do this, it is be necessary to enable the // wmiserver// component in the Pandora FMS server configuration file.+[[https://pandorafms.com/blog/what-is-wmi/|WMI]] is a Microsoft system for obtaining remote information from computers running Windows OS. It is available from Windows XP version to the most current versions. WMI allows you to get all kinds of information from the OS, applications and even hardwareWMI queries can be made locally (in factPandora FMS agent does it internally, calling the API of the operating system and asking the WMI subsystem) or remotely. In some systems, remote access to WMI is not enabled and must be enabled in order to be consulted from the outside.
  
 +Pandora FMS allows remote monitoring of Windows equipment through WMI queries. To do this, it is be necessary to enable the // wmiserver// component in the Pandora FMS server configuration file.
 <code> <code>
 +
  # wmiserver : '1' or '0'. Set to '1' to activate the WMI server in this setup.  # wmiserver : '1' or '0'. Set to '1' to activate the WMI server in this setup.
  # DISABLED BY DEFAULT  # DISABLED BY DEFAULT
    wmiserver 1    wmiserver 1
 +
 </code> </code>
  
Line 522: Line 524:
 To start monitoring through WMI, first create the corresponding agent, and once ready, click on the top flap of the modules (**Modules**). Then, select the option to create a new WMI module and press the **Create** button.: To start monitoring through WMI, first create the corresponding agent, and once ready, click on the top flap of the modules (**Modules**). Then, select the option to create a new WMI module and press the **Create** button.:
  
-{{ wiki:Feo.jpg?400 }}+{{  :wiki:feo.jpg?400  |feo.jpg}}
  
 Some fields are WMI specific and require a short explanation: Some fields are WMI specific and require a short explanation:
  
-{{ wiki:Campos.jpg?800 }}+{{  :wiki:campos.jpg?800  |campos.jpg}}
  
   * **Namespace**: Space for WMI names. This field is different from 'empty string' by default and depends on the information source of the application intended to monitor.   * **Namespace**: Space for WMI names. This field is different from 'empty string' by default and depends on the information source of the application intended to monitor.
- 
   * **Username**: Name of the Administrator or any other user which has been granted the privileges to remotely execute WMI queries.   * **Username**: Name of the Administrator or any other user which has been granted the privileges to remotely execute WMI queries.
- 
   * **Password**: Password for the Administrator or any other user.   * **Password**: Password for the Administrator or any other user.
- 
   * **Key string**: Optional, field to compare with the string returned by the query, and if the module exists, it returns 1 or 0, instead of the string itself.   * **Key string**: Optional, field to compare with the string returned by the query, and if the module exists, it returns 1 or 0, instead of the string itself.
- 
   * **Field number**: The number of the field returned starting by 0 (WMI queries can return more than one field). Most of the times it is 0 or 1.   * **Field number**: The number of the field returned starting by 0 (WMI queries can return more than one field). Most of the times it is 0 or 1.
-  * **WMI Query**: WMI query, similar to a SQL sentence.  +  * **WMI Query**: WMI query, similar to a SQL sentence.
 WMI Query examples: WMI Query examples:
 +<code>
  
-<code> 
  SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0"  SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0"
  SELECT SerialNumber FROM Win32_OperatingSystem  SELECT SerialNumber FROM Win32_OperatingSystem
  SELECT AvailableBytes from Win32_PerfRawData_PerfOS_Memory  SELECT AvailableBytes from Win32_PerfRawData_PerfOS_Memory
  SELECT DiskWriteBytesPersec from Win32_PerfRawData_PerfDisk_PhysicalDisk WHERE name = "_Total"  SELECT DiskWriteBytesPersec from Win32_PerfRawData_PerfDisk_PhysicalDisk WHERE name = "_Total"
 +
 </code> </code>
  
 If you do not know the exact parameters, you may also select one of the preinstalled ones included in the Pandora FMS Database. Therefore, select the WMI module component: If you do not know the exact parameters, you may also select one of the preinstalled ones included in the Pandora FMS Database. Therefore, select the WMI module component:
  
-{{ wiki:Galleta.jpg?600 }}+{{  :wiki:galleta.jpg?600  |galleta.jpg}}
  
 Once you have done that, select a WMI check from one of the available ones: Once you have done that, select a WMI check from one of the available ones:
  
-{{ wiki:Galletita.jpg?200 }}+{{  :wiki:galletita.jpg?200  |galletita.jpg}}
  
 The required information is filled out automatically, except for the user and its password. **Please remember that only users with administration permissions and their passwords are valid here. Otherwise, the module cannot return any value**: The required information is filled out automatically, except for the user and its password. **Please remember that only users with administration permissions and their passwords are valid here. Otherwise, the module cannot return any value**:
  
-{{ wiki:otro.jpg?800 }}+{{  :wiki:otro.jpg?800  |otro.jpg}}
  
 The Pandora FMS Enterprise version owns more than 400 WMI Remote Monitoring Modules for Windows. They are available for the following devices and components: The Pandora FMS Enterprise version owns more than 400 WMI Remote Monitoring Modules for Windows. They are available for the following devices and components:
Line 571: Line 569:
   * LDAP   * LDAP
   * Microsoft Exchange   * Microsoft Exchange
 +
  
 === WMI Wizard === === WMI Wizard ===