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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
01-07-2003, 02:30 PM
|
#1
|
Member
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90
Rep:
|
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)
|
|
|
01-07-2003, 02:32 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
I don't know the program, but it looks like a configuration problem. The default configuration may not be OK.
|
|
|
01-07-2003, 02:44 PM
|
#3
|
Member
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90
Original Poster
Rep:
|
I figured that I have something misconfigured, I was hoping that someone could let me know what that is. Thanks
|
|
|
01-07-2003, 03:11 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Maybe post your .conf file? If it's a configuration issue someone will be able to help you after reading it.
|
|
|
01-07-2003, 03:17 PM
|
#5
|
Member
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90
Original Poster
Rep:
|
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
|
|
|
01-07-2003, 03:21 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
The error messages mention 'Website#1', 'Website #2' and 'nt1'. So you should post all the files they're mentioned in.
|
|
|
02-01-2003, 11:58 AM
|
#7
|
LQ Newbie
Registered: Feb 2003
Posts: 2
Rep:
|
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
|
|
|
02-01-2003, 12:54 PM
|
#8
|
LQ Newbie
Registered: Feb 2003
Posts: 2
Rep:
|
ANSWER!!!!!
Hey Shelby... do this: in dependencies.cfg put # at the start of all lines, like comentaries in C. Try it!
bye
|
|
|
02-02-2003, 10:22 AM
|
#9
|
Member
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90
Original Poster
Rep:
|
Thanks, I will give a shot tommorow.
|
|
|
02-06-2003, 01:24 PM
|
#10
|
LQ Newbie
Registered: Dec 2001
Location: Left Coast, USA
Distribution: Redhat 2.1 AS
Posts: 7
Rep:
|
I deleted my dependencies.cfg and did a touch /usr/local/nagios/etc/dependencies.cfg <enter>
|
|
|
02-06-2003, 01:36 PM
|
#11
|
LQ Newbie
Registered: Dec 2001
Location: Left Coast, USA
Distribution: Redhat 2.1 AS
Posts: 7
Rep:
|
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
|
|
|
03-10-2003, 01:36 AM
|
#12
|
LQ Newbie
Registered: Jan 2002
Location: dallas
Distribution: redhat
Posts: 3
Rep:
|
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.
|
|
|
09-12-2003, 09:58 AM
|
#13
|
LQ Newbie
Registered: Sep 2003
Location: TN
Distribution: RedHat 8
Posts: 2
Rep:
|
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.
|
|
|
11-13-2003, 12:39 PM
|
#14
|
Member
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419
Rep:
|
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.
|
|
|
06-18-2005, 09:05 PM
|
#15
|
Member
Registered: Nov 2003
Location: Romania
Distribution: Redhat Linux , Fedora & SuSe
Posts: 46
Rep:
|
Try my nagios tutorial HERE I will update it as i work on it
|
|
|
All times are GMT -5. The time now is 01:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|