In my infinite wisdom back in 2009 I thought making my agents four digits long so I started at 0001. So the agent is actually 0109 but it's registering as 109.
- Adding a new agent (use '\q' to return to the main menu).
Please provide the following:
* A name for the new agent: TEST-1
* The IP Address of the new agent: 1.1.1.1
* An ID for the new agent[111]: 0999
Agent information:
ID:999
Name:TEST-1
IP Address:1.1.1.1
Confirm adding it?(y/n): y
Agent added with ID 999.
****************************************
* OSSEC HIDS v3.2.0 Agent manager. *
* The following options are available: *
****************************************
(A)dd an agent (A).
(E)xtract key for an agent (E).
(L)ist already added agents (L).
(R)emove an agent (R).
(Q)uit.
Choose your action: A,E,L,R or Q: q
** You must restart OSSEC for your changes to take effect.
manage_agents: Exiting.
manage_agents: Exiting.
cat /var/ossec/etc/client.keys | grep TEST
999 TEST-1 1.1.1.1 dd795e1db91c27dff8a6377ba09c9d96ce1c643c6fa35882762326763b219ea3