Here's a script I've written up to install icinga on ubuntu server. It's based on a script by Chuck Dudley but with a few extra additions. I don't do a lot of bash scripting so be gentle. Follow this install up by installing icinga-web using this script.
All you need is a vanilla server installation then run
before you run the script (read comments in the script for help).
NOTE: This script is in a purely "works for me" state. I have run this through successfully several times to test, but your mileage may vary. If you've got any improvements to add to the script please let me know, but I really don't have time to answer any problems you may have.
Once that's finished you can follow up by installing icinga-web and then install PNP4Nagios for some nice graphs.
15 comments:
I was lucky to stumble upon this so soon after it was posted. worked great for me on a freshly installed ubuntu 11.04
Cheers! :D
No problem! I use this for setting up vm's quickly, just set and forget. Good to hear it helped someone else out too. Also thanks for letting me know it works on 11.04, saves me some testing ;)
Impressive. The script works fine. Been really great.
Glad to hear it! Just made some changes so you can specify the version as a parameter. Tested using new versions (icinga_1.5.1, icinga-web_1.5.2 and PNP4Nagios_0.6.15) and it worked with no problems :)
I tried this on Ubuntu 10.04 running Cacti pre-installed and the script failed. Then I tried it one more time. I had to go back to the snapshot VM that I knew didn't have any Nagios on it and this script worked like a champ. Now I'm off to try the rest of your scripts. Thanks SOOO much.
Yeah the script assumes you've got a clean install of ubuntu server. If you tried to do an upgrade you'd probably end up with an ungodly mess ;)
Wow! This is awesome!
Thank's so much... Worked like a charm! :D
Ubuntu 11.10, Icinga 1.5.1
I had to change the line:
mysql-server mysql-client libdbi0 libdbi0-dev libdbd-mysql
to
mysql-server mysql-client ibdbi-dev libdbd-mysql
Sandro: you're right about the new packages in 11.10, thanks for posting the problem! I'm just testing out a solution now, if all goes well I'll post it up later on.
Hi,
i try it on Ubuntu Server 11.10.
I change the line echo "--------- INSTALLING MYSQL ---------"
PACKAGES="mysql-server mysql-client libdbi0 libdbi0-dev libdbd-mysql" to
echo "--------- INSTALLING MYSQL ---------"
PACKAGES="mysql-server mysql-client libdbi-dev libdbi0-dev libdbd-mysql" now it works wonderfull
Hi,
I can confirm that the script is running fine on debian squeeze.
Thanks very much,
lecturer
Excelent job!!! works like a charm with ubuntu 11.10 and icinga 1.6.1
Thanks
Matias
Thanks for the nice script, all scripts working fine (Icinga, icinga-web and pnp4nagios)... You're make a greate job...
Have a question about updates. How i can make it?
Thanks
Jürgen
Hello I run the script and didnt change the constants for the latest icinga version. I prob can go to the website and see a how to update icinga and do it manually is ther anything I should care for? any parameters your script use that I should use if I upgrade manually? thanks
Thanks very much for sharing your scripts - they worked wonders! have linked here from my blog, if thats ok, if not let me know and i will take it down :)
Matt Artley: No problem, us sysadmins have a hard enough job already, the more we can help each other out the better :)
HolaMeow: At this early stage you're probably better off starting over with a fresh install. Don't try running my scripts over an existing installation as they are designed for a new install.
Everyone wanting to use my scripts for upgrading, don't. You'll probably make a huge mess. I'm afraid you'll have to do upgrades manually. However it seems that the icinga team have a repo now, so you may not need these scripts for much longer.
Post a Comment