LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-07-2003, 02:30 PM   #1
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Rep: Reputation: 15
Question Problems trying to start Nagios...


I need some help getting started on Nagios. When I try to type ./nagios ../etc/nagios.conf, I get the following error(s) (see below). This is a Redhat 8 box with Apache loaded. I did not encounter any problems when I compiled it. Thanks in advance

Error: Dependent service specified in service dependency for service 'Website #2' on host 'nt1' is not defined anywhere!
Error: Service specified in service dependency for service 'Website #2' on host 'nt1' is not defined anywhere!
Error: Service dependency definition for service 'Website #2' on host 'nt1' is circular (it depends on itself)!
Error: Dependent service specified in service dependency for service 'Website #2' on host 'nt1' is not defined anywhere!
Error: Service specified in service dependency for service 'Website #2' on host 'nt1' is not defined anywhere!
Error: Service dependency definition for service 'Website #2' on host 'nt1' is circular (it depends on itself)!
Error: Dependent service specified in service dependency for service 'Website #1' on host 'nt1' is not defined anywhere!
Error: Service specified in service dependency for service 'Website #1' on host 'nt1' is not defined anywhere!
Error: Service dependency definition for service 'Website #1' on host 'nt1' is circular (it depends on itself)!
Error: Dependent service specified in service dependency for service 'Website #1' on host 'nt1' is not defined anywhere!
Error: Service specified in service dependency for service 'Website #1' on host 'nt1' is not defined anywhere!
Error: Service dependency definition for service 'Website #1' on host 'nt1' is circular (it depends on itself)!
Bailing out due to errors encountered while running the pre-flight check. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=7375)
 
Old 01-07-2003, 02:32 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I don't know the program, but it looks like a configuration problem. The default configuration may not be OK.
 
Old 01-07-2003, 02:44 PM   #3
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
I figured that I have something misconfigured, I was hoping that someone could let me know what that is. Thanks
 
Old 01-07-2003, 03:11 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Maybe post your .conf file? If it's a configuration issue someone will be able to help you after reading it.
 
Old 01-07-2003, 03:17 PM   #5
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
There are about 14 conf files, so I am not sure which to post. If I could narrow it down to one then I would post it. Thanks again
 
Old 01-07-2003, 03:21 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The error messages mention 'Website#1', 'Website #2' and 'nt1'. So you should post all the files they're mentioned in.
 
Old 02-01-2003, 11:58 AM   #7
xeux
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Unhappy Nagios CGI



Hi to all.

Im trying to install Nagios over Redhat 8.0. but when i try to see de Host status and other options, a message goes out saing to me that a security problem whith the CGI is happenning, that i dont have permit to enter to see the information.

I have a Linux Box with RedHat 7.2 and all works fine, no problems at all. But with 8.0 dosent works.

Anybody Knows about an RPM for 8.0???


With respect to the problem of shelby pls, see the cfg files: hosts, services and hostsgroups there is the problem and run from /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg, if you have any problem there will be relfected.

Bye,

Xeux
 
Old 02-01-2003, 12:54 PM   #8
xeux
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Talking ANSWER!!!!!



Hey Shelby... do this: in dependencies.cfg put # at the start of all lines, like comentaries in C. Try it!

bye
 
Old 02-02-2003, 10:22 AM   #9
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks, I will give a shot tommorow.
 
Old 02-06-2003, 01:24 PM   #10
dbCooper
LQ Newbie
 
Registered: Dec 2001
Location: Left Coast, USA
Distribution: Redhat 2.1 AS
Posts: 7

Rep: Reputation: 0
I deleted my dependencies.cfg and did a touch /usr/local/nagios/etc/dependencies.cfg <enter>
 
Old 02-06-2003, 01:36 PM   #11
dbCooper
LQ Newbie
 
Registered: Dec 2001
Location: Left Coast, USA
Distribution: Redhat 2.1 AS
Posts: 7

Rep: Reputation: 0
Assuming you have installed to default locations... run this command and reply the output here...

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
 
Old 03-10-2003, 01:36 AM   #12
adamemery
LQ Newbie
 
Registered: Jan 2002
Location: dallas
Distribution: redhat
Posts: 3

Rep: Reputation: 0
nagios config

still a newbie but i ran into the same problem. whats really cool about nagios is that when you verify the nagios.cfg file it tells you what line in what config file is messed up. very, very nice.
 
Old 09-12-2003, 09:58 AM   #13
Greyson
LQ Newbie
 
Registered: Sep 2003
Location: TN
Distribution: RedHat 8
Posts: 2

Rep: Reputation: 0
Hi all, I'm new to Linux myself and my first project is Nagios. I'm running Redhat 8 with Apache. I have verified all of my configuration files and even created authorization files for my users, but for some reason when I go to the webpage http://localhost/nagios/ I can't log in. It gives me the log in box and when I put user id and password in it just pops the box back up. I think that possibly Apache is not able to read my htpasswd.users file, but I've gone through the instructions back and forth and have started over 3 times with out any success. I guess I could just run it with out the web interface, but I'm a Windows guy and am not comfortable with that yet. Any ideas?

Sorry to throw this into your post shelby. but I would recommend just as others have, run the verify script it points out every little mistake you have. Thx for any replies.
 
Old 11-13-2003, 12:39 PM   #14
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Sounds like you have not setup your .htaccess files or your web server cant read them.

Take a look at my demo configs page at [url]http://demo.square-box.com[url] If you read the apache section it will tell you all you need to know about setting up authentication on your web server.

The " you are not authorised" messages are probably being generated by your cgi.cfg file

look for lines in your cgi.cfg

use_authentication=1 #use authentication
authorized_for_system_information=someuser #someuser is authorised
authorized_for_configuration_information=someuser #someuser is authorised

You can of course put in an * here and allow anyone to be authenticated and granted access, note this is bad.


Last edited by mijohnst; 11-13-2003 at 03:41 PM.
 
Old 06-18-2005, 09:05 PM   #15
katmai90210
Member
 
Registered: Nov 2003
Location: Romania
Distribution: Redhat Linux , Fedora & SuSe
Posts: 46

Rep: Reputation: 15
Try my nagios tutorial HERE I will update it as i work on it
 
  


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 Addon NRPE didnt start? dwarf007 Linux - Software 3 04-27-2011 01:38 AM
problems with Nagios on check_overcr fcastells Linux - Software 0 10-26-2005 08:43 AM
how to start nagios? dwarf007 Linux - Software 5 10-02-2005 04:59 PM
Problems with nagios config ignus Linux - Software 4 07-26-2005 08:17 AM
Nagios and NagMIN problems pnh73 Linux - Software 7 11-20-2004 04:28 AM

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

All times are GMT -5. The time now is 10:53 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