I'm just did your exact procedure (i was same in my previous try), and the problems still. Even with Manage_agent. Ossec tell me that: 2014/10/21 16:11:42 manage_agents (1209): ERROR: Unable to chroot to directory: '/var/ossec'. If i try to start with ./ossec-control start it still stuck to search /var/ossec folder.
I'm currently build ossec in Ubuntu 12.04 LTS, 64bit and next, exported the bin to OpenSuse 13.1 64 bit 2014-10-21 15:45 GMT+02:00 dan (ddp) <ddp...@gmail.com>: > On Tue, Oct 21, 2014 at 9:24 AM, Mario d'Aniello <diablo85...@gmail.com> > wrote: > > Hello, i'm currently using ossec-hids-2.8.1 and still have this problem > in > > the exact path (/opt/ossec/). > > I try to change LOCATION file but still don't work.... any ideas? > > > > Nothing is different between your issue and this 3 year old thread? > > I don't have any issues with manage_agents. > My basic steps were: > edit src/LOCATION to be: > DIR="/opt/ossec" > > Then ran: > make setagent > make all > make build > > Finally I uncommented the USER_BINARYINSTALL line in > etc/preloaded-vars.conf (and USER_NO_STOP). > Running the install.sh script I still had to answer the type of > installation question, but answering agent was sufficient. > "/opt/ossec" was prepopulated. > > After a few enters, stuff was installed > > Running /opt/ossec/bin/manage_agents provided no errors. > > Running the other binaries however appeared to be an issue. > > > Il giorno mercoledì 9 novembre 2011 22:10:51 UTC+1, alsdks ha scritto: > >> > >> Hello, > >> > >> I was testing binary installations , as described here > >> http://www.ossec.net/doc/manual/installation/installation-binary.html > >> , and run into or a strange situation. When installed the binary to a > >> new target machine if I change the install directory to something > >> different than the original machine were the binary was built ,for > >> example select /opt/ossec instead of /var/ossec , the installation > >> does not work . > >> > >> It tries to find and run things under /var/ossec and not /opt/ > >> ossec. > >> > >> Trying to run manage agents for instance gives the following error : > >> > >> manage_agents(1209): ERROR: Unable to chroot to directory: '/var/ > >> ossec'. > >> > >> and trying to run ossec-control : > >> > >> ossec-execd(1226): ERROR: Error reading XML file '/var/ossec/etc/ > >> ossec.conf': XMLERR: File '/var/ossec/etc/ossec.conf' not found. (line > >> 0) > >> > >> Anyone has run to this issue before ? I guess it is not a big deal > >> installing to /var/ossec but what if there is some restriction (space > >> or policy ) and we cant ? > >> > >> Any ideas much appreciated ! > >> > >> Thank you ! > > > > -- > > > > --- > > 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 ossec-list+unsubscr...@googlegroups.com. > > 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 ossec-list+unsubscr...@googlegroups.com. > 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 ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.