Hello,

yes always returning 1 see the command I used to check :

None working command :
# /var/ossec/bin/agent-auth -m 192.168.0.1 -p 1515; echo $?
2012/02/07 17:08:23 ossec-authd: INFO: Started (pid: 20536).
2012/02/07 17:08:44 ossec-authd: Unable to connect to 192.168.0.1:1515
1

Working command :
#/var/ossec/bin/agent-auth -m 192.168.0.1 -p 1515; echo $?
2012/02/07 17:10:40 ossec-authd: INFO: Started (pid: 23741).
INFO: Connected to 192.168.0.1:1515
INFO: Using agent name as: server
INFO: Send request to manager. Waiting for reply.
INFO: Received response with agent key
INFO: Valid key created. Finished.
INFO: Connection closed.
1

Thanks for the puppet tips I'll check that :)

Regards

On 7 February 2012 16:56, Marco Bonetti <si...@slackware.it> wrote:

> Hi all,
> I am successfully using ossec and puppet together and I can confirm
> agent-auth always return 1. I worked around it using:
>
> command => "/var/ossec/bin/agent-auth ... || true"
>
> as the command associated to the puppet exec to add a new agent. Not very
> tidy but effective :-P
>
> Best regards,
> Marco
>
> --
> Marco Bonetti
> Tor research and other stuff: http://sid77.slackware.it/
> Slackintosh Linux Project Developer: http://workaround.ch/
> Linux-live for powerpc: http://workaround.ch/pub/rsync/mb/linux-live/
>
> My GnuPG key id: 0x0B60BC5F
>

Reply via email to