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?
Missing autopostgresqlbackup
Re: Missing autopostgresqlbackup
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
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
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:cbeattie-unitrends wrote:is it safe to remove that line from /etc/cron.d/nagiosxi?
- Fixed clean install adding the postgresql backup script even though postgres isn't installed [TPS#9878] -JO
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
cbeattie-unitrends
- Posts: 84
- Joined: Mon Oct 10, 2016 2:51 pm
Re: Missing autopostgresqlbackup
Excellent! Thank you for the reassurance.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Missing autopostgresqlbackup
Looks like your question is answered, are we ok to lock this thread?
Previous Nagios employee