Nevermind, I was able to use a different port by setting the PGPORT
environment variable:

export PGPORT=5489

On Jul 11, 3:32 pm, jla <[email protected]> wrote:
> Hello,
> Is there a way to send output to a non-standardportforpostgres?
> I'm attempting to send to a server onport5489, but OSSEC uses
> 5432.
>
> I have /var/ossec/etc/ossec.conf configured to send alerts to apostgresDB 
> 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 theporttag
> 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 onport5432?
>
> Thank you for any help.
> Jason

Reply via email to