Does it really show complete description or just variables?
What exactly text do you see?
Yes, I know this class (Win32_NTLogEvent) provide event description when everything works properly. Actually HostMonitor uses WMI as well when it cannot find or load DLL specified as event description source.
However if Event Viewer cannot show description (just variables) and HostMonitor cannot do this either, then Win32_NTLogEvent class should returns just variables as well.
Regards
Alex
Eventlog EventText is empty
Hi,
InsertionStrings contains mostly the same content like Message-Variable. But on eventlogs with ID 0 the Message-Variable is empty and the InsertionStrings contains same Information like eventviewer without the information about the missing description for ID 0
Here are an example with existing Message-Content:
Category: 0
CategoryString:
ComputerName: S-RFSW3-BTP2
Data:
EventCode: 0
EventIdentifier: 0
EventType: 2
InsertionStrings: Could not detect IIS installation or IIS is disabled, skipping the Web Host Script Mappings component since it depends upon IIS to function properly.
If you believe this message is an error, check your IIS installation to make sure it is installed properly.
Logfile: Application
Message: Could not detect IIS installation or IIS is disabled, skipping the Web Host Script Mappings component since it depends upon IIS to function properly.
If you believe this message is an error, check your IIS installation to make sure it is installed properly.
RecordNumber: 153
SourceName: System.ServiceModel.Install 3.0.0.0
TimeGenerated: 11.09.2009 17:51:37
TimeWritten: 11.09.2009 17:51:37
Type: Warning
User:
InsertionStrings contains mostly the same content like Message-Variable. But on eventlogs with ID 0 the Message-Variable is empty and the InsertionStrings contains same Information like eventviewer without the information about the missing description for ID 0
Here are an example with existing Message-Content:
Category: 0
CategoryString:
ComputerName: S-RFSW3-BTP2
Data:
EventCode: 0
EventIdentifier: 0
EventType: 2
InsertionStrings: Could not detect IIS installation or IIS is disabled, skipping the Web Host Script Mappings component since it depends upon IIS to function properly.
If you believe this message is an error, check your IIS installation to make sure it is installed properly.
Logfile: Application
Message: Could not detect IIS installation or IIS is disabled, skipping the Web Host Script Mappings component since it depends upon IIS to function properly.
If you believe this message is an error, check your IIS installation to make sure it is installed properly.
RecordNumber: 153
SourceName: System.ServiceModel.Install 3.0.0.0
TimeGenerated: 11.09.2009 17:51:37
TimeWritten: 11.09.2009 17:51:37
Type: Warning
User:
Done. Lets try update: www.ks-soft.net/download/hm840.ziphave ask my technical support for biztalk but it is possible to change te code?
That's my point - if they fix DLL, all applications will dosplay event description correctly.perhapts other applications can have this problem too.
Regards
Alex
Hi,
I've tested it an i still receive an empty EventText:
Message from HostMonitor (host changed status)
Test : NTLog S-RFSW3-BTP1:BizTalk Server 2006
Method: check NT Event Log
Status : Bad
Date : 09.02.2010 09:01:43
EventSource: BizTalk Server 2006
EventTime: 09.02.2010 08:59:35
EventType: 2
EventID: 0
EventText:
Recurrences : 1
Last status: Ok
Total tests: 163340
Alive ratio : 94,94 %
Dead ratio: 4,87 %
I've tested it an i still receive an empty EventText:
Message from HostMonitor (host changed status)
Test : NTLog S-RFSW3-BTP1:BizTalk Server 2006
Method: check NT Event Log
Status : Bad
Date : 09.02.2010 09:01:43
EventSource: BizTalk Server 2006
EventTime: 09.02.2010 08:59:35
EventType: 2
EventID: 0
EventText:
Recurrences : 1
Last status: Ok
Total tests: 163340
Alive ratio : 94,94 %
Dead ratio: 4,87 %
Greatnow it works. i receive the full eventtext with follow information.

That's because your script does not check DLL for errors. HostMonitor display such message because DLL does not contain format string for this event.But in my WMI-Code i dont receive the additional information: Message not found. Insertion strings
BTW: Windows Event Viewer works in the same way, just displays different warning message.
Regards
Alex