help with cfg's

Andreas Ericsson ae at op5.se
Wed Sep 1 14:51:55 CEST 2004


nettech at kmts.ca wrote:
> Hi,
> I am simply asking for help...yes my Linux/Unix knowledge is not as great
> as most, but at some point you yourself started looking at a command line
> and not knowing how to get to root
> Don
> 

Try this;
/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Add the -d switch if it gets going.

> 
> 
>>Because the configured user has no rights to the file?
>>
>>This isn't a nagios problem.  You need to learn more about
>>unix/linux/whatever.
>>
>>On Tue, Aug 31, 2004 at 04:05:07PM -0500, Don {KMTS}.Net Support wrote:
>>
>>>Actually when I try to run it I get this error:
>>>
>>>
>>>[root at localhost root]# /usr/local/nagios/bin/nagios nagios.cfg
>>>
>>>Nagios 1.2
>>>Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
>>>Last Modified: 02-02-2004
>>>License: GPL
>>>
>>>Error: Cannot open main configuration file '/root/nagios.cfg' for
>>>reading!
>>>Nagios 1.2 starting... (PID=4329)
>>>Bailing out due to one or more errors encountered in the configuration
>>>files.  Run Nagios from the command line with the -v option to verify
>>>your
>>>config before restarting. (PID=4329)
>>>[root at localhost root]#
>>>
>>>I have looked at the nagios.cfg file (it is in the appropriate folder)
>>>and I
>>>dont see why it is not starting.
>>>Any thoughts would be appreciated.
>>>Don
>>>
>>>
>>>-----Original Message-----
>>>From: Joe Rhett [mailto:jrhett at meer.net]
>>>Sent: Tuesday, August 31, 2004 3:53 PM
>>>To: Don {KMTS}.Net Support
>>>Cc: nagios-users at lists.sourceforge.net
>>>Subject: Re: [Nagios-users] help with cfg's
>>>
>>>
>>>Is nagios actually running?  Have you checked your process list?
>>>
>>>If so, are the permissions on the nagios files correct?
>>>
>>>On Tue, Aug 31, 2004 at 03:19:24PM -0500, Don {KMTS}.Net Support wrote:
>>>
>>>>Thank you for all the replies, I have done just that.  Is there a
>>>
>>>better
>>>set
>>>
>>>>of instructions on how to actually configure Nagios other than the
>>>
>>>Nagios
>>>
>>>>site itself, I have gone through their "how to set the cfg's" faq, but
>>>
>>>I
>>>am
>>>
>>>>still gettin this error:
>>>>Error: Could not read host and service status information
>>>>
>>>>Now it seems from the error this is a common problem with new
>>>
>>>installs...but
>>>
>>>>I am lost in how to adjust the cfg files etc...
>>>>Any help on links or advice is greatly appreciated.
>>>>Don
>>>>
>>>>-----Original Message-----
>>>>From: Cook, Garry [mailto:GWCOOK at mactec.com]
>>>>Sent: Tuesday, August 31, 2004 2:23 PM
>>>>To: Don {KMTS}.Net Support; nagios-users at lists.sourceforge.net
>>>>Subject: RE: [Nagios-users] help with cfg's
>>>>
>>>>
>>>>nagios-users-admin at lists.sourceforge.net wrote:
>>>>
>>>>>Hi all,
>>>>>I am new to this mailing group as I have just installed
>>>>>Nagios and I am
>>>>>having problems (if everything went fine I would be asking for
>>>
>>>help:).
>>>
>>>>>What I installed Nagios on was Fedora 1, I compiled the files
>>>>>instead of the
>>>>>rpm's.  I followed the instructions on the "How-to" page
>>>>>explicitly, my
>>>>>questions is this:
>>>>>Where should the cfg files that it installed as sample files
>>>>>be copied to,
>>>>>currently they are in my /usr/local/nagios/etc folder.  I
>>>>>copied each file
>>>>>name that had *.sample on the to just *.cfg and looked at each file
>>>>>individually...maybe  am getting ahead of myself here...if
>>>>>someone could
>>>>>share with me where exactly the files should go, or to simply
>>>>>leave them
>>>>>where they are.
>>>>>Thank you,
>>>>>Don
>>>>
>>>>I thought that the sample configs were installed in
>>>>/usr/local/nagios/etc/samples by default. At least they were with
>>>
>>>Nagios
>>>
>>>>1.2. Either way, the correct location for the cfg files is the path
>>>
>>>that
>>>
>>>>you stated above, /usr/local/nagios/etc/, unless you install to a
>>>>non-default location. Either way, they should be in
>>>><path_to>/nagios/etc/. Just make sure that you remove the -sample
>>>
>>>suffix
>>>
>>>>from the filenames.
>>>>
>>>>Garry W. Cook, CCNA
>>>>Network Infrastructure Manager
>>>>MACTEC, Inc. - http://www.mactec.com/
>>>>303.308.6228 (Office) - 720.220.1862 (Mobile)
>>>>---
>>>>Incoming mail is certified Virus Free.
>>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>>Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
>>>>
>>>>---
>>>>Outgoing mail is certified Virus Free.
>>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>>Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
>>>>
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>This SF.Net email is sponsored by BEA Weblogic Workshop
>>>>FREE Java Enterprise J2EE developer tools!
>>>>Get your free copy of BEA WebLogic Workshop 8.1 today.
>>>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>>>
>>>--
>>>Joe Rhett
>>>Senior Geek
>>>Meer.net
>>>---
>>>Incoming mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
>>>
>>>---
>>>Outgoing mail is certified Virus Free.
>>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>>Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>This SF.Net email is sponsored by BEA Weblogic Workshop
>>>FREE Java Enterprise J2EE developer tools!
>>>Get your free copy of BEA WebLogic Workshop 8.1 today.
>>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
>>
>>--
>>Joe Rhett
>>Senior Geek
>>Meer.net
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by BEA Weblogic Workshop
>>FREE Java Enterprise J2EE developer tools!
>>Get your free copy of BEA WebLogic Workshop 8.1 today.
>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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 BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&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