×


Install WMI Client in Nagios XI Server for Windows monitoring

Nagios XI supports WMI monitoring, which provides admins with a simple method of monitoring their Windows servers and workstations without having to install or configure agents. 

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Nagios queries.

In this context, we shall look into how to install WMI client on Nagios XI server.


Benefits of WMI monitoring with Nagios:

  • Increased server, services, and application availability.
  • Fast detection of server and operating system failures.
  • Fast detection of service and application failures.
  • Agentless monitoring.


How to Install WMI Client in Nagios ?

By default, the Nagios XI 2012 and newer versions have the WMI client in them.

However, we may come across an installation error when we set up the WMI wizard in Nagios XI. We will share an easy method to tackle such errors.


Follow the steps outlined below to Install WMI Client:

  • Initially, we establish a terminal session to Nagios XI server as the root user.
  • To execute the below script we need to install both cpan and gcc.
  • We execute the WMI client setup script by issuing the following commands at the shell prompt: /usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh
  • However, this directory may not have the install.sh file. 
  • For that, we have to update the WMI wizard from the manage wizards page or install the zip manually on that page.


To install WMI, Note that the install.sh script will automatically download and install the static WMI client binary in:

/usr/bin/wmic

It is also possible to install WMI from the atomic repository.

To do so, initially, we add the repository:

# wget -q -O – http://www.atomicorp.com/installers/atomic | sh

Then we execute "yum install wmic" to install the client on a CentOS machine.

In addition, the Nagios XI server will have the DateTime Perl package. This will ensure that the Windows WMI Monitoring Wizard can operate properly.


Monitoring Windows Machines Using WMI

Once we have the WMI client on the Nagios XI server, we can install the Windows WMI monitoring wizard on Nagios.


How to resolve common error encountered while Installing WMI Client in Nagios ?

It is quite possible for us to stumble on an error.

At times, the status information on the Service Detail page will be empty (null) or will state "Install wmic".

The major cause for this error can be an improper installation of the WMIC plugins.

So, we try to install WMIC using install.sh script. If it fails, we try to install it from the atomic repository.


[Need urgent help with the WMI Client installation in Nagios? We'd be happy to assist. ]


Conclusion

This article covers how to perform the installation of the WMI Client in Nagios. Nagios provides complete monitoring of Windows operating systems via WMI – including operating system metrics, service state, process state, file system usage, and more. 

Windows Management Instrumentation (WMI) is a technology that allows for agentless monitoring of Windows servers and workstations.

Agentless technologies like WMI and SNMP allow IT administrator to deploy monitoring solutions without having to install agent software on each monitored system.