Problem starting Nagios

Marco Ramos mramos at co.sapo.pt
Tue Nov 10 18:26:13 CET 2009


Hi!

On 2009/11/09, at 22:25, Morris, Patrick wrote:

> Hi John!
>
> On Mon, 09 Nov 2009, John Oliver wrote:
>
>> I installed Nagios from Dag Wieers' RPMForge site
>>
>>    [joliver at mda-services4 ~]$ rpm -q nagios
>>    nagios-3.2.0-1.el5.rf
>>
>>
>>
>> When I try to start it:
>>
>>    [joliver at mda-services4 ~]$ sudo /etc/init.d/nagios start
>>    Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios
>> configuration.
>>
>>
>>
>> But:
>>
>>    [joliver at mda-services4 ~]$ ls -la /var/log/nagios/
>>    total 24
>>    drwxr-xr-x 3 nagios nagios 4096 Nov 9 12:49 .
>>    drwxr-xr-x 12 root root 4096 Nov 9 12:49 ..
>>    drwxr-xr-x 2 nagios nagios 4096 Aug 27 06:35 archives
>>
>>
>>
>> And:
>>
>>    [joliver at mda-services4 ~]$ sudo /usr/bin/nagios -v
>> /etc/nagios/nagios.cfg
>>
> [snip]
>>    Total Warnings: 0
>>    Total Errors: 0
>>
>>    Things look okay - No serious problems were detected during the
>> pre-flight check
>>
>>
>>
>> So, how do I find what it's unhappy about, with no logs and a manual
>> check that indicates no problems?
>
> It seems likely to me that either:
>
> a) The config you're checking and the one the init script is telling
> Nagios to load are not the same thing,
>
> or
>
> b) The Nagios you're running, and the one the init script is running,
> are not the same thing.

indeed. Have you tried to strace it?

HTH,
Marco Ramos

>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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