***URGENT-NEED ASSISTANCE***

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

Linux Distribution and version?
1. Cent OS 6.2 / 64 Bit
2. Manual Install
3. Gnome installed

To Nagios XI Tech Support Specialist:

Now I am getting this....


DB Connect Error [nagiosxi]: Database connection failed SQL: SQL Error [nagiosxi] : Database connection failed SQL: SQL Error [nagiosxi] : Database connection failed DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ***URGENT-NEED ASSISTANCE***

Post by scottwilkerson »

Can you run the following from the command prompt

Code: Select all

service postgresql start
If that fails lets run

Code: Select all

df -h 
and return the results
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ***URGENT-NEED ASSISTANCE***

Post by scottwilkerson »

Also, we may need to run

Code: Select all

echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosxi postgres
echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosfusion postgres
echo "vacuum;vacuum analyse;vacuum full;"|psql postgres postgres
echo "vacuum;vacuum analyse;vacuum full;"|psql template1 postgres
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

Last login: Thu Dec 20 23:13:38 2012
[root@fldmon ~]# service postgresql start
Starting postgresql service: [ OK ]
[root@fldmon ~]#
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

Last login: Thu Dec 20 23:13:38 2012
[root@fldmon ~]# service postgresql start
Starting postgresql service: [ OK ]
[root@fldmon ~]# Last login: Thu Dec 20 23:13:38 2012
-bash: Last: command not found
[root@fldmon ~]# [root@fldmon ~]# service postgresql start
-bash: [root@fldmon: command not found
[root@fldmon ~]# Starting postgresql service: [ OK ]
-bash: Starting: command not found
[root@fldmon ~]# [root@fldmon ~]#
[root@fldmon ~]# echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosxi postgres
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
[root@fldmon ~]# echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosfusion postgres
psql: FATAL: database "nagiosfusion" does not exist
[root@fldmon ~]# echo "vacuum;vacuum analyse;vacuum full;"|psql postgres postgres
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
[root@fldmon ~]# echo "vacuum;vacuum analyse;vacuum full;"|psql template1 postgres
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
You have new mail in /var/spool/mail/root
[root@fldmon ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ***URGENT-NEED ASSISTANCE***

Post by scottwilkerson »

I believe this is related to this wiki
http://support.nagios.com/wiki/index.ph ... .22_in_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

[root@fldmon ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
265G 114G 137G 46% /
/dev/sda1 99M 13M 81M 14% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 50M 7.5M 43M 15% /var/nagiosramdisk
You have new mail in /var/spool/mail/root
[root@fldmon ~]#
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

The wiki does not seem to help:

[root@fldmon ~]# psql nagiosxi nagiosxi
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
You have new mail in /var/spool/mail/root
[root@fldmon ~]# VACUUM;
-bash: VACUUM: command not found
[root@fldmon ~]# psql nagiosxi nagiosxi
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
[root@fldmon ~]# VACUUM;
-bash: VACUUM: command not found
[root@fldmon ~]# VACUUM ANALYZE;
-bash: VACUUM: command not found
[root@fldmon ~]# VACUUM FULL;
-bash: VACUUM: command not found
[root@fldmon ~]# \q
-bash: q: command not found
[root@fldmon ~]# psql postgres postgres
psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"
HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
[root@fldmon ~]# VACUUM;
-bash: VACUUM: command not found
[root@fldmon ~]# VACUUM ANALYZE;
-bash: VACUUM: command not found
[root@fldmon ~]# VACUUM FULL;
-bash: VACUUM: command not found
[root@fldmon ~]# \q
-bash: q: command not found
[root@fldmon ~]# VACUUM FULL;
-bash: VACUUM: command not found
You have new mail in /var/spool/mail/root
[root@fldmon ~]# VACUM FULL;
-bash: VACUM: command not found
[root@fldmon ~]#
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

What does this mean and how do i stop it???

HINT: Stop the postmaster and use a standalone backend to vacuum database "postgres".
uhiadmin
Posts: 85
Joined: Sat Jan 15, 2011 9:01 am

Re: ***URGENT-NEED ASSISTANCE***

Post by uhiadmin »

I am still getting this after all the solutions that was suggested to me:

DB Connect Error [nagiosxi]: Database connection failed SQL: SQL Error [nagiosxi] : Database connection failed SQL: SQL Error [nagiosxi] : Database connection failed DB Connect Error [nagiosxi]: Database connection failed DB Connect Error [nagiosxi]: Database connection failed
Locked