Code: Select all
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB
/usr/local/nagiosxi/scripts/repair_databases.shI don't get any errors and it completes just fine.
I have verified that MySQL is running:
Code: Select all
]# /etc/init.d/mysqld status
mysqld (pid 25360) is running...
Code: Select all
141008 15:16:10 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
141013 9:49:29 [Note] /usr/libexec/mysqld: Normal shutdown
Code: Select all
]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00_ROOT
48G 36G 9.1G 80% /
/dev/mapper/VolGroup00-LogVol00
3.0G 95M 2.7G 4% /tmp
/dev/mapper/VolGroup00-LogVol00_VAR
5.7G 4.2G 1.3G 77% /var
/dev/hda1 190M 40M 141M 23% /boot
tmpfs 5.9G 0 5.9G 0% /dev/shm
tmpfs 125M 57M 69M 46% /var/nagiosramdiskCode: Select all
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00_ROOT
12799776 218121 12581655 2% /
/dev/mapper/VolGroup00-LogVol00
793600 741 792859 1% /tmp
/dev/mapper/VolGroup00-LogVol00_VAR
1540096 90193 1449903 6% /var
/dev/hda1 50200 50 50150 1% /boot
tmpfs 1538707 1 1538706 1% /dev/shm
tmpfs 1538707 14 1538693 1% /var/nagiosramdisk
I've checked nagios.log and don't see anything in there upon initial inspection.
Any help would be greatly appreciated as our system is not currently running.
EDIT: Upon checking the httpd log, I find the following:
Code: Select all
[Mon Oct 13 10:48:11 2014] [error] [client 10.100.39.62] PHP Warning: pg_pconnect() [<a href='function.pg-pconnect'>function.pg-pconnect</a>]: Unable to connect to PostgreSQL server: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"\nHINT: Stop the postmaster and use a standalone backend to vacuum database "postgres". in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres64.inc.php on line 682, referer: http://lnttavmnag1/nagiosxi/includes/components/nocscreen/noc.php
[Mon Oct 13 10:48:11 2014] [error] [client 10.100.39.62] PHP Notice: Undefined variable: result in /usr/local/nagiosxi/html/includes/db.inc.php on line 241, referer: http://lnttavmnag1/nagiosxi/includes/components/nocscreen/noc.php