Wazuh App: API configuration: Manager hostname

1,283 views
Skip to first unread message

Aleksandr Zaldak

unread,
Mar 9, 2017, 3:58:55 AM3/9/17
to Wazuh mailing list
Hi Guys,

Just FYI, It seems Kibana Wazuh App doesn't reflect manager hostname changes at all. Let me explain in more details.
1. I have changed the hostname of the wazuh server to reflect company naming. I also have hostname reflected in /etc/hosts file
2. I noticed that Overview >> General and other tabs are empty now. It seems default "manager.name: localhost.localdomain". I have removed and readded the Wazuh App: API configuration and used server name (API URL), opposite to localhost, but GUI names manager as localhost.localdomain. OverView >> Discover tab also shows "manager.name: localhost.localdomain" by default too.

Great work guys!

Aleksandr Zaldak

unread,
Mar 9, 2017, 4:15:33 AM3/9/17
to Wazuh mailing list
#Update

False alarm :)
Restarted the server and re-added the API config. All good now!

Pedro Sanchez

unread,
Mar 9, 2017, 8:03:57 AM3/9/17
to Aleksandr Zaldak, Wazuh mailing list
HI Aleksandr,

In general terms, Manager hostname is used to filter all the events on Wazuh App, that way we support multi-manager, every alert must has the field "manager.name: %hostname%".
Wazuh App extract the "manager name" by making a request to /agents/000 and extracting the "name" field which must coincide with manager.name field.

Like you said, you must restart all the services to apply changes, also re-added the API at App settings, keep in mind your previous alerts won't show on Kibana App because the manager name was different.


As usual, thanks for your feedback, you are doing great contributions to Wazuh.

Regards,
Pedro Sanchez.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/3a24b70e-d3ba-4fd2-bda2-ec6e6159150b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

lmfigue...@gmail.com

unread,
Apr 19, 2017, 4:04:55 AM4/19/17
to Wazuh mailing list
Hi guys,
I have the same problem,but i can´t resolv the issue.I dont see the /agents/000, only see a file 000-*.db with name of server.
Can you help or told me the steps for change this?
Thx in advance, and great work .

Santiago Bassett

unread,
Apr 19, 2017, 4:47:56 PM4/19/17
to lmfigue...@gmail.com, Wazuh mailing list
Hi,

try restarting wazuh-manager and wazuh-api services. Then delete your existing app configuration and configure it again:

Inline image 1

I hope that helps

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.

Pedro Sanchez

unread,
Apr 20, 2017, 6:18:06 AM4/20/17
to lmfigue...@gmail.com, Wazuh mailing list
Hi,

The manager name used on the App is extracted from agents/000 request, it must match the same manager.name displayed on the alerts.

To confirm both fields are equal, you could try:

curl -XGET localhost:55000/agents/000

Example output

{"error": 0,"data": {"status": "Active","name": "ossec-manager","ip": "127.0.0.1","dateAdd": "2016-12-22 11:59:07","version": "Wazuh v2.0","lastKeepAlive": "9999-12-31 23:59:59","os": "Linux ossec-manager 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64","id": "000"}}

Now compare the "name" with field "manager.name" in the alerts, if they are the same, everything should be fine, just re-add the API in Setting tab, as Santiago said.

Regards,
Pedro.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.

lmfigue...@gmail.com

unread,
Apr 20, 2017, 6:56:55 AM4/20/17
to Wazuh mailing list
Hi, its all ok now. I just need remove the API config at the web.

I think if remove this doesn´t work properly, but now its fine.

Thanks for all and sorry my poor english.

all the best !
Reply all
Reply to author
Forward
0 new messages