LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2011, 08:34 AM   #1
anoxxi
LQ Newbie
 
Registered: Jun 2011
Location: portugal
Distribution: ubuntu
Posts: 3

Rep: Reputation: Disabled
How to add another Host to Nagios


Hi
I installed Nagios following the Quick Install method from the Nagios.org web site but now I would like to add and monitor another host.
I donīt find a way , I have for example replaced the ip number of the localhost(127.0.0.1 localhost.cfg) for another ip number
and I am able to monitor another computer that way.
But then I no longer MONITOR the localhost unless I replace the ip number in the localhost.cfg file. what I would like to do is to monitor both or more computers.
any help would be apreciated
 
Old 06-15-2011, 08:54 AM   #2
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
You need to add the host definition to $NAGIOS_PATH/etc/hosts.cfg and the services it will monitor to $NAGIOS_PATH/etc/services.cfg
 
0 members found this post helpful.
Old 06-15-2011, 09:51 AM   #3
anoxxi
LQ Newbie
 
Registered: Jun 2011
Location: portugal
Distribution: ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:"You need to add the host definition to $NAGIOS_PATH/etc/hosts.cfg and the services it will monitor to $NAGIOS_PATH/etc/services.cfg"
Thanks for prompt reply
This is my instalations path
(#/usr/local/nagios/etc/objects)

I Like to understand things correctly , I presume that I have to create the above shown cfg.files as they are not present in my Nagios installation ....and if so the question that comes to mind is were do I find the content for the files.
 
Old 06-16-2011, 06:09 AM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 528

Rep: Reputation: 78
Hi Anoxxi,

Usualy what I do I create one config file per host that I'm adding and organise them in folders by type of host. So if I want to remove a host I just remove the config file.
Ex: Printers, Routers, switchs, etc...


It depends what type of host you want to add, as you will not use the same client or protocol to add a windows machine or a router for example.
For a windows machine you will need to install the NSClient++, for a Linux/Unix machine the NRPE client and for printers/routers and many other network devices you will most likely use the SNMP protocol.

Just let me know if you need more help on the subject.
Best regards,
Angel.
Attached Thumbnails
Click image for larger version

Name:	Nagios.png
Views:	55
Size:	10.1 KB
ID:	7329  

Last edited by angel115; 06-16-2011 at 06:12 AM.
 
1 members found this post helpful.
Old 06-16-2011, 07:09 AM   #5
anoxxi
LQ Newbie
 
Registered: Jun 2011
Location: portugal
Distribution: ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your help
Finally some one that expresses them selves clearly.......I understood exactly what you said and I will work on solving this puzzle with your advice.........

it almost appears that we have a lot of techies out there that really need to learn how to express and explain things in a revealing fashion.
I am no Language monitor but I would recommend Bloggers to have others read what they wrote and see if they understand before posting or replying to a post.
 
0 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 notifications for a host problem cmx08 Linux - Software 1 07-20-2011 08:35 AM
Nagios - Connection Refused by host jack.deselms Linux - Newbie 6 01-05-2010 09:12 AM
LXer: Add Linux host to nagios server LXer Syndicated Linux News 0 06-22-2009 01:00 PM
nagios newbie - how to add a host in webinterface? browny_amiga Linux - General 2 08-15-2008 10:25 PM
nagios add more host hitesh_linux Linux - Software 0 07-06-2007 01:45 PM


All times are GMT -5. The time now is 06:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration