Page 1 of 1
Missing autopostgresqlbackup
Posted: Mon Oct 31, 2016 10:22 am
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?
Re: Missing autopostgresqlbackup
Posted: Mon Oct 31, 2016 11:38 am
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'
Re: Missing autopostgresqlbackup
Posted: Mon Oct 31, 2016 11:58 am
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',
Re: Missing autopostgresqlbackup
Posted: Mon Oct 31, 2016 2:54 pm
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
Re: Missing autopostgresqlbackup
Posted: Tue Nov 01, 2016 8:07 am
by cbeattie-unitrends
Excellent! Thank you for the reassurance.
Re: Missing autopostgresqlbackup
Posted: Tue Nov 01, 2016 10:32 am
by avandemore
Looks like your question is answered, are we ok to lock this thread?