Postgres account on Nagos xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
xlin125
Posts: 172
Joined: Mon Jan 19, 2015 6:01 pm

Postgres account on Nagos xi

Post by xlin125 »

The Nagios xi 5.x or later only needs MySQL, and Postgres is no longer needed or installed. I do not think the postgres DB account "postgres" is used by Nagios xi 5.x at all. Please confirm it.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Postgres account on Nagos xi

Post by ssax »

If you upgraded from a version less than xi 5, you will be using postgresql for the nagiosxi database. Which can be converted to mysql:

https://support.nagios.com/kb/article/c ... i-560.html

What is the output of this command on your system?

Code: Select all

grep pgsql /usr/local/nagiosxi/html/config.inc.php
xlin125
Posts: 172
Joined: Mon Jan 19, 2015 6:01 pm

Re: Postgres account on Nagos xi

Post by xlin125 »

Our Nagios xi 5.x was a fresh installation on a Linux (RHEL) server, not an upgraded from a version less than Nagios xi 5. As expected, running the command "grep pgsql /usr/local/nagiosxi/html/config.inc.php" returned no match:
$ grep pgsql /usr/local/nagiosxi/html/config.inc.php
$

Just wanted to clarify that the account "postgres" is a system (Linux/RHEL) account, not a Postgres DB account:
$ grep postgres /etc/passwd
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/nologin
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Postgres account on Nagos xi

Post by vtrac »

Hi,
I checked against my xi 5.8.3 on CentOS 7.9 and yes, "postgres" is the OS system account.

Code: Select all

[root@VT-Nagiosxi-61 ~]# grep postgres /etc/passwd
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
I checked "ps -ef | grep postgres" and do not see any running process with that user.

If your is a fresh installed of xi 5.x, then I don't think the "postgres" user account is being used.


Best Regards,
Vinh