The only issues you have to keep in mind are the maxagents - pretty simple 
- but there is another hidden setting in the client keys creation that is 
in the code. 
Set to 4000 by default. Have to edit that and set it to whatever.  I fixed 
the makefile to do it when you change the setmaxagents. 

The value is -- in validate.c in ~/src/addagent folder. 

in the Makeall you will find this code: 

# Increasing maximum number of agents
if [ "X$1" = "Xsetmaxagents" ]; then
    echo -n "Specify maximum number of agents: "; 
    read AGMAX
    echo "HEXTRA=-DMAX_AGENTS=$AGMAX" >> ./Config.OS
    echo "Maximum number of agents set to $AGMAX."
    exit 0;
fi


and I updated mine to change the value in validate.c as well.

# Increasing maximum number of agents
if [ "X$1" = "Xsetmaxagents" ]; then
    echo -n "Specify maximum number of agents: "; 
    read AGMAX
    echo "HEXTRA=-DMAX_AGENTS=$AGMAX" >> ./Config.OS
    sed -i 's/if\(i \>\= 4000\)/if\(i >= $AGMAX\)/' addagent/validate.c
    echo "Maximum number of agents set to $AGMAX."
    exit 0;
fi

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to