我已经安装了Datastax opscenter v4.1.2 。 它与Datastax Cassandra社区版本2.0.8捆绑在一起。 我在Windows Server 2008 R2 64-bit上运行这些。 当我打开opscenter时,所有的代理程序都已连接,并且所有的统计信息都将显示, 但存储容量的小部件不显示任何信息。
opescenterd.log文件显示(IP地址已删除):
2014-06-16 12:24:01+0100 [local] ERROR: Agent for xx.xxx.x.xx was unable to complete operation (http://xx.xxx.x.xx:61621/os-metric/disk-space?): java.io.IOException: Process failed: wmic LogicalDisk where DriveType=3 get DeviceId,Size,FreeSpace /Format:csv Exit val: 44210 Output: Invalid XSL format (or) file name.
opscenter-agent日志显示:
ERROR [os-metrics-11] 2014-06-16 12:29:39,564 Short os-stats collector failed: Process failed: wmic LogicalDisk where DriveType=3 get DeviceId,Size,FreeSpace /Format:csv Exit val: 44210 Output: Invalid XSL format (or) file name.
这两条消息都是定期重复的。 任何人都可以build议这个错误吗?
这是Windows 7 WMIC中的一个错误 。 当您在英文Windows安装中使用荷兰语区域设置时,WMIC将searchC:\Windows\System32\wbem\nl-NL的xsl文件,而不是C:\Windows\System32\wbem\en-US 。
解决方法:
C:\Windows\system32\wbem\nl-NL的文件夹(或者您使用的任何语言环境,请检查HKCU\Control Panel\International\LocaleName )并复制C:\Windows\system32\wbem\en-US\*.xsl文件进入它。 WMIC process get /format:"%WINDIR%\System32\wbem\en-US\csv" 。