Yes, Postgres should be installed prior to installing NetXMS. https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
During installation of Posgres you will enter password for super user named "postgres". When installing NetXMS, use DBA login name "postgres" and the password that you entered.
Login name, database name and password could be anything - the installed will create postgres uses with that login name and password and will create a database. These credential will be written to NetXMS server configuration file (netxmsd.conf), so when it starts, it will use this information to communication to the database.
During installation of Posgres you will enter password for super user named "postgres". When installing NetXMS, use DBA login name "postgres" and the password that you entered.
Login name, database name and password could be anything - the installed will create postgres uses with that login name and password and will create a database. These credential will be written to NetXMS server configuration file (netxmsd.conf), so when it starts, it will use this information to communication to the database.