Hi,
i'm trying to get check_wmi_plus working with nagiosxi.
Running from the prompt we get the requested results , but when i run them as a service in nagiosxi i get (null) as result.
/usr/local/nagios/libexec/check_wmi_plus.pl -H serverX -u <user> -p <password> -m checkcpu -w 80 -c 90
OK (Sample Period 20 sec) - Average CPU Utilisation 0.28%|'Avg CPU Utilisation'=0.28%;80;90;
Has anyone ideas?
This is some info for our setup:
RHEL 5.7
/usr/local/bin/wmic --version = Version 4.0.0tp4-SVN-build-UNKNOWN
/usr/local/nagios/libexec/check_wmi_plus.pl --version = Version: 1.49
ll /usr/local/nagios/libexec/check_wmi*
-rwxr-xr-x 1 nagios nagios 2514 Mar 1 14:50 check_wmi_plus.conf
-rwxrwxr-x 1 nagios nagios 232495 Feb 10 17:27 check_wmi_plus.pl
I've already reinstall the vmi client as described in http://assets.nagios.com/downloads/nagi ... For_XI.pdf but with no result.
Hope someone can help me out.
Regards
Christian
check_wmi_plus nagiosxi informational (null)
Re: check_wmi_plus nagiosxi informational (null)
Do you have any special characters in the username or the password? Sometimes this can be an issue, especially if you have the "!" character.
Can you post the CPU Usage service definition, so we can review it? Replace your real username and password with "<username>" and "<password>" for privacy.
Can you post the CPU Usage service definition, so we can review it? Replace your real username and password with "<username>" and "<password>" for privacy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_wmi_plus nagiosxi informational (null)
username en password do not contain special charachters.
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-03-01 17:28:10
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name someserver.somedomain.nl
service_description CPU Usage
check_command check_xi_service_wmiplus!<username>!<password>!checkcpu!-w 80 -c 90!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
first_notification_delay 0
notification_options w,u,r,c,f,s
notifications_enabled 1
_xiwizard windowswmi
register 1
}
and the command def
define command {
command_name check_xi_service_wmiplus
command_line $USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$
}
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-03-01 17:28:10
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name someserver.somedomain.nl
service_description CPU Usage
check_command check_xi_service_wmiplus!<username>!<password>!checkcpu!-w 80 -c 90!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
first_notification_delay 0
notification_options w,u,r,c,f,s
notifications_enabled 1
_xiwizard windowswmi
register 1
}
and the command def
define command {
command_name check_xi_service_wmiplus
command_line $USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$
}
Last edited by CBoekhuis on Fri Mar 02, 2012 5:42 am, edited 1 time in total.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_wmi_plus nagiosxi informational (null)
In your setup us your username in the DOMAIN\Username fashion?
You may need to escape the \ and make it DOMAIN\\Username if that is the case
You may need to escape the \ and make it DOMAIN\\Username if that is the case
Re: check_wmi_plus nagiosxi informational (null)
The username password is like : <peter> <abc123> no domain annotation.
Re: check_wmi_plus nagiosxi informational (null)
Sounds like your running an older version of the wizard
Check if your version number is = 1.49:
cat check_wmi_plus.pl | grep VERSION=
my $VERSION="1.49";
If your running 1.42 or older, re-add the WMI wizard found here:
http://exchange.nagios.org/directory/Ad ... rd/details
nagios > admin > manage config wizards
Check if your version number is = 1.49:
cat check_wmi_plus.pl | grep VERSION=
my $VERSION="1.49";
If your running 1.42 or older, re-add the WMI wizard found here:
http://exchange.nagios.org/directory/Ad ... rd/details
nagios > admin > manage config wizards
Re: check_wmi_plus nagiosxi informational (null)
the versions are up to date as you can see in the first post
/usr/local/bin/wmic --version = Version 4.0.0tp4-SVN-build-UNKNOWN
/usr/local/nagios/libexec/check_wmi_plus.pl --version = Version: 1.49
/usr/local/bin/wmic --version = Version 4.0.0tp4-SVN-build-UNKNOWN
/usr/local/nagios/libexec/check_wmi_plus.pl --version = Version: 1.49
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_wmi_plus nagiosxi informational (null)
Looking back at your first post you don't appear to have a check_wmi_plus.ini file which should get installed with the wizard.CBoekhuis wrote: ll /usr/local/nagios/libexec/check_wmi*
-rwxr-xr-x 1 nagios nagios 2514 Mar 1 14:50 check_wmi_plus.conf
-rwxrwxr-x 1 nagios nagios 232495 Feb 10 17:27 check_wmi_plus.pl
Re: check_wmi_plus nagiosxi informational (null)
Go to: Core Config Manager->Monitoring->Services->Config name filter:<serverX>->CPU Usage->Modify and post a screenshot of this page.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_wmi_plus nagiosxi informational (null)
Hi Scott,
i've attacched the screenshot.
Regards
Christian
i've attacched the screenshot.
Regards
Christian
You do not have the required permissions to view the files attached to this post.