Closed chilledornaments closed 6 years ago
Did you save the output of env V=1 ./install.sh
?
That might be helpful in tracking down the issue.
I have the same issue:
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.4.1708 (Core) Release: 7.4.1708 Codename: Core
ldconfig -p | grep ssl libssl3.so (libc6,x86-64) => /lib64/libssl3.so libssl.so.10 (libc6,x86-64) => /lib64/libssl.so.10 libssl.so (libc6,x86-64) => /lib64/libssl.so libevent_openssl-2.0.so.5 (libc6,x86-64) => /lib64/libevent_openssl-2.0.so.5
install output:
env V=1 ./install.sh which: no host in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Para instalação em português, escolha [br]. 要使用中文进行安装, 请选择 [cn]. Fur eine deutsche Installation wohlen Sie [de]. Για εγκατάσταση στα Ελληνικά, επιλέξτε [el]. For installation in English, choose [en]. Para instalar en Español , eliga [es]. Pour une installation en français, choisissez [fr] A Magyar nyelvű telepítéshez válassza [hu]. Per l'installazione in Italiano, scegli [it]. 日本語でインストールします.選択して下さい.[jp]. Voor installatie in het Nederlands, kies [nl]. Aby instalować w języku Polskim, wybierz [pl]. Для инструкций по установке на русском ,введите [ru]. Za instalaciju na srpskom, izaberi [sr]. ** Türkçe kurulum için seçin [tr]. (en/br/cn/de/el/es/fr/hu/it/jp/nl/pl/ru/sr/tr) [en]: which: no host in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
OSSEC HIDS v2.9.4 Installation Script - http://www.ossec.net
You are about to start the installation process of the OSSEC HIDS. You must have a C compiler pre-installed in your system.
Host: localhost.localdomain
-- Press ENTER to continue or Ctrl-C to abort. --
1- What kind of installation do you want (server, agent, local, hybrid or help)? agent
2- Setting up the installation environment.
Choose where to install the OSSEC HIDS [/var/ossec]:
Installation will be made at /var/ossec .
The installation directory already exists. Should I delete it? (y/n) [y]: n
3- Configuring the OSSEC HIDS.
3.1- What's the IP Address or hostname of the OSSEC HIDS server?: 127.0.0.1
Adding Server IP 127.0.0.1
3.2- Do you want to run the integrity check daemon? (y/n) [y]:
Running syscheck (integrity check daemon).
3.3- Do you want to run the rootkit detection engine? (y/n) [y]:
Running rootcheck (rootkit detection). strings: '/usr/bin/mail': No such file
3.4 - Do you want to enable active response? (y/n) [y]: n
Active response disabled.
3.5- Setting the configuration to analyze the following logs: -- /var/log/messages -- /var/log/secure -- /var/log/maillog
--- Press ENTER to continue ---
5- Installing the system
/root/ossec-hids-2.9.4/src/external/lua-5.2.3' cd src && make posixmake[2]: Entering directory
/root/ossec-hids-2.9.4/src/external/lua-5.2.3/src'
make all SYSCFLAGS="-DLUA_USE_POSIX"
make[3]: Entering directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3/src' make[3]: Nothing to be done for
all'.
make[3]: Leaving directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3/src' make[2]: Leaving directory
/root/ossec-hids-2.9.4/src/external/lua-5.2.3/src'
make[1]: Leaving directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3' make settings make[1]: Entering directory
/root/ossec-hids-2.9.4/src'General settings:
TARGET: agent
V: 1
DEBUG:
DEBUGAD
PREFIX: /var/ossec
MAXAGENTS: 2048
DATABASE:
ONEWAY: no
CLEANFULL: no
User settings:
OSSEC_GROUP: ossec
OSSEC_USER: ossec
OSSEC_USER_MAIL: ossecm
OSSEC_USER_REM: ossecr
Lua settings:
LUA_PLAT: posix
USE settings:
USE_ZEROMQ: no
USE_GEOIP: no
USE_PRELUDE: no
USE_OPENSSL: auto
USE_PICVIZ: yes
USE_INOTIFY: no
Mysql settings:
includes:
libs:
Pgsql settings:
includes:
libs:
Defines:
-DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR="/var/ossec" -DUSER="ossec" -DREMUSER="ossecr" -DGROUPGLOBAL="ossec" -DMAILUSER="ossecm" -DLinux -DINOTIFY_ENABLED -DPICVIZ_OUTPUT_ENABLED -DLIBOPENSSL_ENABLED -DCLIENT
Compiler:
CFLAGS -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR="/var/ossec" -DUSER="ossec" -DREMUSER="ossecr" -DGROUPGLOBAL="ossec" -DMAILUSER="ossecm" -DLinux -DINOTIFY_ENABLED -DPICVIZ_OUTPUT_ENABLED -DLIBOPENSSL_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/
LDFLAGS -lm -lpthread -lssl -lcrypto
CC cc
MAKE make
make[1]: Leaving directory `/root/ossec-hids-2.9.4/src'
Done building agent
cd external/lua/ && make posix
make[1]: Entering directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3' cd src && make posix make[2]: Entering directory
/root/ossec-hids-2.9.4/src/external/lua-5.2.3/src'
make all SYSCFLAGS="-DLUA_USE_POSIX"
make[3]: Entering directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3/src' make[3]: Nothing to be done for
all'.
make[3]: Leaving directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3/src' make[2]: Leaving directory
/root/ossec-hids-2.9.4/src/external/lua-5.2.3/src'make[1]: Leaving directory /root/ossec-hids-2.9.4/src/external/lua-5.2.3' make settings make[1]: Entering directory
/root/ossec-hids-2.9.4/src'
General settings:
TARGET: agent
V: 1
DEBUG:
DEBUGAD
PREFIX: /var/ossec
MAXAGENTS: 2048
DATABASE:
ONEWAY: no
CLEANFULL: no
User settings:
OSSEC_GROUP: ossec
OSSEC_USER: ossec
OSSEC_USER_MAIL: ossecm
OSSEC_USER_REM: ossecr
Lua settings:
LUA_PLAT: posix
USE settings:
USE_ZEROMQ: no
USE_GEOIP: no
USE_PRELUDE: no
USE_OPENSSL: auto
USE_PICVIZ: yes
USE_INOTIFY: no
Mysql settings:
includes:
libs:
Pgsql settings:
includes:
libs:
Defines:
-DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR="/var/ossec" -DUSER="ossec" -DREMUSER="ossecr" -DGROUPGLOBAL="ossec" -DMAILUSER="ossecm" -DLinux -DINOTIFY_ENABLED -DPICVIZ_OUTPUT_ENABLED -DLIBOPENSSL_ENABLED -DCLIENT
Compiler:
CFLAGS -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR="/var/ossec" -DUSER="ossec" -DREMUSER="ossecr" -DGROUPGLOBAL="ossec" -DMAILUSER="ossecm" -DLinux -DINOTIFY_ENABLED -DPICVIZ_OUTPUT_ENABLED -DLIBOPENSSL_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/
LDFLAGS -lm -lpthread -lssl -lcrypto
CC cc
MAKE make
make[1]: Leaving directory `/root/ossec-hids-2.9.4/src'
Done building agent
./init/adduser.sh ossec ossecm ossecr ossec /var/ossec Wait for success... success install -d -m 0550 -o root -g ossec /var/ossec/ install -d -m 0750 -o ossec -g ossec /var/ossec/logs install -m 0660 -o ossec -g ossec /dev/null /var/ossec/logs/ossec.log install -d -m 0550 -o root -g 0 /var/ossec/bin install -d -m 0550 -o root -g 0 /var/ossec/lua install -d -m 0550 -o root -g 0 /var/ossec/lua/native install -d -m 0550 -o root -g 0 /var/ossec/lua/compiled install -m 0550 -o root -g 0 ossec-logcollector /var/ossec/bin install -m 0550 -o root -g 0 ossec-syscheckd /var/ossec/bininstall -m 0550 -o root -g 0 ossec-execd /var/ossec/bin install -m 0550 -o root -g 0 manage_agents /var/ossec/bin install -m 0550 -o root -g 0 external/lua/src/ossec-lua /var/ossec/bin/ install -m 0550 -o root -g 0 external/lua/src/ossec-luac /var/ossec/bin/ install -m 0550 -o root -g 0 ../contrib/util.sh /var/ossec/bin/ install -m 0550 -o root -g 0 ./init/ossec-client.sh /var/ossec/bin/ossec-control install -d -m 0550 -o root -g ossec /var/ossec/queue install -d -m 0770 -o ossec -g ossec /var/ossec/queue/alerts install -d -m 0750 -o ossec -g ossec /var/ossec/queue/ossec install -d -m 0750 -o ossec -g ossec /var/ossec/queue/syscheck install -d -m 0750 -o ossec -g ossec /var/ossec/queue/diff install -d -m 0550 -o root -g ossec /var/ossec/etc install -m 0440 -o root -g ossec /etc/localtime /var/ossec/etc install -d -m 1550 -o root -g ossec /var/ossec/tmp install -m 0640 -o root -g ossec -b ../etc/internal_options.conf /var/ossec/etc/ install -d -m 0770 -o root -g ossec /var/ossec/etc/shared install -m 0640 -o root -g ossec rootcheck/db/.txt /var/ossec/etc/shared/ install -d -m 0550 -o root -g ossec /var/ossec/active-response install -d -m 0550 -o root -g ossec /var/ossec/active-response/bin install -d -m 0550 -o root -g ossec /var/ossec/agentless install -m 0550 -o root -g ossec agentlessd/scripts/ /var/ossec/agentless/ install -d -m 0700 -o root -g ossec /var/ossec/.ssh install -m 0550 -o root -g ossec ../active-response/.sh /var/ossec/active-response/bin/ install -m 0550 -o root -g ossec ../active-response/firewalls/.sh /var/ossec/active-response/bin/ install -d -m 0550 -o root -g ossec /var/ossec/var install -d -m 0770 -o root -g ossec /var/ossec/var/run ./init/fw-check.sh execute install -m 0550 -o root -g 0 ossec-agentd /var/ossec/bin install -m 0550 -o root -g 0 agent-auth /var/ossec/bin install -d -m 0750 -o ossec -g ossec /var/ossec/queue/rids
System is Redhat Linux.
Init script modified to start OSSEC HIDS during boot.
Configuration finished properly.
To start OSSEC HIDS: /var/ossec/bin/ossec-control start
To stop OSSEC HIDS: /var/ossec/bin/ossec-control stop
The configuration can be viewed or modified at /var/ossec/etc/ossec.conf
Thanks for using the OSSEC HIDS. If you have any question, suggestion or if you find any bug, contact us at contact@ossec.net or using our public maillist at ossec-list@ossec.net ( http://www.ossec.net/main/support/ ).
More information can be found at http://www.ossec.net
--- Press ENTER to finish (maybe more information below). ---
You first need to add this agent to the server so they can communicate with each other. When you have done so, you can run the 'manage_agents' tool to import the authentication key from the server.
/var/ossec/bin/manage_agents
More information at: http://www.ossec.net/en/manual.html#ma
Best regards
Sorry @alberkman , that didn't really include the compile information. You might have to make clean
in src
before compiling.
I've run into a snag with ossec-authd. Whenever I try to start it, it throws the missing openssl support error. The same happens when I try to run
agent-auth
on agent servers.I've completely removed
/var/ossec
, made sure that gcc, glibc, openssl, and openssl-devel were installed, then re-downloaded the .tar.gz and re-ran./install.sh
. After that, I removed/var/ossec
and ranenv V=1 ./install.sh
, no joy.Not sure where to go from here. Thanks in advance.
OpenSSL versions:
sudo ldconfig -p | grep ssl
-OSSEC version number: 3.0.0 -Content of /etc/ossec-init.conf:
DIRECTORY="/var/ossec" VERSION="v3.0.0" DATE="Wed Sep 19 12:56:26 MDT 2018" TYPE="server"
-Content of /var/ossec/etc/ossec.conf:
-Content of /var/ossec/logs/ossec.log:
-Operating system name/version (uname -a if Unix):
Linux graylog 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
-Any other relevant information: