Google Plus

How to install Nagios on Sabayon /Gentoo

Written by Mel Kham on . Posted in Linux tutorials

Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go nagios-logowrong 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

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Barnaby Dawson

    I just followed these instructions. I also needed to update /etc/conf.d/apache2 to add the flag -D NAGIOS on the APACHE2_OPTS line.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Adhraa

|

Greate tutorial :)

pigmej

|

Just one thing:

What about pep8 in your python code ? How can you give ‘tutorials’ on quite popular website, of such a bad quality ?

Amit Rai

|

I just renamed shared.xml and it logged in and created a new shared.xml.

DB Griffin

|

Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!

If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.

Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!

Anders Jackson

|

As I understand it so do VLC use same encoders as ffmpeg. And yes, there are less code that can break when you use command line instead of a graphical UI.

And may I ask what mono has to do with VLC? *facepalm*

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .