install-crontab-nagios missing while upgrading Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

install-crontab-nagios missing while upgrading Nagios

Post 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.
Last edited by TSCAdmin on Fri Mar 16, 2012 4:56 am, edited 1 time in total.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: install-crontab-nagios missing while upgrading Nagios

Post 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.
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: install-crontab-nagios missing while upgrading Nagios

Post by TSCAdmin »

Hello Mike, it seems to have resolved the issue. Many thanks :)
Locked