Hi Dan,

ahhhh okay sorry for that i found it in the preload-vars.conf. I just 
didn't saw it. ;)

Thanks for your help. I think i must buy me new glasses ;)

Best regards,
Alex



Am Freitag, 25. Juli 2014 09:32:12 UTC+2 schrieb Alexander Pietrasch:
>
> Okay i explain it in steps. I want to download the latest 
> ossec-hids-$VERSION.tar.gz, extract it, change the preloaded-vars.conf, *want 
> my individual ossec.conf* and make a new tar.gz which i can put on my 
> server.
>
>
> First i change the parameter of the preloaded-vars.conf.
> Then i start ./install.sh
> Then i must go in the ossec.conf must delete everything and put these 
> lines in the Config:(*I must do this step manually*)
>
> <ossec_config>
>         <client>
>                 <server-ip>XXX.XXX.XXX.XXX</server-ip>
>                 <config-profile>allLinux</config-profile>
>         </client>
> </ossec_config>
>
>
> After that i restart the Client and the Manager-Server and he gets the 
> "allLinux" Config.
>
>
>
> Soo i want to execute the install.sh and it should automatically has my 
> individual ossec.conf.
> My objective is that i only execute the install.sh script and everything 
> goes automatically.
>
> But everything i tried the fresh installation gets only the standard 
> Configuration.
>
>
> Greetz,
> Alex
>
> ~                         
>
>
>
> Am Donnerstag, 24. Juli 2014 14:26:16 UTC+2 schrieb dan (ddpbsd):
>>
>> On Wed, Jul 23, 2014 at 8:34 AM, Alexander Pietrasch 
>> <[email protected]> wrote: 
>> > Not its not a trick question ;) 
>> > I thought it goes maybe automatically but every fresh installation gets 
>> the 
>> > standard ossec.conf. 
>> > 
>>
>> I don't know what that means. 
>>
>> Try setting the USER_AGENT_SERVER_IP in the preloaded-vars.conf. 
>>
>> > Am Dienstag, 22. Juli 2014 17:52:09 UTC+2 schrieb dan (ddpbsd): 
>> >> 
>> >> On Tue, Jul 22, 2014 at 11:47 AM, Alexander Pietrasch 
>> >> <[email protected]> wrote: 
>> >> > Sure thats true, but after an fresh installation. How do i give the 
>> >> > agent 
>> >> > ossec.conf the following line? 
>> >> > 
>> >> > <config-profile>testx</config-profile> 
>> >> > 
>> >> 
>> >> Add it to the ossec.conf? Is this a trick question? 
>> >> 
>> >> > 
>> >> > 
>> >> > Am Dienstag, 22. Juli 2014 16:02:58 UTC+2 schrieb dan (ddpbsd): 
>> >> >> 
>> >> >> On Tue, Jul 22, 2014 at 9:54 AM, Alexander Pietrasch 
>> >> >> <[email protected]> wrote: 
>> >> >> > The Config gets generated at the following path: 
>> >> >> > 
>> >> >> > {$DOWNLOADDIR}/ossec-hids-2.8/src/config/ 
>> >> >> > 
>> >> >> > there are three files for the agent config: 
>> >> >> > client-config.c 
>> >> >> > client-config.h 
>> >> >> > client-config.o 
>> >> >> > 
>> >> >> 
>> >> >> Those are the source code and what not controlling host OSSEC uses 
>> the 
>> >> >> configuration file. If you want a custom ossec.conf to be installed 
>> >> >> during compilation, those aren't the files you need to modify. 
>> >> >> 
>> >> >> > I checked out to fill the ossec.conf autmatically but it doens't 
>> >> >> > work. 
>> >> >> > Now i push the config file manually after the Installation to the 
>> >> >> > Server. 
>> >> >> > 
>> >> >> 
>> >> >> I personally think that rolling the ossec.conf into your 
>> configuration 
>> >> >> management solution is the way to go. 
>> >> >> 
>> >> >> > Best regards, 
>> >> >> > Alex 
>> >> >> > 
>> >> >> > 
>> >> >> > Am Freitag, 18. Juli 2014 13:59:34 UTC+2 schrieb dan (ddpbsd): 
>> >> >> >> 
>> >> >> >> On Fri, Jul 18, 2014 at 5:11 AM, Alexander Pietrasch 
>> >> >> >> <[email protected]> wrote: 
>> >> >> >> > Hallo all together, 
>> >> >> >> > 
>> >> >> >> > i want to make mass deployment and i found in the 
>> >> >> >> > "/opt/ossec-hids-2.8/src/InstallAgent.sh" at Line 226 the Line 
>> "cp 
>> >> >> >> > -pr 
>> >> >> >> > ../etc/ossec.mc ${DIR}/etc/ossec.conf" 
>> >> >> >> > It copies the file ossec.mc to a directory ot 
>> /etc/ossec.conf. 
>> >> >> >> > 
>> >> >> >> > So my Question is, can i change the ossec.mc, transfer it to 
>> other 
>> >> >> >> > system, 
>> >> >> >> > execute the install.sh and all Clients have the same 
>> >> >> >> > /var/ossec/etc/ossec.conf File? 
>> >> >> >> > 
>> >> >> >> > My Idea behind that is, that i make a tar-ball with some 
>> changes 
>> >> >> >> > in 
>> >> >> >> > the 
>> >> >> >> > /opt/ossec-hids-2.8/etc/preloaded-vars.conf and changes in the 
>> >> >> >> > ossec.mc 
>> >> >> >> > File 
>> >> >> >> > so that the installation gets fully automatic. 
>> >> >> >> > 
>> >> >> >> > 
>> >> >> >> > The Config on each client should be the following: 
>> >> >> >> > 
>> >> >> >> > <ossec_config> 
>> >> >> >> >   <client> 
>> >> >> >> >     <server-ip>192.168.XXX.XXX</server-ip> 
>> >> >> >> >     <config-profile>StandardClientconfig</config-profile> 
>> >> >> >> >   </client> 
>> >> >> >> > </ossec_config> 
>> >> >> >> > 
>> >> >> >> 
>> >> >> >> Try it and find out. I don't see why not. 
>> >> >> >> 
>> >> >> >> > -- 
>> >> >> >> > 
>> >> >> >> > --- 
>> >> >> >> > 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/d/optout. 
>> >> >> > 
>> >> >> > -- 
>> >> >> > 
>> >> >> > --- 
>> >> >> > 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/d/optout. 
>> >> > 
>> >> > -- 
>> >> > 
>> >> > --- 
>> >> > 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/d/optout. 
>> > 
>> > -- 
>> > 
>> > --- 
>> > 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/d/optout. 
>>
>

-- 

--- 
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/d/optout.

Reply via email to