Hello,
Is there a way to send output to a non-standard port for postgres?
I'm attempting to send to a server on port 5489, but OSSEC uses
5432.

I have /var/ossec/etc/ossec.conf configured to send alerts to a
postgres DB with the following config:

  <database_output>
    <hostname>ip here</hostname>
    <username>ossec_user</username>
    <password>secret</password>
    <database>ossec_dev</database>
    <port>5489</port>
    <type>postgresql</type>
  </database_output>


After reading another mailing list message, I was hoping the port tag
would work, but after restarting OSSEC I get this in ossec.log:

2011/07/11 15:31:11 ossec-dbd(5202): ERROR: Error connecting to
database 'ip address here'(ossec_dev): ERROR: could not connect to
server: Connection refused
        Is the server running on host "ip address here" and accepting
        TCP/IP connections on port 5432?

Thank you for any help.
Jason

Reply via email to