Skip to content

Instantly share code, notes, and snippets.

@conorsch
Created January 28, 2019 19:28
Show Gist options
  • Save conorsch/71fe14cd78c4bd346663b5b4a90facbd to your computer and use it in GitHub Desktop.
Save conorsch/71fe14cd78c4bd346663b5b4a90facbd to your computer and use it in GitHub Desktop.
failing on clean xenial install with new xenial build logic
TASK [ossec : Add firewall exemption for OSSEC agent registration (both servers)] ***
ok: [mon-staging] => (item={u'chain': u'INPUT', u'proto': u'tcp', u'cstate': u'NEW,ESTABLISHED,RELATED', u'jump': u'ACCEPT', u'source': u'app-staging', u'match': u'state', u'dest_port': 1515})
ok: [app-staging] => (item={u'chain': u'OUTPUT', u'proto': u'tcp', u'cstate': u'NEW,ESTABLISHED,RELATED', u'jump': u'ACCEPT', u'dest': u'10.0.1.3', u'match': u'state', u'dest_port': 1515})
ok: [mon-staging] => (item={u'chain': u'OUTPUT', u'proto': u'tcp', u'cstate': u'ESTABLISHED,RELATED', u'jump': u'ACCEPT', u'dest': u'app-staging', u'source_port': 1515, u'match': u'state'})
ok: [app-staging] => (item={u'chain': u'INPUT', u'proto': u'tcp', u'cstate': u'ESTABLISHED,RELATED', u'jump': u'ACCEPT', u'source': u'10.0.1.3', u'source_port': 1515, u'match': u'state'})
TASK [ossec : Register OSSEC agent.] *******************************************
fatal: [app-staging]: FAILED! => {"changed": true, "cmd": ["/var/ossec/bin/agent-auth", "-m", "10.0.1.3", "-p", "1515", "-A", "app-staging", "-P", "/var/ossec/etc/authd.pass"], "delta": "0:00:00.006322", "end": "2019-01-28 19:19:30.988782", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2019-01-28 19:19:30.982460", "stderr": "2019/01/28 19:19:30 ossec-authd: INFO: Started (pid: 12915).\n2019/01/28 19:19:30 ossec-authd: Unable to connect to 10.0.1.3:1515", "stderr_lines": ["2019/01/28 19:19:30 ossec-authd: INFO: Started (pid: 12915).", "2019/01/28 19:19:30 ossec-authd: Unable to connect to 10.0.1.3:1515"], "stdout": "INFO: Using specified password.", "stdout_lines": ["INFO: Using specified password."]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment