Problem in starting nagios

Carlos de Santa-Ana Garcia carlos at dsag.jazztel.es
Sun Jun 19 23:39:45 CEST 2011


Hi

-- Nagios is running, it have a PID,.

-- You cant access the web because its not installed or configured:

         Look for nagios.conf at /etc/apache2/conf.d

It must look like this if you installed nagios in/usr/local/nagios:


----------------------------------------------------------------------------

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file.  Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user
</Directory>

----------------------------------------------------------------------------------------------------------------------------------


Greeets.



El 19/06/2011 10:46, nag ios escribió:
> I have installed the plugins and tried but in the browser when typed
>
> http://localhost/nagios/
>
> it didnt work , getting the error in browser as
>
>
>   Not Found
>
> The requested URL /nagios was not found on this server.
>
> ------------------------------------------------------------------------
> Apache/2.2.17 (Ubuntu) Server at localhost Port 80
>
>
>
> On Sun, Jun 19, 2011 at 1:55 PM, Kumar, Ashish <xml.devel at gmail.com 
> <mailto:xml.devel at gmail.com>> wrote:
>
>
>     On 19 June 2011 13:43, nag ios <nagiostool at gmail.com
>     <mailto:nagiostool at gmail.com>> wrote:
>
>         When i ran this command
>         sudo /usr/local/nagios/bin/nagios 
>         /usr/local/nagios/etc/nagios.cfg -d &
>
>         I got the following output is anything wrong?????
>
>         [1] 6369
>         krishna at krishna:/usr/local/nagios/etc$
>         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
>         Nagios 3.2.3 starting... (PID=6370)
>         Local time is Sun Jun 19 13:35:15 IST 2011
>         sh: /usr/local/nagios/libexec/check_ping: not found
>         Warning: Return code of 127 for check of host 'localhost' was
>         out of bounds. Make sure the plugin you're trying to run
>         actually exists.
>         sh: /usr/local/nagios/libexec/check_load: not found
>         Warning: Return code of 127 for check of service 'Current
>         Load' on host 'localhost' was out of bounds. Make sure the
>         plugin you're trying to run actually exists.
>
>
>
>      Smells like you haven't installed nagios-plugins pack.
>     http://nagios.org/download/plugins
>
>
>     ------------------------------------------------------------------------------
>     EditLive Enterprise is the world's most technically advanced content
>     authoring tool. Experience the power of Track Changes, Inline Image
>     Editing and ensure content is compliant with Accessibility Checking.
>     http://p.sf.net/sfu/ephox-dev2dev
>     _______________________________________________
>     Nagios-users mailing list
>     Nagios-users at lists.sourceforge.net
>     <mailto:Nagios-users at lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/nagios-users
>     ::: Please include Nagios version, plugin version (-v) and OS when
>     reporting any issue.
>     ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
>
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110619/6f8f81a7/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list