Problem in configuring the Nagios
Marc Powell
marc at ena.com
Tue Nov 22 16:08:23 CET 2005
You have two command{} definitions in minimal.cfg named check-host-alive. command_name's must be unique. You can probably just remove the duplicate definition and be OK unless you've modified it in some way.
--
Marc
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Lee Ball
> Sent: Tuesday, November 22, 2005 9:02 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Problem in configuring the Nagios
>
> Mrutyunjaya Dash wrote:
>
> Hi,
>
>
>
> This is the out put I got when I executed the command
>
>
>
> [root at cvtracker nagios]# bin/nagios -v etc/nagios.cfg
>
>
>
> Nagios 2.0b4
>
> Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
>
> Last Modified: 08-02-2005
>
> License: GPL
>
>
>
> Reading configuration data...
>
>
>
> Error: Command 'check-host-alive' has already been defined
>
> Error: Could not register command (config file
> '/opt/nagios/etc/minimal.cfg', starting on line 76)
>
>
>
> ***> One or more problems was encountered while processing the
> config files...
>
>
>
> Check your configuration file(s) to ensure that they contain
> valid
>
> directives and data defintions. If you are upgrading from a
> previous
>
> version of Nagios, you should be aware that some
> variables/definitions
>
> may have been removed or modified in this version. Make sure
> to read
>
> the HTML documentation regarding the config files, as well as
> the
>
> 'Whats New' section to find out what has changed.
>
>
>
>
>
> Regards,
>
>
>
>
>
>
> ________________________________
>
>
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Thomas.Zimmer at oppenheim.de
> Sent: Tuesday, November 22, 2005 8:24 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Problem in configuring the Nagios
>
>
>
> I assume you configured Nagios ,and started the process?
>
>
>
> Did you verify your config with '..../bin/nagios -v
> ....etc/nagios.cfg' ?
>
>
>
> Greetz.
>
> -----Ursprüngliche Nachricht-----
> Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-
> users-admin at lists.sourceforge.net] Im Auftrag von Mrutyunjaya Dash
> Gesendet: Dienstag, 22. November 2005 15:40
> An: nagios-users at lists.sourceforge.net
> Betreff: [Nagios-users] Problem in configuring the Nagios
>
> Hi Nagios Experts,
>
> I am very much new to nagios, I have just untared, compiled,
> make and installed. I would just let you all know how exactly I installed
>
> ./configure --prefix=/opt/nagios --with-cgiurl=/nagios/cgi-bin
> --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=nagios
>
> make all
>
> make install
>
> make install-init
>
> make install-commandmode
>
> make install-config
>
> Now when I trying to access the nagios interface, I am able to
> navigate to the nagios main page but the cgi file are not working.
>
> The configuration whatever I have made in apache configuration
> file for nagios is like as below.
>
> Alias /nagios /opt/nagios/share
>
> <Directory "/opt/nagios/share">
>
> Options None
>
> AllowOverride AuthConfig
>
> Order allow,deny
>
> Allow from all
>
> </Directory>
>
> ScriptAlias /nagios/cgi-bin/ "/opt/nagios/sbin/"
>
> <Directory "/opt/nagios/sbin">
>
> AllowOverride None
>
> Options ExecCGI
>
> Order allow,deny
>
> Allow from all
>
> </Directory>
>
> Please help me to resolve this issue.
>
> Regards,
>
> Mrutyunjaya Dash
>
> Ahhh, ok that helps. What is the contents of your minimal.cfg file
> (removing the bits that are confidential).
>
>
> --
> Lee Ball
> 08707 45 87 14
> effective it
> ------------------------------------------------------- This SF.Net email
> is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss
> Training Course. Free Certification Exam for All Training Attendees
> Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________ 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
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
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