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. Bug NetXMS 2.1/Linux, Agent Policy with UTF-8 gets truncated

Bug NetXMS 2.1/Linux, Agent Policy with UTF-8 gets truncated

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 32.0k 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.
  • T
    T
    twenrich
    wrote on last edited by
    #1

    Hi,

    installing a policy containing german Umlauts might truncate my policy file.

    I just added a comment like below:

    Query = Query.smv01.Sync.CountExpQError:smv01:3600:SELECT count(*) FROM AKMSync.dbo.expandedqueue with (nolock) WHERE status = 'ERROR'
    Query = Query.smv01.Sync.CountSyncQError:smv01:3600:SELECT count(*) FROM AKMSync.dbo.synchronizationqueue with (nolock) WHERE status = 'ERROR'
    
    # Überwachung Backups
    
    Query = Query.TEST_Folio01.Backup.CountNoFull:test_folio01:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    Query = Query.TEST_Folio02.Backup.CountNoFull:test_folio02:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    Query = Query.Folio01.Backup.CountNoFull:prod_folio01:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    Query = Query.Folio02.Backup.CountNoFull:prod_folio02:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    # Query = Query.TEST_Folio02.Backup.CountNoFull:test_folio02:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    # Query = Query.TEST_Folio02.Backup.CountNoFull:test_folio02:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    # Query = Query.TEST_Folio02.Backup.CountNoFull:test_folio02:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.database_name = db.name AND bck.backup_finish_date > dateadd(DAY, -8, current_timestamp) AND bck.type = 'D')
    

    The resulting file in /usr/local/var/lib/netxms/config_ap looks like

    ...
    Query = Query.smv01.Sync.CountSyncQError:smv01:3600:SELECT count(*) FROM AKMSync.dbo.synchronizationqueue with (nolock) WHERE status = 'ERROR'
    
    # berwachung Backups
    
    Query = Query.TEST_Folio01.Backup.CountNoFull:test_folio01:3600:SELECT count(*) FROM sys.sysdatabases db WHERE db.name != 'tempdb' AND not exists(SELECT 1 FROM msdb.dbo.backupset bck WHERE bck.dat
    

    Removing the Umlaut in the comment transfers the entire file.

    Kind regards,
    Thomas

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

      Hi,

      I've registered it as a bug. Are you using UNICODE version of netxmsd (you can check by running netxmsd -v)?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • T
        T
        twenrich
        wrote on last edited by
        #3

        Are you using UNICODE version of netxmsd (you can check by running netxmsd -v)?

        NetXMS Server Version 2.1 Build 9012 (2.1-RELEASE) (UNICODE)
        NXCP: 4.48.1.11 (AES-256, Blowfish-256, IDEA, 3DES, AES-128, Blowfish-128)
        Built with: g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
        

        Kind regards,
        Thomas

        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