Nagios: Difference between revisions
From Mike Beane's Blog
m (New page: After 2+ years of uptime, my Nagios box went down unexpectedly and I decided to take the opportunity to create a new box. I used the following instructions from start to finish with mino...) |
mNo edit summary |
||
Line 1: | Line 1: | ||
After 2+ years of uptime, my Nagios box went down unexpectedly and I decided to take the opportunity to create a new box. | After 2+ years of uptime, my Nagios box went down unexpectedly and I decided to take the opportunity to create a new box using Fedora Core 9 with a fairly minimal install. | ||
I used the following instructions from start to finish with minor alterations and had good success: | I used the following instructions from start to finish with minor alterations and had good success: |
Revision as of 15:55, 17 August 2008
After 2+ years of uptime, my Nagios box went down unexpectedly and I decided to take the opportunity to create a new box using Fedora Core 9 with a fairly minimal install.
I used the following instructions from start to finish with minor alterations and had good success:
http://www.wallpaperama.com/forums/how-to-install-nagios-on-fedora-core-t6078.html
For my reference, here are the steps I used (minus passwords)
yum install httpd yum install gcc yum install glibc glibc-common yum install gd gd-devel /usr/sbin/useradd -m nagios passwd nagios /usr/sbin/groupadd nagcmd /usr/sbin/usermod -G nagcmd nagios /usr/sbin/usermod -G nagcmd apache mkdir ~/downloads cd ~/downloads wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz cd ~/downloads tar xzf nagios-3.0.3.tar.gz cd nagios-3.0.3 ./configure --with-command-group=nagcmd make all make install make install-init make install-config make install-commandmode make install-webconf htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin service httpd restart cd ~/downloads tar xzf nagios-plugins-1.4.12.tar.gz cd nagios-plugins-1.4.12 ./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install chkconfig --add nagios chkconfig nagios on /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg # import backed up cfg files to /usr/local/nagios/etc service nagios start # check http://localhost/nagios