Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Logwatch Error with NetXMS 0.2.31 on Windows 2008 64bit

Logwatch Error with NetXMS 0.2.31 on Windows 2008 64bit

Scheduled Pinned Locked Moved Support
12 Posts 2 Posters 57.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nikos
    wrote on last edited by
    #1

    Hi,

    I have upgraded our systems with the NetXMS Agent version 0.2.31. So far no issues, BUT:
    Monitoring Windws Event Log's on Windows 2008 64bit systems stoped working.
    Note: in earlier releases we where only able to install the 32bit version on 64bit systems. (64bit agent gave us errors during install)
    With version 0.2.31 this seems to be fixed, but the errors are indicating that ther may be something wrong with the 64bit agent distribution.
    Wondering if anybody else had/has this issue?

    I added the trace="1" to the parser section and started the agend in debug mode (with the -D flag) and that's the result in the debug log:

    [03-Dec-2009 15:19:19] Debug: LogWatch: registered parser for file *System, trace level set to 1
    [03-Dec-2009 15:19:19] Debug: LogWatch: Start watching event log "System" (using EvtSubscribe)
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent
    [03-Dec-2009 15:19:19] Debug: LogWatch: publisher name is NetXMS Win32 Agent

    1 Reply Last reply
    0
    • N
      N
      nikos
      wrote on last edited by
      #2

      After some more analysis and testing I did notice following (seems to be a bug):

      As long as I set the windows event log severity to 1 (== ERROR) in the logwathc parser xml-file; eventlog WARNING messages get reportet but not the ERROR'S.

      When I change the severity to 2 (== WARNING); WARNING's AND ERRORS get reported.

      It seems that the logwatch parser has a problem identifying/filtering the eventlog severity on Windows 2008 servers.

      @Victor: Any ideas / chance to fix?

      Thanks a lot and kind regards

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi!

        Could you please post your parser configuration file? It may be just one rule which is not working.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • N
          N
          nikos
          wrote on last edited by
          #4

          Hi Victor!

          Actually it's a very simple one... only one rule:

          <parser>
              <file>*System</file>
              <rules>
                  <rule>
                      <level>1</level>
                      <match>(.*)</match>
                      <event params="1">100008</event>
                  </rule>
              </rules>
          </parser>

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Hi!

            It seems that I have fixed the problem. Attached is logwatch.nsm for Windows x64. Could you please try it?

            Best regards,
            Victor


            logwatch.nsm

            1 Reply Last reply
            0
            • N
              N
              nikos
              wrote on last edited by
              #6

              Dear Victor

              Works perfect now!
              What should I say..... your support and response time was BRILLIANT once AGAIN!
              Many, many thanks for that!
              Have a great week and kind regards

              1 Reply Last reply
              0
              • N
                N
                nikos
                wrote on last edited by
                #7

                After Upgrading to the latest available release (1.1.0-rc11) Logwatch stoped working on some systems.
                When I trace I get the following errors in the debug log:

                LogWatch: publisher name is NetXMS Win32 Agent
                LogWatch: Call to EvtFormatMessage failed: The specified resource language ID cannot be found in the image file.

                Any ideas why?

                Kind Regards

                Nikos

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #8

                  Do you use English version of Windows or localized one?

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • N
                    N
                    nikos
                    wrote on last edited by
                    #9

                    Hi Victor

                    It's a english version. I checked with the other systems where logwatch is working, and the only thing which was different, that for non-unicode regional settings the one which gives us problems the location was set to german-switzerland. I changed this to english, but no success.

                    1 Reply Last reply
                    0
                    • N
                      N
                      nikos
                      wrote on last edited by
                      #10

                      Hi Victor,

                      any news/ideas on this issue?

                      Kind Regards

                      1 Reply Last reply
                      0
                      • V
                        V
                        Victor Kirhenshtein
                        wrote on last edited by
                        #11

                        Hi!

                        Unfortunately no. I cannot reproduce this problem nor find any useful information about this error. Interesting thing is that from the trace ("LogWatch: publisher name is NetXMS Win32 Agent") we can see that agent fails on formatting it's own messages. Is it always the case? If yes, could you try to reinstall agent's service on problematic machine with the following commands:

                        nxagentd.exe -R
                        nxagentd.exe -I -c <full+path_to_config_file>

                        Best regards,
                        Victor

                        1 Reply Last reply
                        0
                        • N
                          N
                          nikos
                          wrote on last edited by
                          #12

                          Hi Victor!

                          I did the following:

                          C:\NetXMS\bin>nxagentd.exe -R
                          Win32 Agent service deleted successfully
                          Event source "NetXMS Win32 Agent" uninstalled successfully

                          C:\NetXMS\bin>nxagentd.exe -I -c "C:\NetXMS\etc\nxagentd.conf"
                          Service "NetXMSAgentdW32" created successfully
                          Event source "NetXMS Win32 Agent" installed successfully

                          Unfortunately it is still not working. I did try it as well with the 0.2.31 Version and the "fixed" logwatch.nsm go created once, but strangly it is as well not working. 😞

                          1 Reply Last reply
                          0

                          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
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          Powered by NodeBB Contributors
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups