Page 1 of 1

Can't get update to install

Posted: Wed Dec 28, 2011 7:41 pm
by jbruyet
Hey all, I just installed Nagios and I'm running v3.2.1. I checked for updates from the start page on my Nagios server and saw that there's a newer version. I just downloaded the update file, copied it to my Nagios server, un-tarred it and now I'm stuck. I'm not new to Linux but I do have a ways to go before I feel like I truly know what I'm doing. So, I went to the new Nagios folder but I can't figure out how to run the update. There's an install-sh file but running that gives me "install: no input file specified." Ok, so what file do I need to specify and how do I specify it? Googling this was pointless and what few posts I found here didn't apply.

Thanks,

Joe B

Re: Can't get update to install

Posted: Thu Dec 29, 2011 2:22 pm
by mguthrie
Note that an "upgrade" will only work smoothly if you previously installed from source, not from a package manager like yum or apt. This can be identified if your config files are located in /usr/local/nagios/etc, then your install is from source. For most installs, something like the following should work.

Code: Select all

	./configure --with-command-group=nagcmd
	make all
	make install
	make install-init
	make install-commandmode

Re: Can't get update to install

Posted: Thu Dec 29, 2011 3:19 pm
by jbruyet
Thanks mguthrie, that got me started. I made it down to make install and that ended with the following two errors:

/usr/bin/install: omitting directory `includes/rss/extlib'
/usr/bin/install: omitting directory `includes/rss/htdocs'
/usr/bin/install: omitting directory `includes/rss/scripts'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/jobee/Downloads/nagios/html'
make: *** [install] Error 2

I looked at the previous install commands and everything else looked like it ran fine so I kept going. Everything looked fine after that but when I run Nagios my home page says I'm still running v3.2.1. That might not be too much of a problem because I just got the ok to get a VMware server going and I'll probably do a new Debian install for it and run Nagios on the VM instead of this whitebox. Which is the better way to install Nagios, using source or the package manager? Oh, and I'm running the install over an SSH connection from my workstation. Would that cause any problems?

Thanks,

Joe B

Re: Can't get update to install

Posted: Mon Jan 02, 2012 2:06 pm
by mguthrie
I wouldn't say there's a "better" way to install Nagios, but I personally prefer a source install, because then all of the Core documentation will match your installation perfectly, and then if you ever want to upgrade the source for a new release you don't have to wait for your distribution to re-package it.

However, I don't recommend doing a source install on a system that has already had a packaged install unless you really know what you're doing.

Core Documentation if you're interested. I work for Nagios and I still reference it almost daily ; )
http://nagios.sourceforge.net/docs/3_0/

Installing over ssh shouldn't make any difference.