-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wazuh API returned an error message. Error: Error executing internal command. Exit code: 1 #20
Comments
Hi, I see some strange things on your post:
$ curl -u foo:bar -k "https://localhost:55000/agents?pretty&offset=0&limit=1&sort=id"
{
"error": 0,
"data": {
"totalItems": 5,
"items": [
{
"status": "Active",
"name": "manager",
"ip": "127.0.0.1",
"version": "Wazuh v3.0.0-beta7",
"os": {
"platform": "centos",
"version": "7",
"name": "CentOS Linux"
},
"id": "000"
}
]
}
} Can you please post the ouput of the |
Hi!
|
I tried to get info about "001" agent:
There are logs:
|
Hi, Thank you for posting all these information. Now I see things much clearer than before. Both The program that works with that database is # /var/ossec/bin/ossec-control status
ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted is running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild not running...
ossec-execd is running...
wazuh-modulesd is running... Also, check the database is working ok: # sqlite3 /var/ossec/var/db/global.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> SELECT * FROM agent;
0|manager|||CentOS Linux|7|7||Core||centos|Linux manager 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64|Wazuh v3.0.0-beta7|||2017-09-06 08:40:16|9999-12-31 23:59:59|updated|1149840|0|
1|agent|..... If the database isn't OK. You can regenerate it with the following commands: # /var/ossec/bin/ossec-control stop
Killing ossec-monitord ..
Killing ossec-logcollector ..
Killing ossec-remoted ..
Killing ossec-syscheckd ..
Killing ossec-analysisd ..
ossec-maild not running ..
Killing ossec-execd ..
Killing wazuh-modulesd ..
Wazuh v3.0.0-beta7 Stopped
# rm /var/ossec/var/db/global.db
# /var/ossec/bin/ossec-control start
Starting Wazuh v3.0.0-beta7 (maintained by Wazuh Inc.)...
Started wazuh-modulesd...
Started ossec-execd...
Started ossec-analysisd...
Started ossec-logcollector...
Started ossec-remoted...
Started ossec-syscheckd...
Started ossec-monitord...
Completed.
# sqlite3 /var/ossec/var/db/global.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> SELECT * FROM agent;
0|manager|||CentOS Linux|7|7||Core||centos|Linux manager 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64|Wazuh v3.0.0-beta7|||2017-09-06 10:07:03|9999-12-31 23:59:59|updated|1150154|0|
1|agent.... Best regards, |
I added new agent, then tried:
Than I removed the agent 001 and it worked:
I think the problem in database in fist 8 symbols in strings "▒▒▒▒▒▒▒▒ Windows 10 Pro (Registered Trademark)". How to fix it? |
Hi @zapililirad, To get the OS name, wazuh executes the following Powershell/CMD command:
Can you please post the output of that command? Thank you so much, |
Sure:
Cyrillic symbols |
Hi @zapililirad This is clearly a bug with the character encoding. We're working to fix it at this moment. Thank you so much, |
Thank you. |
Hi @zapililirad, We're working in this issue at the moment but we still don't know if it will be included the next release. Best regards, |
Hi, |
Hello @enterdv, We're working on this issue and will be released in the Wazuh 3.1 release. We're sorry for taking too long to resolve this issue. Thank you for your patience, |
Hello @enterdv, This bug has been solved in wazuh/wazuh@b3c734a. It's included in the new upcoming Wazuh 3.1 release. Feel free to reopen this issue or open a new one if you have more problems . Best regards, |
hey,@mgmacias95 -----wazuh server |
Hi!
First, thank you for your software!
I installed wazuh-manager&api&app, opened last on kibana.
Than I added a new agent with kibana. After that when i go "agents" or "manager" in kibana i have "Wazuh API returned an error message. Error: Error executing internal command. Exit code: 1" message.
Tab "Agents" shows only the manager.
curl -u foo:bar -k "http://127.0.0.1:55000/agents/?offset=0&limit=30&sort=id&pretty"
returnsin logs there are:
Please help me:)
P.S. Sorry for my language, I've just started study)
The text was updated successfully, but these errors were encountered: