puppet class ossec::client not register new client to ossec server.

10 views
Skip to first unread message

Nguyễn Đức Thịnh

unread,
Feb 26, 2017, 11:17:28 AM2/26/17
to ossec-dev
Hi all,
I got a problem when deploy ossec client through puppet. It seem like my client not send any request to ossec-authd port 1515 by puppet. 
But everything ok when I execute: /var/ossec/bin/agent-auth -m ${ossec_server_address} -A ${::fqdn} -D /var/ossec/ manual from commandline.

This is screenshot during puppet agent -t apply on client.


I think there is some problem with puppet agent, so it not exec these codes in client.pp :
$ossec_server_address = pick($ossec_server_ip, $ossec_server_hostname)
    exec { 'agent-auth':
      command => "/var/ossec/bin/agent-auth -m ${ossec_server_address} -A ${::fqdn} -D /var/ossec/",
      creates => '/var/ossec/etc/client.keys',
      require => Package[$agent_package_name],
    }

As you can see, my client not send any packet to ossec server but still have client.keys content.
Any one got this problem before, or any idea to troubleshoot this issue.
Thanks for reading this.
Reply all
Reply to author
Forward
0 new messages