/var/ossec/bin/agent_control -i 005
Output:
Agent ID: 005
Agent Name: agent-ubuntu
IP address: 10.0.0.xx
Status: Disconnected
Operating system: Linux vpc-agent-ubuntu-public 3.13.0-44-generic...
Client version: OSSEC HIDS v2.8 / e0eda63a04ca5c24e749c713bfd4541b
Last keep alive: Wed Jun 22 19:20:07 2016
Syscheck last started at: Wed Jun 22 17:20:48 2016
Rootcheck last started at: Tue Jun 21 23:32:33 2016
$ ls -lah /var/ossec/queue/agent-info/vpc-agent-ubuntu*
-rw-r--r-- 1 ossecr ossec 152 Jun 22 19:20 /var/ossec/queue/agent-info/vpc-agent-ubuntu
Is there a simple way to show the last time an agent connected to the server? I'm looking for a way to identify agents that haven't been used for say 2 months.
--
---
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 ossec-list+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ find /var/ossec/queue/agent-info/* -mtime +60 -ls
--
--
---
You received this message because you are subscribed to a topic in the Google Groups "ossec-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ossec-list/dgQ_fsIR1vw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ossec-list+...@googlegroups.com.