RE: Agent configuration deployment

From: Victor Kirhenshtein <victor_at_DOMAIN_REMOVED>
Date: Thu, 28 Dec 2006 19:14:20 +0200

Hello!
 
By default, agent uses it's local configuration file - which can be
edited individually for each host from object menu in console. If you
wish agent to use config stored on server, you should run it as follows:
 
nxagentd -d -M mgmt_server_addr
 
With -M option, agent on startup will connect to given management server
and download configuration file, replacing any existing local config.
Agent connects to port 4701 (netxms-mgmt) on server.
 
Filtering script should return non-zero value if config is suitable for
requesting agent, and 0 if not. Language is the same as for DCI
transformation scripts.
Filtering script will receive the following arguments:
   $1 - agent's IP address
   $2 - platform name (like "windows-i386")
   $3 - agent's major version number
   $4 - agent's minor version number
   $5 - agent's release number

Some examples:
 
1. Give config only to agents running on AIX platform:
 
$1 like "AIX*"
 
or in full form
 
sub main()
{
   return $1 like "AIX*";
}
 
2. Give config to all windows machines in subnet 10.2.2.0/24:
 
AddrInSubnet($1, "10.2.2.0", "255.255.255.0") && ($2 match "^windows.*")
 
 
3. Give config to agens with version less or equal 0.2.10
 
($3 == 0) && ((($4 == 2) && ($3 <= 10)) || ($4 < 2))
 
Server-based configs is relatively new functionality (appeared in
0.2.13) and may be not very easy to use. Any improvement suggestions are
welcome (as for any other functions, of course).
 
Best regards,
Victor
 
 
 
 
 -----Original Message-----
From: Edgar Chupit [mailto:chupit_at_gmail.com]
Sent: Thursday, 28 December, 2006 18:37
To: NetXMS Users
Subject: [netxms-users] Agent configuration deployment

        Dear NetXMS Users,
        
        Today I've been testing NetXMS intensively, everything is
working fine and I even managed to compile nxagentd with VC8 to clarify
some questions.
        
        Two things are not clear to me in NetXMS server, can somebody
provide simple working example of agent configuration filtering script?
        
        Second question is: how does agent configuration files are
deployed? I have created agent configuration file and added this file to
repository in control panel, but unfortunately, I can not find a way to
deploy this file or schedule deployment of this file to remote agents.
        
        Thank you in advance!
        
        --
        Best regards,
        Edgar Chupit
        callto://edgar.chupit
Received on Thu Dec 28 2006 - 19:14:20 EET

This archive was generated by hypermail 2.2.0 : Thu Dec 28 2006 - 19:37:29 EET