On December 18, 2017 at 11:38:20 PM, Whit Blauvelt (whit+...@transpect.com) wrote:
Okay, I've missed something. But with the former OSSEC server now Wazuh, at the same address, with the same list of agents recognized by it, they're all of status "never connected." These are generally OSSEC 2.9.x agents.
My experience before was to install 'em, key 'em, and they'd connect. Wazuh should have the keys since it has the list of agents; and rekeying one doesn't cause it to connect; so it's something other than a key problem. I'm planning to update all agents to Wazuh presently. Still, from what I read I expected them to work with it meanwhile.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/8b26554a-c45a-4d96-97eb-8998ee96f876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The agents from OSSEC 2.9.X are compatible with Wazuh-Manager, and if the configuration is correct all should be connected.
Do you have any error in the logs?, can you verify the logs in the manager and the agent?/var/ossec/logs/ossec.log
The client.keys in the agent never connected exists in the client.keys in the manager??cat /var/ossec/etc/client.keys | grep agent_name and the result should be the same IP, Agent-name IP and key than in your agent.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/f4ff3f0d-7be1-4555-bc0e-001037616d60%40googlegroups.com.
Looking your mails seems like something went wrong in your upgrade
Did you followed our migrating guide from our documentation?
Please try to follow the following steps:
1. Backup your current configuration
Stop OSSEC:
# /var/ossec/bin/ossec-control stop
Check if all services are stopped:
# ps axu | grep ossec
Check if you have enough space to create a copy of /var/ossec:
# du -h /var/ossec | tail -n1
# df -h /var
Backup /var/ossec:
# cp -rp /var/ossec /var/ossec_backup
2. Remove your current installation
Debian and Ubuntu:
# apt-get remove ossec-hids wazuh-manager wazuh-api —purge (I am not sure if you still having ossec-hids installed in your system, this is why i add to the command line)
CentOS and Red Hat:
# yum remove ossec-hids wazuh-manager wazuh-api (I am not sure if you still having ossec-hids installed in your system, this is why i add to the command line)
Remove directory:
# rm -rf /var/ossec
Now install from scratch Wazuh following the next link:
https://documentation.wazuh.com/current/installation-guide/installing-wazuh-server/index.html
The copy the client.keys from your ossec_backup to the new folder
cp -p /var/ossec_backup/etc/client.keys /var/ossec/etc/
chmod 660 /var/ossec_backup/etc/client.keys
chown root:ossec /var/ossec_backup/etc/client.keys
Restart the manager with service wazuh-manager restart and verify if you have any error in the log.
Then if you want, you can enable Auth with the instructions that i gave you in a previous mail in the same thread.