Hi, try checking the last keep alive or the last modification date of agent-info file.
/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 Or: *$* 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 Best regards, Pedro S. On Tue, Aug 2, 2016 at 10:52 AM, Derek Day <[email protected]> wrote: > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
