建立了cacti ,使用WMIC來監控SQL server 2012 Express狀態
發現一直給我
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.一直尋找,終於在這邊找到一部份原因:
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
https://support.microsoft.com/en-us/kb/820847/en-us
o confirm that this problem is occurring, you can use the WbemTest.exe tool that is provided with Microsoft Windows Server 2003. To use the WbemTest.exe tool, follow these steps:
- Click Start, click Run, type Wbemtest, and then click OK.
- In Windows Management Instrumentation Tester, click Connect.
- In the Namespace box, type root\cimv2, and the click Connect.
- Click Enum Classes.
- In the Enter superclass name box, type Win32_Perf, click Recursive, and then click OK.
- In Query Results, you will not see results for the counters that are not transferred to WMI.
- Win32_PerfFormattedData_SDSMTPROUTING_SMTPRouting
- Win32_PerfRawData_SDSMTPROUTING_SMTPRouting
歸納如下:
1.我升級到標準版,一樣監控不到,原因是:WMI的emun class名字沒變(意思就是:不要搞升級,重新安裝)
2.真的要監控express版本,WQL:"SELECT * FROM Win32_PerfRawData_MSSQLSQLEXPRESS_MSSQLSQLEXPRESSTransactions",
正式版本的
WQL:"SELECT * FROM Win32_PerfFormattedData_MSSQLSERVER_SQLServerDatabases"
所以:自己努力改CACTI的template吧
沒有留言:
張貼留言