Agent Configuration
-
hi,
i have two netxms servers:
- v1.1.5 on centos 6 linux
- 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.6no 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 -
Hi!
It's error in filtering script, not a config itself. How your filtering script for config looks like?
Best regards,
Victor -
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 -
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 -
-
-
Filtering script always should have a body. If you don't need filtering, just use
return true;Best regards,
Victor -
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