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. Agent Configuration

Agent Configuration

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 14.5k 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.
  • L
    L
    lindeamon
    wrote on last edited by
    #1

    hi,

    i have two netxms servers:

    1. v1.1.5 on centos 6 linux
    2. v1.1.6 on win2k3 server

    on both servers i have created the same agent configuration.
    i have two servers with different agents versions v1.1.5 and v1.1.6

    no matter where i point the agent to get the configuration from and no matter which agent is trying to pull the config i get the same error:
    Script (AgentCfg::1) execution error: syntax error, unexpected '/'

    and there are no extra '/' in the config

    any idea ?
    10x
    lindeamon

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

      Hi!

      It's error in filtering script, not a config itself. How your filtering script for config looks like?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • L
        L
        lindeamon
        wrote on last edited by
        #3

        hi victor,

        i have used this template back from the days i started with version 1.0.12.
        in this version the default configuration was that in the filtering section there were comments that pointed out the variables one can use in the filtering script like $1 and so.
        so it looks something like this:
        /////////////////////////////////
        // smoething
        // $1 - the ip address.....

        is this the issue ? if so,we have to have the parameters mentioned anywhere otherwise, at least for me, i will not be able to remember them

        Best Regards,
        Lindeamon

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

          It is ok to have comments this way in the script. The problem is probably due to either bug in NXSL interpreter, or some typo (or maybe non-printable character) in filtering script. You can also try to copy script into file and try to execute it with nxscript.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • L
            L
            lindeamon
            wrote on last edited by
            #5

            hi victor,

            i have deleted everything in the filtering section and now i get unexpected $end

            Best Regards,
            Lindeamon

            1 Reply Last reply
            0
            • L
              L
              lindeamon
              wrote on last edited by
              #6

              hi victor,

              i have configured the agent configuration filter to use the $2 var and everything worked fine.
              does that mean that i will always have to configure filtering ? it wasn't a requirement before.

              Best Regards,
              Lindeamon

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

                Filtering script always should have a body. If you don't need filtering, just use

                return true;
                

                Best regards,
                Victor

                1 Reply Last reply
                0
                • L
                  L
                  lindeamon
                  wrote on last edited by
                  #8

                  thank you victor,

                  as for now i have configured the script to filter both netxms server but it is good to know this solution.

                  Best Regards,
                  Lindeamon

                  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