Nagios Help
Hi,
I have configured nagios on my local VM machine and i got no error Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check But when i am unable to start nagios # service nagios start nagios: unrecognized service Can anybody help me to fix this issue ? Thanks in advance |
Can you show me the output of the following:
Code:
ls -al /etc/rc.d/init.d/nagios* ---------- Post added 03-23-11 at 10:29 PM ---------- And what distro are you using? |
# ls -al /etc/rc.d/init.d/nagios*
ls: /etc/rc.d/init.d/nagios*: No such file or directory |
Create a new file called nagios in /etc/rc.d/init.d/ with the following command and chmod it to 755:
Code:
touch /etc/rc.d/init.d/nagios Code:
#!/bin/sh |
# /etc/init.d/nagios start
/etc/init.d/nagios: line 1: kconfig:: command not found Executable file /usr/sbin/nagios not found. Exiting. |
Change these variable in init script according to your installation.
"NagiosBin=" "NagiosCfgFile=" |
Hi rajesh,
I think you forget this step while compiling nagios Quote:
|
Quote:
Not Found The requested URL /nagios was not found on this server. Apache/2.2.3 (CentOS) Server at localhost Port 80 Any idea ? I found both apache and nagios are running now. Thanks |
Hello,
You need to configure Apache in order to be able to access Nagios. Have a look at this documentation. Kind regards, Eric |
Hi rajesh,
Please while compiling do with complete documents, for nagios in nagios forums itself most of the details available, so please go through documents first http://www.ziddu.com/download/143199...agios.doc.html Download this doc, i hope its really useful for you, with out entry in Apache also its work fine, please disable the SELINUX context and try. |
I have a doubt whether need to do nagios installation on /etc or we can do any location like / ?
---------- Post added 03-24-11 at 10:33 AM ---------- Quote:
|
Hi rajesh,
Its your wish only u can install anywhere!!! |
Quote:
I have tried the steps mentioed in the wordfile and i get no error too.But i am not getting nagios page.I have disable setenforce 0 and tried but no lucky whether you have anyother idea ? |
Hi,
still its showing ?? Total Warnings: 0 Total Errors: 0 or any other error messages!!! please post the logs |
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 10-03-2010 License: GPL Website: http://www.nagios.org Reading configuration data... Read main config file okay... Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'... Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'... Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'... Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'... Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'... Read object config files okay... 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 |
Hi,
While restarting the nagios service it shows any error??? |
# service nagios start
Starting nagios: done. # service nagios status nagios (pid 709) is running... # service nagios restart Running configuration check...done. Stopping nagios: done. Starting nagios: done. |
Hi,
http://localhost/nagios/ while giving this url what error its showing in whether page not found or anything else..and plese check the /var/log/messages and post the error messages...i didnt know in which step you are exactly struggling that why i asked to post the messages... |
Anish really thanks for your effort in helping me
http://localhost/nagios Not Found The requested URL /nagios was not found on this server. Apache/2.2.3 (CentOS) Server at localhost Port 80 Mar 25 06:44:03 localhost nagios: Successfully shutdown... (PID=11442) Mar 25 06:44:04 localhost nagios: Nagios 3.2.3 starting... (PID=23955) Mar 25 06:44:04 localhost nagios: Local time is Fri Mar 25 06:44:04 PDT 2011 Mar 25 06:44:04 localhost nagios: LOG VERSION: 2.0 Mar 25 06:44:04 localhost nagios: Finished daemonizing... (New PID=23956) Mar 25 06:44:24 localhost nagios: SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;HTTP CRITICAL - No data received from host |
Quote:
but i think you doing some mistake while compiling so please put this entry in that path manually. i installed nagios in /usr/local/ so i mention in the above file that path please change according to your installation. and restart the httpd and nagios service...and try..i hope it works.. |
/etc/init.d/httpd restart
Stopping httpd: [ OK ] Starting httpd: [Fri Mar 25 11:57:07 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 298 will probably never match because it overlaps an earlier ScriptAlias. [Fri Mar 25 11:57:07 2011] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 315 will probably never match because it overlaps an earlier Alias. [ OK ] I am getting error when restarting httpd |
I can able to see the nagios.conf in the following location: /etc/http/conf.d/nagios.conf
|
Thanks for your great effort Anish i got the nagios page now.If i need any help i will get in touch with you
|
What is the default username and password of nagios ? can i know how to reset nagios default username and password please
|
5. Configure the web interface.
[root@localhost]# make install-webconf [root@localhost# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin New password: Re-type new password: Adding password for user nagiosadmin Please follow the steps numb 5 in the doc which i posted before this password only we'll give while accessing URL. Read The document properly and configure , go through the nagios documentation in nagios.org website. |
Hi rajesh,
Mark your thread as [SOLVED] if your questions are answered, and give reputation if you feel like it. |
Hey anishkumarv, way to copy part of my signature into your own. At least edit it a bit to change it up next time.
Josh |
Hi corp,
Ha Ha Ha!!!!!! :-) ;-) :-) |
You really thought that I wouldn't see that? :D LOL
|
Quote:
If you're motivated by money you'll stay chasing it. If you're motivated by passion you'll stay living it. Compare your signature!!! with me..lot of difference in that, don't argue for this like childish!!! we have lot of things in linux to discuss here....even if you thought i copied from yours mean also..i dont care..and i wont change!!! my signature for any reason..dont make me laugh lot..!!lolz!! |
Quote:
|
Hi rajesh!!!
If your problem solved means..regarding nagios....Mark your thread as [SOLVED] if your questions are answered, and give reputation if you feel like it........:-) |
Please stay on topic.
Kind regards |
Quote:
But to the OP - I just want to know if you have it all figured out. |
Forbidden
You don't have permission to access /nagios/ on this server. Apache/2.2.3 (CentOS) Server at localhost Port 80 I cant able to login even i try to reset the password of nagiosadmin Can you please help me on this ? |
Hi rajesh !!!
http://www.linuxquestions.org/questi...server-738536/ check out this link!!! It may helpful to u!!! |
Anish thanks.But still the problem presist i can see the nagios home page now .But when i click menus it prompt for username and password again.When i give the same username and password which i used for http://localhost/nagios is not working. do you have any idea about this ?
|
I am getting the following error in httpd error log
[Mon Mar 28 12:46:14 2011] [error] [client 127.0.0.1] access to /nagios/cgi-bin/status.cgi failed, reason: verification of user id 'nagiosadmin' not configured, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:15 2011] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /url/local/nagios/etc/htpasswd.users, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:15 2011] [error] [client 127.0.0.1] access to /nagios/cgi-bin/status.cgi failed, reason: verification of user id 'nagiosadmin' not configured, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:22 2011] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /url/local/nagios/etc/htpasswd.users, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:22 2011] [error] [client 127.0.0.1] access to /nagios/cgi-bin/status.cgi failed, reason: verification of user id 'admin' not configured, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:27 2011] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /url/local/nagios/etc/htpasswd.users, referer: http://localhost/nagios/side.php [Mon Mar 28 12:46:27 2011] [error] [client 127.0.0.1] access to /nagios/cgi-bin/status.cgi failed, reason: verification of user id 'nagios' not configured, referer: http://localhost/nagios/side.php [Mon Mar 28 12:47:52 2011] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/ [Mon Mar 28 12:52:52 2011] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/ [Mon Mar 28 12:57:52 2011] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/ |
anybody to help me to fix this issue ?
|
Hi,
Issue has been fixed by disable SELINUX |
All times are GMT -5. The time now is 11:25 AM. |