Missing autopostgresqlbackup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cbeattie-unitrends
Posts: 84
Joined: Mon Oct 10, 2016 2:51 pm

Missing autopostgresqlbackup

Post by cbeattie-unitrends »

I've inherited an installation of Nagios XI 5.3.0. It appears that it's missing /root/scripts/autopostgresqlbackup. The file doesn't exist, but /etc/cron.d/nagiosxi is attempting to call it. Postgresql is installed, but chkconfig --list says it's not enabled at any runlevel.

automysqlbackup, however, does exist. I only noticed autopostgresqlbackup was failing because root was getting mail from cron about it.

Do I need to find and install a copy of autopostgresqlbackup, or is it safe to remove that line from /etc/cron.d/nagiosxi?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Missing autopostgresqlbackup

Post by rkennedy »

Older versions of Nagios used postgres, but moving forward we are only using MySQL / MariaDB. What is the output from the following command? It'll tell us what your dbtype is currently set to -

Code: Select all

grep -R 'dbtype' '/usr/local/nagiosxi/html/config.inc.php'
Former Nagios Employee
cbeattie-unitrends
Posts: 84
Joined: Mon Oct 10, 2016 2:51 pm

Re: Missing autopostgresqlbackup

Post by cbeattie-unitrends »

Looks like it's all MySQL:

Code: Select all

$cfg['dbtype'] = ''; // this setting is no longer used - use settings below
        "dbtype" => 'mysql',
        "dbtype" => 'mysql',
        "dbtype" => 'mysql',
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Missing autopostgresqlbackup

Post by mcapra »

cbeattie-unitrends wrote:is it safe to remove that line from /etc/cron.d/nagiosxi?
It should be safe to remove since all of your DBs are on mysql. This was actually included in the changelog for the upcoming release of 5.3.2:
- Fixed clean install adding the postgresql backup script even though postgres isn't installed [TPS#9878] -JO
Former Nagios employee
https://www.mcapra.com/
cbeattie-unitrends
Posts: 84
Joined: Mon Oct 10, 2016 2:51 pm

Re: Missing autopostgresqlbackup

Post by cbeattie-unitrends »

Excellent! Thank you for the reassurance.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Missing autopostgresqlbackup

Post by avandemore »

Looks like your question is answered, are we ok to lock this thread?
Previous Nagios employee
Locked