{"action":"created","issue":{"url":"https://api.github.com/repos/wazuh/wazuh/issues/364","repository_url":"https://api.github.com/repos/wazuh/wazuh","labels_url":"https://api.github.com/repos/wazuh/wazuh/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/wazuh/wazuh/issues/364/comments","events_url":"https://api.github.com/repos/wazuh/wazuh/issues/364/events","html_url":"https://github.com/wazuh/wazuh/issues/364","id":290751563,"number":364,"title":"wazuh v3.1","user":{"login":"kulozzzz","id":29471339,"avatar_url":"https://avatars1.githubusercontent.com/u/29471339?v=4","gravatar_id":"","url":"https://api.github.com/users/kulozzzz","html_url":"https://github.com/kulozzzz","followers_url":"https://api.github.com/users/kulozzzz/followers","following_url":"https://api.github.com/users/kulozzzz/following{/other_user}","gists_url":"https://api.github.com/users/kulozzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/kulozzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kulozzzz/subscriptions","organizations_url":"https://api.github.com/users/kulozzzz/orgs","repos_url":"https://api.github.com/users/kulozzzz/repos","events_url":"https://api.github.com/users/kulozzzz/events{/privacy}","received_events_url":"https://api.github.com/users/kulozzzz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-01-23T08:37:15Z","updated_at":"2018-02-01T10:12:57Z","closed_at":null,"author_association":"NONE","body":"I am using the ./bin/agent_groups -a -i 002 -g test to add a user to a group with the following error:\r\nInternal error: strptime () argument 1 must be string without null bytes, not unicode. I do not know how to solve this problem."},"comment":{"url":"https://api.github.com/repos/wazuh/wazuh/issues/comments/362220027","html_url":"https://github.com/wazuh/wazuh/issues/364#issuecomment-362220027","issue_url":"https://api.github.com/repos/wazuh/wazuh/issues/364","id":362220027,"user":{"login":"mgmacias95","id":8604906,"avatar_url":"https://avatars0.githubusercontent.com/u/8604906?v=4","gravatar_id":"","url":"https://api.github.com/users/mgmacias95","html_url":"https://github.com/mgmacias95","followers_url":"https://api.github.com/users/mgmacias95/followers","following_url":"https://api.github.com/users/mgmacias95/following{/other_user}","gists_url":"https://api.github.com/users/mgmacias95/gists{/gist_id}","starred_url":"https://api.github.com/users/mgmacias95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgmacias95/subscriptions","organizations_url":"https://api.github.com/users/mgmacias95/orgs","repos_url":"https://api.github.com/users/mgmacias95/repos","events_url":"https://api.github.com/users/mgmacias95/events{/privacy}","received_events_url":"https://api.github.com/users/mgmacias95/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T10:12:57Z","updated_at":"2018-02-01T10:12:57Z","author_association":"MEMBER","body":"Hello @kulozzzz,\r\n\r\nThe API and the `agent_groups` script use the same python framework to group agents:\r\n\r\nhttps://github.com/wazuh/wazuh/blob/62429274dc7dcf588a2ae70d0f540938acb9d8bd/framework/scripts/agent_groups.py#L124\r\n\r\nhttps://github.com/wazuh/wazuh-api/blob/0235f561ebba7b14bf171f521db0e7dd6165c404/models/wazuh-api.py#L198\r\n\r\nIf you can use the API but not the `agent_groups` script, the problem is on the `agent_script` side. On the debug information you showed, the error was in the python framework, so I think there's a problem on how the `agent_groups` script reads the data. Could you please edit the script and add a print just before calling the function `Agent.set_group ` (line 123) to check the IDs the python framework is receiving? \r\n\r\nThank you so much and sorry for the inconvenience,\r\nMarta"}}
{"actor":{"display_login":"mgmacias95"}}