Roots cronjob after upgrade 3.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Roots cronjob after upgrade 3.1

Post by arnab.roy »

Hi Guys,

I had some cornjob setup on our XI box for the root user to run scheduled backups etc. They seem to have stopped working ever since upgrade to 3.1 any reasons why ?

Cheers
Arnab
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Roots cronjob after upgrade 3.1

Post by scottwilkerson »

Actually this was a bug in 3.0 which was the cause of us putting out 3.1 so quickly.

You should have a backup of your old root crontab in /tmp/root.crontab.orig

You should be able to restore this with

Code: Select all

crontab -u root /tmp/root.crontab.orig
You will want to edit the crontab after this and remove these lines as they have been moved to the /etc/cron.d/nagiosxi

Code: Select all

# Backup MySQL & PostgreSQL Databases
0   7 * * * root   /root/scripts/automysqlbackup
0   8 * * * root   /root/scripts/autopostgresqlbackup
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked