LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2008, 04:38 PM   #1
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Nagios Suggestions


Greetings:

I understand this is not a Nagios forum, but I know there are several Linux geniuses in our presence. I am getting my feet wet with UNIX administration and I successfully built a Nagios 3.0.2 server running 418 services. I am trying to find the best method for DNS resolution. I am not finding many tutorials for Ubuntu Hardy Heron. I am currently accessing the Nagios server by 64.**.***.*** and I would like to resolve it to nagios.mynetwork.net. What is the most effective method to accomplish the feat??


Thank you in advance.

-BreakTheWindows2008
 
Old 09-15-2008, 05:52 PM   #2
skidoo_23
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
Hi,

To address a machine by its hostname, it should have an entry in the appropriate DNS zone. Whoever looks after the DNS servers for mynetwork.net should be able to add an address record for your nagios server.

Alternatively, you can add a line to the hosts file of each machine that needs to access the nagios server. The line would look like this:

64.**.***.*** nagios.mynetwork.net

(Obviously with the correct IP address and hostname)

On Linux and other UNIX-style operating systems, the hosts file is /etc/hosts.

On Windows boxes, you can find it in c:\windows\system32\drivers\etc\hosts (assuming Windows is installed in c:\windows).

After adding this line to the hosts file, you may also need to restart your web browser so it picks up the new entry.

Hope that helps!
 
Old 09-16-2008, 09:25 AM   #3
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Nagios Suggestions

Quote:
Originally Posted by skidoo_23 View Post
Hi,

To address a machine by its hostname, it should have an entry in the appropriate DNS zone. Whoever looks after the DNS servers for mynetwork.net should be able to add an address record for your nagios server.

Alternatively, you can add a line to the hosts file of each machine that needs to access the nagios server. The line would look like this:

64.**.***.*** nagios.mynetwork.net

(Obviously with the correct IP address and hostname)

On Linux and other UNIX-style operating systems, the hosts file is /etc/hosts.

On Windows boxes, you can find it in c:\windows\system32\drivers\etc\hosts (assuming Windows is installed in c:\windows).

After adding this line to the hosts file, you may also need to restart your web browser so it picks up the new entry.

Hope that helps!
Thank you for the post and the advice. The server that hosts the domain (mynetwork.net) is running Fedora and it is surviving on its last leg. I would like to "clone" the DNS settings on the Fedora server to match my new Ubuntu server. What files do I need to copy/paste from the old server to the new box. I know the files will vary as they are running different versions of BIND. Any help ofr suggestions are greatly appreciated. After this is complete I can safely unplug the cord to the old server and do an Office Space to it!!!


-BreakTheWindows2008
 
Old 09-17-2008, 02:58 AM   #4
skidoo_23
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
Look for named.conf (usually /etc/named.conf) on the existing server. It will tell you which zones the server is authoritative for, and which files contain information for each zone.

Ubuntu will have a bunch of configuration files in /etc/bind. The configuration has been split for ease of use, so you may want to have a read at these first rather than just copying the files over.

Zone file syntax hasn't changed much over the years, but there may be one or two options in named.conf that need revising. Your best bet is to stop your new BIND server (BIND9?), put the old server's config in place (remembering to back up the existing config first!), then try starting BIND and see what happens.

BIND logs to the system log, so you'll see information appearing in /var/log/syslog (or possibly /var/log/daemon.log, depending how syslogd is configured).

If you get stuck, there's an excellent BIND9 configuration reference here:

http://www.bind9.net/manual/bind/9.2.5/Bv9ARM.html

Have fun!

S.
 
  


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
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 PM.

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