Can not Monitor via WMI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Can not Monitor via WMI

Post by mdsupersonic »

Hi Nagios support team

I'm trying to connect to my windows server 2012 R2 thorough Nagios WMI but I get an error message. I've followed the steps in tutorial in Nagios XI administrative guide 2 times but still the problem exist.

I've attached a capture from the error message to this topic.

any help would be appreciated.

majid
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Can not Monitor via WMI

Post by rkennedy »

What version of Nagios XI are you running? Additionally, what version is the plugin and wizard?
Former Nagios Employee
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Can not Monitor via WMI

Post by mdsupersonic »

I've downloaded the lastet Nagios XI from the wbsite which has the wizard inside it.
I've used the link below to download the plugins for Nagios server
wget http://assets.nagios.com/downloads/nagi ... install.py

I think these are the latest versions.
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Can not Monitor via WMI

Post by mdsupersonic »

wmic_1.3.13_static_64bit.tar.gz

WMI Wizard: 2.04

and the latest version of Nagios XI
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can not Monitor via WMI

Post by tgriep »

The Windows WMI wizard should already be installed on the Nagios XI system so it should of worked for you by default.
Can you login to the XI server, run the following and post the output?

Code: Select all

grep VERSION /usr/local/nagios/libexec/check_wmi_plus.pl
wmic -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Can not Monitor via WMI

Post by mdsupersonic »

First Command
grep VERSION /usr/local/nagios/libexec/check_wmi_plus.pl
our $VERSION=1.60;
our $requires_PRO_VERSION=1.26;
'DateTime::VERSION',0.66,
'Getopt::Long::VERSION',2.38,
'Scalar::Util::VERSION',1.22,
'Number::Format::VERSION',1.73,
'Data::Dumper::VERSION',2.125,
'Config::IniFiles::VERSION',2.58,
'Storable::VERSION',2.22
print "Command Line (v$VERSION): $0 $command_line\n";
print "Net::DNS - $Net::DNS::VERSION\n";
my $tarfile="check_wmi_plus.v$VERSION.tar.gz";
print README "check_wmi_plus v$VERSION\nFor installation details and more downloads see http://www.edcint.co.nz/checkwmiplus\nThe --help output follows - \n\n";
print "Version: $VERSION\n";
printf("%-19s %19s %7s %-10s\n",'MODULE_NAME','INSTALLED VERSION','STATUS','DESIRED_VERSION');
$module_name=~s/::VERSION$//;
if ($VERSION < $requires_version) {
Typical Usage: -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-b BYTEFACTOR] [-w WARN] [-c CRIT] [-a ARG1 ] [-o ARG2] [-3 ARG3] [-4 ARG4] [-A AUTHFILE] [-t TIMEOUT] [-y DELAY] [--namespace WMINAMESPACE] [--extrawmicarg EXTRAWMICARG] [--nodatamode] [--nodataexit NODATAEXIT] [--nodatastring NODATASTRING] [-d] [-z] [--inifile=INIFILE] [--inidir=INIDIR] [--inihelp] [--nokeepstate] [--keepexpiry KEXPIRY] [--keepid KID] [--joinexpiry JEXPIRY] [-v OSVERSION] [--help] [--itexthelp] [--forcewmiccommand] [-icollectusage] [--ishowusage] [--logswitch] [--logkeep] [--logsuffix SUFFIX] [--logshow] [--variablesdisabled] [--forceiniopen] [--forcetruncateoutput LEN]
check_wmi_plus.pl -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-b BYTEFACTOR] [-w WARN] [-c CRIT] [-a ARG1 ] [-o ARG2] [-3 ARG3] [-4 ARG4] [-A AUTHFILE] [-t TIMEOUT] [-y DELAY] [--namespace WMINAMESPACE] [--extrawmicarg EXTRAWMICARG] [--nodatamode] [--nodataexit NODATAEXIT] [--nodatastring NODATASTRING] [-d] [-z] [--inifile=INIFILE] [--inidir=INIDIR] [--inihelp] [--nokeepstate] [--keepexpiry KEXPIRY] [--keepid KID] [--joinexpiry JEXPIRY] [-v OSVERSION] [--help] [--itexthelp] [--forcewmiccommand] [-icollectusage] [--ishowusage] [--logswitch] [--logkeep] [--logsuffix SUFFIX] [--logshow] [--variablesdisabled] [--forceiniopen] [--forcetruncateoutput LEN]
if ($VERSION < $requires_version) {

Second Command:
wmic -V
Version 4.0.0tp4-SVN-build-UNKNOWN
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can not Monitor via WMI

Post by tgriep »

Lets run a check_wmi_plus from the command line and see if works for you.

Run this command as root on your Nagios server and post the output.
/usr/local/nagios/libexec/check_wmi_plus.pl -H xxx.xxx.xxx.xxx -u username -p password -m checkcpu

Replace the xxx.xxx.xxx.xxx with the IP address of your remote server and also the username and password.
If you are using a domain username type in the username as domain/username.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked