Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Need at least 2 WMI samples% – How to resolve the error

by | May 16, 2021

Stuck with the error, Need at least 2 WMI samples%? We can help you.

Recently one of our customers came across this error after executing the checkcpu wmi check. This can be due to permission issues.

As part of our Server Management Services, we assist our customers with several Nagios queries.

Today, let us see how to resolve the WMI error.

 

Need at least 2 WMI samples%

A part of the Windows operating system, Windows Management Instrumentation (WMI) can provide management data and operational information about those systems.

We can use WMI to automate administrative tasks on remote Windows-based computers.

Nagios Core and Nagios XI are capable of monitoring Windows machines via WMI.

Before we go on to the resolution, let us see how the error, “Need at least 2 WMI samples%” looks like.

We see this error message after executing checkcpu wmi check repeatedly:

[root@server ~]# /opt/nagios/bin/plugins/check_wmi_plus.pl -H nagiosserver -u wmiagent -p xxxxx -m checkcpu
OK (Sample Period 5 sec) – Average CPU Utilisation Need at least 2 WMI samples%
[root@server ~]# /opt/nagios/bin/plugins/check_wmi_plus.pl -H nagiosserver -u wmiagent -p xxxxx -m checkcpu
OK (Sample Period 1 sec) – Average CPU Utilisation Need at least 2 WMI samples%
[root@server ~]# /opt/nagios/bin/plugins/check_wmi_plus.pl -H nagiosserver -u wmiagent -p xxxxx -m checkcpu
OK (Sample Period 1 sec) – Average CPU Utilisation Need at least 2 WMI samples%
[root@server ~]# /opt/nagios/bin/plugins/check_wmi_plus.pl -H nagiosserver -u wmiagent -p xxxxx -m checkcpu
OK (Sample Period 1 sec) – Average CPU Utilisation Need at least 2 WMI samples%
[root@server ~]# /opt/nagios/bin/plugins/check_wmi_plus.pl -H nagiosserver -u wmiagent -p xxxxx -m checkmem
OK – Physical Memory: Total: 3.999GB – Used: 2.19GB (55%) – Free: 1.809GB (45%)|’Physical Memory Used’=2351108096Bytes; ‘Physical Memory Utilisation’=55%;

The reason for the message is that the WMI user account does not have sufficient permissions.

Moving ahead, let us see how our Support Techs resolve this error.

In order to solve this, we add the user account to the Performance Log Users security group on the Windows computer.

We can perform this by following the steps given below:

  1. Initially, we open the Computer Management console in Administrative tools.
  2. Then we expand System Tools > Local Users and Groups > Groups.
  3. Finally, we edit the Performance Log Users security group and add the user account to this group.

[Couldn’t solve the error? We’d be happy to help you]

 

Conclusion

In short, this error occurs when the WMI user account does not have sufficient permissions. Today, we saw an effective way our Support Techs employ to fix the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *