Re: [ossec-list] Removing agent by deleting line in client.keys?

2016-02-23 Thread Barry Kaplan
Ok, thanks Pedro. I have changed the role to use 'manage_agents -r' and to restart the ossec server. Much nicer. -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [ossec-list] Removing agent by deleting line in client.keys?

2016-02-23 Thread Pedro S
Hi Barry, You can run manage_agents with option "-r" and it will remove an agent, so you can create some scripts to automatize the process. /var/ossec/bin/manage_agents -r AGENTID OSSEC has internally a hash table with client.keys table, removing manually from client.keys or using

Re: [ossec-list] Removing agent by deleting line in client.keys?

2016-02-21 Thread Barry Kaplan
Thanks! Of course it would be much nicer manage_agents was a little nicer to automation... -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ossec-list] Removing agent by deleting line in client.keys?

2016-02-21 Thread Santiago Bassett
Short answer yes, deleting it from client.keys is enough. On the other hand, although it is not necessary, there are also some residual files you might want to delete as well. Those are in /var/ossec/queue/rids (message counters), /var/ossec/queue/syscheck (fim database),

[ossec-list] Removing agent by deleting line in client.keys?

2016-02-21 Thread Barry Kaplan
Can I remove a registered agent by simply deleting the line in client.keys? That is, skipping the manage_agents program? I am just adding the last few edge cases to our ansible provisioning of ossec. My current edge case is when an instance has been destroyed and rebuilt. In this case the name