-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Agent disconnected line doesn't show agent name #165
Comments
I am confused. Is this a code issue or a decoder/rules issue? |
This is a code issue. |
OK. I can try to look into fixing this but I'm not familiar enough with these log messages. Do they happen on the master, agent or both? Is there a way to reproduce these easily. Have you looked at all yet in the code to maybe help me figure out where these might be coming from? Sorry for all the questions. Just trying to understand the problem a bit better before I embark on the journey to fix. Thanks in advance. |
This falls into the "oh, here's something I have noticed again and better just log in and document it before I forget about it" category. Many of my tickets are like that. My reasoning is that even if I don't have the time to properly look into the issue, someone may get an itch and decide to take it on. :) |
And.. I didn't really answer your question. These are simply agent disconnected alerts from the manager. With the "agent started" alert, it's easy to see what agent is affected. But when an agent is disconnected, the agent name is not in the subject line. It seems that these should be consistent. |
Right. I agree the logging should be more consistent. No arguments there. Does the agent log that disconnected message or the master or both? Just trying to track down where in the code those messages get generated so I can fix. Also, having a way to easily reproduce so I know I fixed. |
Ossec agent started has a subject line like this:
3 - Ossec agent started. - (agent_name) 1.2.3.4
Ossec agent disconnected has a subject line like this:
3 - Ossec agent disconnected. - manager_name
Agent disconnected alerts should match the agent started alerts, providing the useful agent name in the subject line.
The text was updated successfully, but these errors were encountered: