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 02-16-2009, 06:34 PM   #1
nanie
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
nagios installation


Hello Sirs:

I'm new in the world of linux but I already understand it. My Boss ask me to put up a Nagios machine to our monitorring, I try to install it following the procedure in the Nagios website, bust still no lock of making it running.

Can you give me some points on how to start or even a small documantation host I can test for example my local machine.

At the moment I have'nt start yet the nagios, when i issue the $ service nagios start... it say that I have a configuration error on nagios.cfg.

Please help..

nanie

Last edited by Tinkster; 02-16-2009 at 08:39 PM.
 
Old 02-16-2009, 08:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

Welcome to LQ!


I've split out your post from the other thread; please do tell which
part of the documentation you were unable to follow, so we can give
you well-targeted guidance.


Cheers,
Tink
 
Old 02-16-2009, 11:26 PM   #3
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Well, if there's a configuration error in nagios.cfg, posting it may help

Or perhaps check their docs? http://www.nagios.org/docs/
 
Old 02-16-2009, 11:39 PM   #4
nanie
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Hi,

Welcome to LQ!


I've split out your post from the other thread; please do tell which
part of the documentation you were unable to follow, so we can give
you well-targeted guidance.


Cheers,
Tink
@Tinkster

Thank you for the reply, sorry for my ingnorance, just new in here.
Back to my question.
I read and follow instruction on the nagios website the documentation, I install it to my centos box, succeded.

I dont know how I will ,modify, the nagios.cfg, first I've like to make it start so I can perhaps monitor my local machine, but I always got error. please see attach:

[root@nagios-server nagios]# nagios -v nagios.cfg

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 8 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

seems to be ok, then i command

[root@nagios-server nagios]# service nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.

I already enable the httpd, I can access the web interface to other machine, but if i click on the function ie Tackical Overview, i got this maessage:

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.

Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.


Please help and guide, so desperate, I really nagios to work

nanie
 
Old 02-16-2009, 11:43 PM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
It says to check the nagios log file. Did you check it? Look in for some errors. If you do not understand, just post them here.
 
Old 02-16-2009, 11:43 PM   #6
nanie
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ranguvar View Post
Well, if there's a configuration error in nagios.cfg, posting it may help

Or perhaps check their docs? http://www.nagios.org/docs/
@ Ranguvar

honestly saying I dont know where to start I just follow the instruction, btw im using centos, is it ok if look on Suse documentation?


your help is highly appriciated
 
Old 02-16-2009, 11:47 PM   #7
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Likely.
 
Old 02-26-2009, 07:14 AM   #8
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Rep: Reputation: 15
Nanie desribe step by step what you have done, clearly.
Did you install all the prerequisite perl modules??
Goto nagios.cfg and check
Where are the command definitions pointing to?
Where are the service definitions pointing to?
Check the nagios user and group, do they exist?
Have you checked nagios log file. Report on errors?
The service will not start if information is incorrect.

Maybe it is worth erasing all and start again slowly.
 
Old 03-02-2009, 12:04 AM   #9
nanie
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i_nomad View Post
Nanie desribe step by step what you have done, clearly.
Did you install all the prerequisite perl modules??
Goto nagios.cfg and check
Where are the command definitions pointing to?
Where are the service definitions pointing to?
Check the nagios user and group, do they exist?
Have you checked nagios log file. Report on errors?
The service will not start if information is incorrect.

Maybe it is worth erasing all and start again slowly.
@i_nomad
Thanks for the reply and also I wanna thanks everyone for all your comment.
Now I started again in zero install everything, and finally make it run.

But now I've facing again problem and I know this is just the start I hope you can still answer forgive me.

I add one windows machine to monitor, I follow all things listed on the documentation, and now here's the problem.

I dont know if its a problem or just a warning.

please help again.



I receive email saying:
PROBLEM Service Alert: My Windows Server/W3SVC is CRITICAL
PROBLEM Service Alert: My Windows Server/Uptime is CRITICAL
PROBLEM Service Alert: My Windows Server/NSClient++ Version is CRITICAL
PROBLEM Service Alert: My Windows Server/Memory Usage is CRITICAL
PROBLEM Service Alert: My Windows Server/Explorer is CRITICAL
and so forth.
 
Old 03-09-2009, 08:43 PM   #10
nanie
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Dear all,
I manage to install nagios and lucky add one windows machine and a Linux,
My question is, if you wish to help me, how do I create template so that I can add more windows and Linux machine in on single file.

So far I having fun configuring nagios.

Please help if possible.
nanie
 
  


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
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
nagios in debian how to use after installation shirishbhalekar Debian 2 01-30-2009 09:30 AM
Nagios installation issue stancy.abraham Linux - Networking 3 02-01-2008 05:28 AM
Nagios installation SlacUser Linux - Software 5 06-13-2007 10:50 AM
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


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