Windows Events logging
-
-
Hi!
I spent some time on it, but was unable to find any useful information. If I build agent version with excessive debug output, could you test it?
Best regards,
Victor -
-
-
Hello!
Sorry for delay with that. I do some additional testing, but was unable to reproduce this issue, even by installing event sources without english resources. Agent either give different error or renders text as it should. I have made small changes in log watch subagent, and add logging of message file name after EvtFormatMessage failure, so at least it will be possible to see what application causing this issue. Patched agent version can be downloaded here: https://www.netxms.org/download/dev/nxagent-1.1.6.2-x64.exe.
Best regards,
Victor -
Hi Victor
The test that resulted with the error was done on the same server where NetXMS runs on.
I upgraded it to 1.1.6., after which the error is still there – this is expected.
May I install the debug Agent on top of the server? Can I revert should something go wrong?BTW, I did another test with the Agent on a different server (Win 2008 64x, v. 1.1.5 and 1.1.6) without any problems. Go figure…
Regards,
Dan -
Hi!
You can install test agent on same machine, using the following procedure:
- Stop netxms agent service
- Remove agent service by running nxagentd.exe -R
- Install test agent into separate directory. This is most important! You will have to copy nxagentd.conf.
To recover after test agent uninstall, do the following:
- Ensure that uninstall has removed agent service
- Install agent service by running nxagentd -I -c <full_path_to_nxagentd.conf>
Best regards,
Victor -
Hi,
Followed your instruction, with 1.1.6.2 everything works smoothly:
[16-Nov-2011 09:05:58] LogWatch: publisher name is test
[16-Nov-2011 09:05:58] Match event: source="test" id=100 level=1 text="testing"
[16-Nov-2011 09:05:58] checking rule 1 ""
[16-Nov-2011 09:05:58] rule has no context
[16-Nov-2011 09:05:58] matching against regexp (.*)
[16-Nov-2011 09:05:58] matched
[16-Nov-2011 09:05:58] SendTrap(): event_code=100010, num_args=1, arg[0]="testing" arg[1]="(null)" arg[2]="(null)"
[16-Nov-2011 09:05:58] rule 1 "" matchedI then reverted to the 1.1.6 agent, now I receive the error again:
[16-Nov-2011 09:16:28] LogWatch: publisher name is test
[16-Nov-2011 09:16:28] LogWatch: Call to EvtFormatMessage failed: The specified resource language ID cannot be found in the image file.I went on and installed the original 1.1.6 agent in a separate directory.
This returns the above error as wellSo it seems something in 1.1.6.2 solves the problem, hopefully you know what this is.
Regards,
Dan
-
Hi!
I have changed system default locale in call to EvtOpenPublisherMetadata to LANG_NEUTRAL. It's very good to know that this was a solution.
Best regards,
Victor -
Hi,
Glad this had been solved.

I have a related question to syslog events. I can pass params of matching regex defined in the parser <match>...</match> section.
I'd like to pass the event ID as an additional parameter so I can test on it in the Event Processing Policy, Is there a way to do this?Regards,
Dan
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login