Hi,
I am trying to use agent_control with a script to determine which
agents are connected and which are not, and therefore the CSV output
would be preferable to the "human formatted" output.  But whenever I
use the -s switch, agent_control will report only the connected
agents.  Is this the intended behavior?

For example:
#  bin/agent_control -l

OSSEC HIDS agent_control. List of available agents:
   ID: 000, Name: ossecserver.mydomain.net (server), IP: 127.0.0.1,
Active/Local
   ID: 002, Name: agent1.mydomain.net, IP: 10.0.1.202, Disconnected
   ID: 003, Name: agent2.mydomain.net, IP: 10.0.1.202, Never connected

# bin/agent_control -l -s
000,ossecserver.mydomain.net (server),127.0.0.1,Active/Local,

I can mostly follow what's going on in the source, and it looks like
the -s switch should only cause agent_control to use CSV formatted
output, but this is clearly not what is happening.

I am using OSSEC 1.6, and the server is on CentOS

Thanks,
Daniel DeLeo

Reply via email to