LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2006, 01:35 AM   #1
mhmfasy
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Rep: Reputation: 0
nagios


hi,
can anyone help me how to install "NAGIOS". some say it is the best network monitoring tool. i am using debian 2.6 kernel. once i tried to install by #apt-get install nagios-common , it got installed but cant run, or i want to know how to make it run.


fasy
 
Old 02-17-2006, 08:14 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
I recently installed Nagios on a little test server here at home, just to see it in action. It's not for the faint of heart, and my distro is Fedora 4, but I'd be happy to share with you any of my config settings. I have it monitoring a single host -- the host the server is installed on -- not multiple hosts. I got sidetracked onto something else before I could get it set up on a second host.

In general, you'll need a nagios server that runs apache, and you'll need to install the nagios plugins that provide the commands nagios uses to monitor processes, network connections, and so on.
 
Old 02-20-2006, 02:13 AM   #3
mhmfasy
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Original Poster
Rep: Reputation: 0
hi jclburn,

thanx alot for your reply. i understand what you said. but, can you pls. give it detail how to start working on nagios.i installed it and the nagios service is running. but i can't get the monitoring screen. may be there is a command for that? pls. can you give it in detail.

regds,
fay
 
Old 02-20-2006, 06:39 AM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
What did you use for Alias and ScriptAlias directives for nagios in httpd.conf? Should look something like this:

ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/

Alias /nagios/ /usr/share/nagios/html/

In order to access nagios from a remote host, I point my browser to http://petrel/nagios/cgi-bin/status.cgi (petrel is the hostname of my test server).
 
Old 02-20-2006, 09:49 AM   #5
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
I've been using Nagios for about 4-5 months now and it really is an incredible tool, though I know I've just barely scratched the surface in using it. You can monitor almost anything on local and remote hosts like ping and http services. You can even run disk and CPU load checks on remote hosts. Awesomeness.

There is actually a forum dedicated to Nagios which I know you will find helpful. I am registered there under the username SonOfThunder. I'll be happy to help you as well, and there are many many people there that can help you.

As a beginner's tip, do not install the beta versions of Nagios, or even the quote, un-quote "stable" 2.0 version, as the documentation is incomplete. The 1.X stable releases would be your best choice for now.

Hope to see you there!

~Myles

Last edited by Dmjmusser; 02-20-2006 at 09:51 AM.
 
Old 02-20-2006, 10:03 AM   #6
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by mhmfasy
hi jclburn,

thanx alot for your reply. i understand what you said. but, can you pls. give it detail how to start working on nagios.i installed it and the nagios service is running. but i can't get the monitoring screen. may be there is a command for that? pls. can you give it in detail.

regds,
fay
Actually, if you've configured things correctly, pointing a browser to http://nagiosserver/cgi-bin/ should give you a Forbidden Error. You access the CGI's through the main web interface, which should be accessed as http://nagiosserver/nagios.

~Myles

Last edited by Dmjmusser; 02-20-2006 at 10:04 AM.
 
Old 02-20-2006, 03:23 PM   #7
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally Posted by Dmjmusser
Actually, if you've configured things correctly, pointing a browser to http://nagiosserver/cgi-bin/ should give you a Forbidden Error. You access the CGI's through the main web interface, which should be accessed as http://nagiosserver/nagios.

~Myles
Mine behaves just the opposite; I get the forbidden error when I access nagios, but accessing cgi-bin directly works just fine. Goes to show that I don't really have a good handle on it yet.
 
Old 02-20-2006, 05:34 PM   #8
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by jcliburn
Mine behaves just the opposite; I get the forbidden error when I access nagios, but accessing cgi-bin directly works just fine. Goes to show that I don't really have a good handle on it yet.
Hm...well, looking at what you've posted, I can see you set up your ScriptAlias wrong. You've made up a directory that, in your directory structure, should not exist. Also, you need quite a bit more than just those two lines (unless you're not showing your entire config for your web interface. Here's how the two aliases should be set up:

#Create an Alias for Nagios CGIs.
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

#Make HTML files accessible via Apache web server.
Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>


Hope this helps. If not, check out http://nagios.meulie.net Lots of help to be found there.

~Myles
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios chucker8 Linux - Software 3 01-31-2006 01:57 PM
Nagios? suresheva31 Linux - General 2 10-13-2004 07:55 AM
About NAGIOS Redhat_guy Linux - Networking 3 06-30-2004 01:43 PM
Nagios VincentB Linux - Software 3 09-09-2003 09:20 AM
Nagios markus1982 Linux - Software 1 04-01-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration