Page 1 of 1

install-crontab-nagios missing while upgrading Nagios

Posted: Wed Mar 14, 2012 1:22 pm
by TSCAdmin
Hello,

We are running Nagios XI 2009R1.3. I was trying to upgrade the install to xi-2011r2.2 and then got the following error:

Code: Select all

./upgrade: line 215: ./install-crontab-nagios: No such file or directory
I looked the directory tree but could not find install-crontab-nagios script which has, unfortunately, messed up the Nagios configuration and it doesn't seem to work anymore.

How can I fix this?

Thanks in advance.

Re: install-crontab-nagios missing while upgrading Nagios

Posted: Wed Mar 14, 2012 1:34 pm
by mguthrie
Looks like our test missed that in our upgrade tests, that release is pretty old. Here's a workaround.

Code: Select all

cd /tmp/nagiosxi
vi install-crontab-nagios
Add this to the file:

Code: Select all

#!/bin/sh

# Install Nagios XI cron jobs
install -m 644 nagiosxi/nagiosxi.cron.d /etc/cron.d/nagiosxi
Save and exit:

Code: Select all

chmod +x install-crontab-nagios
./upgrade
See if that does that trick.

Re: install-crontab-nagios missing while upgrading Nagios

Posted: Fri Mar 16, 2012 4:55 am
by TSCAdmin
Hello Mike, it seems to have resolved the issue. Many thanks :)