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