<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Marc Powell wrote:
<blockquote
 cite="midA7B0A9F02975A74A845FE85D0B95B8FAA55997@misex01.ena.com"
 type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a> [<a class="moz-txt-link-freetext" href="mailto:nagios-users">mailto:nagios-users</a>-
<a class="moz-txt-link-abbreviated" href="mailto:admin@lists.sourceforge.net">admin@lists.sourceforge.net</a>] On Behalf Of Shankara Narayanan
Sent: Thursday, May 26, 2005 8:10 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
Subject: Re: [Nagios-users] Problems in starting nagios 1.2


    </pre>
    <blockquote type="cite">
      <pre wrap=""># /etc/init.d/nagios start
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">starting network monitor: nagios
NAGIOS CRITICAL - could not find status log:
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->/var/log/nagios/status.log
  </pre>
  <blockquote type="cite">
    <pre wrap="">touch /var/log/nagios/status.log and
chown nagios.nagios /var/log/nagios/status.log
this should help you.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Actually, this might work initially, but I'll bet you'll have problems
when nagios rotates the status log. Better to determine the reason why
nagios isn't/can't create the log file on it's own to begin with.
Several possibilities --

- The nagios user doesn't have write permission to /var/log/nagios.
- You have an error in your config (run /path/to/nagios/bin/nagios -v
/path/to/nagios/etc/nagios.cfg)
- The path to status.log as defined in the init script is different than
the path to status.log as defined in nagios.cfg (status_file=...).

That's likely not a comprehensive list but it's a start.

--
Marc

 


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit <a class="moz-txt-link-freetext" href="http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005">http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


  </pre>
</blockquote>
<br>
Thanks, now it's working fine. <br>
<br>
There was a '/var/log/nagios/status.saved' that I renamed to
'/var/log/nagios/status.log'. Then I created the folder
'/var/spool/nagios' that belongs to the user 'nagios' and the group
'apache'.<br>
<br>
Cheers,<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
_______________________________________________________
Francisco José Bernabé Pellicer
Técnico de Sistemas Grid
Departamento de Sistemas/Técnicos CESGA
Centro de Supercomputación de Galicia (<a class="moz-txt-link-abbreviated" href="http://www.cesga.es">www.cesga.es</a>)
Avda. de Vigo s/n (Campus Sur)
15705 Santiago de Compostela (La Coruña)
Spain
Tlf: +34 981 569 810
Fax: +34 981 594 616
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:fbernabe@cesga.es">fbernabe@cesga.es</a>
</pre>
</body>
</html>


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nagios-users mailing list
Nagios-users@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