Tutorial: Installing Nagios in Fedora
Before installing Nagios, ensure that the following packages are installed: <ul><li>Apache
PHP
GCC Compiler
GD development libraries </li></ul>If not, login as root and install it. [ [email_address]  ~]$yum install httpd php gcc g...
Now we have to create a user account and a group for Nagios. Also add the apache user account to the created group. Become...
Create a temporary folder for the downloads and download the latest version of Nagios Core and plugins. http://www.nagios....
Extract the Nagios tarball [ [email_address]  ~]$cd downloads [ [email_address]  downloads]$tar xvzf nagios-3.x.x.tar.gz [...
Install the Nagios web config file in the Apache conf.d directory. [ [email_address]  nagios-3.x.x]$make install-webconf U...
Extract the Nagios plugins tarball [ [email_address]  ~]$cd downloads [ [email_address]  downloads]$tar xvzf nagios-plugin...
Check the Nagios configuration for errors. [ [email_address]  ~]$/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nag...
To start Nagios when the system boots type: [ [email_address]  ~]$chkconfig --add nagios [ [email_address]  ~]$chkconfig n...
Upcoming SlideShare
Loading in...5
×

Tutorial: Install Nagios in Fedora

7,513

Published on

Tutorial Install Nagios in Fedora

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
7,513
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
203
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Tutorial: Install Nagios in Fedora

  1. 1. Tutorial: Installing Nagios in Fedora
  2. 2. Before installing Nagios, ensure that the following packages are installed: <ul><li>Apache
  3. 3. PHP
  4. 4. GCC Compiler
  5. 5. GD development libraries </li></ul>If not, login as root and install it. [ [email_address] ~]$yum install httpd php gcc glibc glibc-common [ [email_address] ~]$:yum install gd gd-devel Install Nagios in Fedora
  6. 6. Now we have to create a user account and a group for Nagios. Also add the apache user account to the created group. Become root user and type: [ [email_address] ~]$useradd -m nagios [ [email_address] ~]$passwd nagios [ [email_address] ~]$groupadd nagcmd [ [email_address] ~]$usermod -a -G nagcmd nagios [ [email_address] ~]$usermod -a -G nagcmd apache Install Nagios in Fedora
  7. 7. Create a temporary folder for the downloads and download the latest version of Nagios Core and plugins. http://www.nagios.com/download [ [email_address] ~]$mkdir downloads [ [email_address] ~]$cd downloads Install Nagios in Fedora
  8. 8. Extract the Nagios tarball [ [email_address] ~]$cd downloads [ [email_address] downloads]$tar xvzf nagios-3.x.x.tar.gz [ [email_address] downloads]$cd nagios-3.x.x After this, we need to compile and install. [ [email_address] nagios-3.x.x]$./configure -–with-command-group=nagcmd [ [email_address] nagios-3.x.x]$make all [ [email_address] nagios-3.x.x]$make install [ [email_address] nagios-3.x.x]$make install-init [ [email_address] nagios-3.x.x]$make install-config [ [email_address] nagios-3.x.x]$make install-commandmode Install Nagios in Fedora
  9. 9. Install the Nagios web config file in the Apache conf.d directory. [ [email_address] nagios-3.x.x]$make install-webconf Use the htpasswd to create an account for logging into the Nagios web interface. htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin Install Nagios in Fedora
  10. 10. Extract the Nagios plugins tarball [ [email_address] ~]$cd downloads [ [email_address] downloads]$tar xvzf nagios-plugins-1.4.x.tar.gz [ [email_address] ~downloads]$cd nagios-plugins-1.4.x After this, we need to compile and install. [ [email_address] nagios-plugins-1.4.x]$./configure --with-nagios-user=nagios --with-nagios-group=nagios [ [email_address] nagios-plugins-1.4.x]$make [ [email_address] nagios-plugins-1.4.x]$make install Install Nagios in Fedora
  11. 11. Check the Nagios configuration for errors. [ [email_address] ~]$/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg If there are no errors, start Nagios [ [email_address] ~]$service nagios start [ [email_address] ~]$/etc/init.d/nagios start or Install Nagios in Fedora
  12. 12. To start Nagios when the system boots type: [ [email_address] ~]$chkconfig --add nagios [ [email_address] ~]$chkconfig nagios on Install Nagios in Fedora
  13. 13. If you have SELinux installed and with the enforcing mode by default, you probably get some errors in Nagios web interface. You'll need to change the SELinux context of some Nagios folders. chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share/ chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw/ Install Nagios in Fedora
  14. 14. Install Nagios in Fedora
  15. 15. ..:: Filipe Batista - 2009 ::.. filipebatista.bitdoo.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×