Page 1 of 1
WMI error for only one server
Posted: Mon Jan 22, 2018 2:56 pm
by bosecorp
I'm getting WMI errors on only one server.
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
COMMAND DATA: a:4:{s:9:"host_name";s:23:"usvaplmcadwqa4.bose.com";s:12:"service_name";s:19:"Drive C: Disk Usage";s:3:"cmd";i:54;s:10:"start_time";i:1516645706;}
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/nagiosxi/html/includes/utils-auditlog.inc.php on line 95
CORE CMD: SCHEDULE_FORCED_SVC_CHECK;usvaplmcadwqa4.bose.com;Drive C: Disk Usage;1516645706
When we run the command manually it works PFA.
Re: WMI error for only one server
Posted: Mon Jan 22, 2018 5:34 pm
by npolovenko
@bosecorp, Please check your timezone settings in etc/php.ini
Here's what I have:
Code: Select all
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = US/Central
Also, can you show us the service check output from the Web Interface/Service overview?
Re: WMI error for only one server
Posted: Tue Jan 23, 2018 11:10 am
by bosecorp
I just made that change. Now i do not see that error in the log but still the service check fails.
After performing force check i see below logs
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
COMMAND DATA: a:4:{s:9:"host_name";s:23:"usvaplmcadwqa4.bose.com";s:12:"service_name";s:19:"Drive C: Disk Usage";s:3:"cmd";i:54;s:10:"start_time";i:1516723702;}
CORE CMD: SCHEDULE_FORCED_SVC_CHECK;usvaplmcadwqa4.bose.com;Drive C: Disk Usage;1516723702
PFA
Re: WMI error for only one server
Posted: Tue Jan 23, 2018 1:07 pm
by npolovenko
@bosecorp, Looks like someone who had a similar problem has found a solution:
https://support.nagios.com/forum/viewto ... 11&p=18641
Otherwise, please include the command definition and the service check definition from this server, and also from one of the servers where this service check works as it should so that we could compare.
Re: WMI error for only one server
Posted: Wed Jan 24, 2018 2:05 pm
by bosecorp
Attached is the .cfg for the service check. Same check works fine with other hosts.
Already tried adding the nagios user to administrator group, WMI checks are allowed on firewall.
Restarted Windows WMI service, but no luck.
Below is the logs i get when i try to do a force check
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
PROCESSED 0 COMMANDS
COMMAND DATA: a:4:{s:9:"host_name";s:23:"usvaplmcadwqa4.bose.com";s:12:"service_name";s:9:"CPU Usage";s:3:"cmd";i:54;s:10:"start_time";i:1516820705;}
CORE CMD: SCHEDULE_FORCED_SVC_CHECK;usvaplmcadwqa4.bose.com;CPU Usage;1516820705
COMMAND DATA: a:4:{s:9:"host_name";s:23:"usvaplmcadwqa4.bose.com";s:12:"service_name";s:12:"Memory Usage";s:3:"cmd";i:54;s:10:"start_time";i:1516820712;}
CORE CMD: SCHEDULE_FORCED_SVC_CHECK;usvaplmcadwqa4.bose.com;Memory Usage;1516820712
UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.
[librpc/rpc/dcerpc_util.c

dcerpc_pipe_auth_recv()] Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-0020af6e7c57 - NT_STATUS_NET_WRITE_FAULT
[librpc/rpc/dcerpc_connect.c:790:dcerpc_pipe_connect_b_recv()] failed NT status (c0000022) in dcerpc_pipe_connect_b_recv
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
Re: WMI error for only one server
Posted: Wed Jan 24, 2018 3:27 pm
by npolovenko
@bosecorp, Do the other servers use the same username? us_nt_bose/svcnagios I wonder if the '/' sign could be causing some kind of syntax related problems. Can you try to take out the -t 60!!!! part to see if it fixes the problem? You'd need to do it in Core Configurations Manager, not in the .cfg file directly.
Actually, before you do all that please update the plugin. Navigate to the Admin menu in GUI, then click on Manage Config Wizards in the left column, click on Check For Updates and then go down the page till you see Windows WMI wizard, click on 'install the update". 2.0.8 is the latest version. Then force immediate check in the service menu to see if the problem has gotten resolved.
Re: WMI error for only one server
Posted: Thu Jan 25, 2018 8:44 am
by bosecorp
Its says the plugin is up to date (2.0.7), the plugin works for all other servers. Secondly i'm not sure if upgrading the plugin is going to fix this issue.
Re: WMI error for only one server
Posted: Thu Jan 25, 2018 2:17 pm
by npolovenko
I'm not sure if upgrading the plugin is going to fix this issue.
@bosecorp, Sometimes it does when they add patches. Can you change the service definition to the one below? I added an escape character between us_nt_bose/\svcnagios. You'd probably need to modify that in Core COnfigurations Manager, and then apply the configuration.
Code: Select all
define service {
service_description CPU Usage
use st_windows_prod
hostgroup_name hgt_stacked_win_build-base,hgt_stacked_win_build-base_NoCdrive,hgt_stacked_win_build-MA,hgt_stacked_win_WMI_build_AWS-base,hgt_stacked_win_WMI_build_AWS-MA
display_name CPU Usage
check_command check_xi_service_wmiplus!'us_nt_bose/\svcnagios'!'AfyJ6yjnWy8q'!checkcpu!-w '99' -c '100' -t 60!!!!
contacts nagiosadmin
register 1
}