Firefox 16, a treat for developers http://t.co/cnd27CzT
How to install Nagios on Sabayon /Gentoo
Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go wrong and again when they get better.
Nagios was originally designed to run under Linux, but also runs well on other Unix variants. It is free software, licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Before to start, if you want to install Nagios in other linux distros, please check our previous posts.
To install and configure nagios in Sabayon/Gentoo please follow the steps as described bellow:
1- INSTALL NAGIOS
You can install Nagios in Sabayon using the following command:
emerge nagios nagios-plugins net-snmp
2- Make .htaccess and Place this file inside the /usr/share/nagios/htdocs and /usr/lib/nagios/cgi-bin directories.
AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/auth.users Require valid-user
3- Creating the nagiosadmin user:
Use the following command to create the nagios admin user:
htpasswd2 -c /etc/nagios/auth.users nagiosadmin
4-Add nagios to apache group
usermod -a -G nagios apache
chown nagios:nagios /etc/nagios/auth.users
chown nagios:nagios /usr/share/nagios
5- Add Nagios Alias for Apache: (/etc/apache2/modules.d)
sabayon6 modules.d # vi 99_nagios3.conf
Add this lines :
<IfDefine NAGIOS> ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/ <Directory "/usr/lib/nagios/cgi-bin/"> AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all </Directory> Alias /nagios /usr/share/nagios/htdocs <Directory "/usr/share/nagios/htdocs"> AllowOverride AuthConfig Order allow,deny Allow from all </Directory> </IfDefine>
6- Start Nagios and apache
# /etc/init.d/nagios start # /etc/init.d/apache2 start
Open the Browser http://ip/nagios or http://hostname/nagios and lopinf with your nagios admin created
If you have any question please comment this post or post in the forum. Thanks
Like us on Facebook
This week Top Posts
- Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
- Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
- Install and Configure Samba share in Ubuntu 13.04 Raring Ringtail , 12.10, 12.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comment(s) |
- How to use Remote Desktop in Ubuntu : Sometimes, we need to access our computer from other locations when we’re not at home and such. This...0 comment(s) |
- Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
- How to disable/change default PDF viewer in Mozilla Firefox
- Dictionaries in Python
- How to Install uTorrent Client on Ubuntu/Debian/Linux Mint
- Lists in Python
- Argument Handling in Python
- Setup your own Wikipedia like website using MediaWiki
- Administer your Server using Ajenti Server Manager
- “Brand New” Unixmen Forum is Now Live!
- How To: Disable or Enable Guest Account in Ubuntu 13.04
- Setup Your Own YouTube Like Website Using ClipBucket
Copyright © 2008-2013 Unixmen.com .