Hey Folks,
I'm a long time OSSEC user, loving the direction Wazuh is taking this already great platform!
I could however do with some help. I have installed the client-agent from source on an OpenBSD 5.9 AMD64 box, after adding gmake to the base box the compile completes and I have the agent installed.
However if I try and start the agent I'm presented with the following error, as you can see I've tried both the stable and master branches to see if this issue has been solved.
# ./ossec-control start
Starting Wazuh v3.0.0-beta8 (maintained by Wazuh Inc.)...
Started ossec-execd...
Started wazuh-modulesd...
2017/09/12 19:22:01 ossec-agentd: INFO: Using notify time: 10 and max time to reconnect: 60
Started ossec-agentd...
Started ossec-logcollector...
2017/09/12 19:22:04 ossec-syscheckd: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:04 rootcheck: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:12 ossec-syscheckd: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:12 rootcheck: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:25 ossec-syscheckd: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:25 rootcheck: CRITICAL: (1211): Unable to access queue: '/var/ossec/queue/ossec/queue'. Giving up..
ossec-syscheckd did not start
If I try and start and start the agent daemon directly I get:
# /var/ossec/bin/ossec-agentd -df
2017/09/12 19:31:29 ossec-agentd: DEBUG: (1228): Element 'log_format' without any option.
2017/09/12 19:31:29 ossec-agentd: DEBUG: Starting ...
2017/09/12 19:31:29 ossec-agentd: INFO: Using notify time: 10 and max time to reconnect: 60
2017/09/12 19:31:29 ossec-agentd: INFO: (1410): Reading authentication keys file.
2017/09/12 19:31:29 ossec-agentd: CRITICAL: randombytes failed for all possible methods for accessing random data
#
Tail of the ossec.log
# tail -n 10 /var/ossec/logs/ossec.log
2017/09/12 19:22:12 ossec-syscheckd: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:12 rootcheck: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:25 ossec-syscheckd: ERROR: (1210): Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'.
2017/09/12 19:22:25 rootcheck: CRITICAL: (1211): Unable to access queue: '/var/ossec/queue/ossec/queue'. Giving up..
2017/09/12 19:31:29 ossec-agentd: DEBUG: (1228): Element 'log_format' without any option.
2017/09/12 19:31:29 ossec-agentd: DEBUG: Starting ...
2017/09/12 19:31:29 ossec-agentd: INFO: Using notify time: 10 and max time to reconnect: 60
2017/09/12 19:31:29 ossec-agentd: INFO: (1410): Reading authentication keys file.
2017/09/12 19:31:29 ossec-agentd: CRITICAL: randombytes failed for all possible methods for accessing random data
Any pointers would be greatly appreciated.
Simon