Issue install ossec on ubuntu 18 and 20

13 views
Skip to first unread message

Kedar Mendhurwar

unread,
Jan 13, 2021, 6:21:59 AM1/13/21
to ossec-list
Hi Folks,

I have been trying to install ossec agent 3.6 on ubuntu 20.4 and each time I try starting the service, I get the error " ERROR: Queue '/var/ossec/queue/ossec/queue' not accessible: 'Connection refused'." I have tried this on a fresh install a couple of times with the same results. I tried on ubuntu 18.4 with ossec version 3.1 with the same results.

I even checked the wiki article https://www.ossec.net/docs/faq/unexpected.html but this has been of no help. According to the DOC " It means that ossec-analysisd is not running for some reason which could be because ossec-analysisd didn’t start properly or ossec-analysisd didn’t start at all.

In my case when I tried starting ossec-analysisd manually, I found it wasn't installed at all. Both Ubuntu versions with two different agent versions resulted in the same error. In ossec documentation, they don't say how one could manually install ossec.

Any help would be greatly appreciated

dan (ddp)

unread,
Jan 13, 2021, 12:56:15 PM1/13/21
to ossec...@googlegroups.com
ossec-analysisd is only installed on OSSEC servers or stand alone
systems, not on agents.
How did you install OSSEC on these agents?
Are there any errors before the Queue error in the ossec.log file?
You could try starting the processes manually to see what happens.
Something like (in different terminals because `-df` will keep them in
the foreground):
sudo /var/ossec/bin/ossec-agentd -df
sudo /var/ossec/bin/ossec-logcollector -df
sudo /var/ossec/bin/ossec-syscheckd -df

> --
>
> ---
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/f7657696-2a55-4893-8107-e214f92717e1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages