<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>please confirme that
nagios.cfg is located in directory /etc/nagios/</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>you need run
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004>/where_is_your_nagios_install/bin/nagios -v
/where_is_your_nagios_install/etc/nagios.cfg</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>the -v option allow
you to check configurations file !</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>The best is to
install nagios on directory : /usr/local/nagios</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>on this directory,
you need find :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004>bin (nagios
process, used so start nagios and check nagios configuration
files)<BR>etc (config file of
nagios)<BR>libexec (plugins file wich will be
executed)<BR>sbin (cgi file for web
interface)<BR>share (html file for web
interface)<BR>var (log file and
nagios.lock file)<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>very often, bad
configuration files cause problem of nagios.lock file.</SPAN></FONT><FONT
face=Arial size=2><SPAN class=418582706-25102004></DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=418582706-25102004>nagios.lock store
PID (process ID) of nagios process</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=418582706-25102004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=418582706-25102004><FONT
color=#000000>NS</FONT></DIV></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Message d'origine-----<BR><B>De :</B> Curlys
[mailto:curlybraces@dialogsl.net]<BR><B>Envoyé :</B> lundi 25 octobre
2004 08:15<BR><B>À :</B> SAHNOUN, Nadir<BR><B>Objet :</B> Re:
[Nagios-users] No lock file found in /var/run/nagios.pid<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>First part done, but according to ur instructions
i unable to find out "/nagios_directory/bin/".----- binaries installed
location to run "<SPAN class=113574305-25102004><FONT face=Arial
size=2>nagios -v ../etc/nagios.cfg" command.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=113574305-25102004>i used to run this
command with "/usr/sbin/nagios" path. unsuccesss !!!!!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=113574305-25102004>Could u help me
further ..............plz,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nagios directories which r found in the pc as
follows,,,,,,,,,,,,,,,,,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>/var/lock/subsys/nagios<BR>/var/log/nagios<BR>/var/spool/nagios<BR>/usr/sbin/nagios<BR>/usr/include/nagios<BR>/usr/share/nagios<BR>/usr/lib/nagios<BR>/etc/nagios<BR>/etc/rc.d/init.d/nagios</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanx</FONT></DIV>
<DIV><FONT face=Arial size=2>curlys</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=nsahnoun@refco.fr href="mailto:nsahnoun@refco.fr">SAHNOUN,
Nadir</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=curlybraces@dialogsl.net
href="mailto:curlybraces@dialogsl.net">'Curlys'</A> ; <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">Nagios-List (E-mail)</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 25, 2004 11:48
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] No lock
file found in /var/run/nagios.pid</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial size=2>touch
/var/run/nagios.pid</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial size=2>chown
nagios.nagios /var/run/nagios.pid</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial size=2>and before start
nagios ! check config by running :</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial size=2>from
/nagios_directory/bin/</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial size=2>nagios -v
../etc/nagios.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial
size=2>NS</FONT></SPAN></DIV>
<DIV><SPAN class=113574305-25102004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Message d'origine-----<BR><B>De :</B> Curlys
[mailto:curlybraces@dialogsl.net]<BR><B>Envoyé :</B> lundi 25 octobre
2004 03:18<BR><B>À :</B> Nagios<BR><B>Objet :</B> [Nagios-users]
No lock file found in /var/run/nagios.pid<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>hi , </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My OS is Fedora Core 2. I installed
nagios-1.2-1 from certain rpms with all other packages. after did some
changes in nagios.cfg and cgi.cfg files , i tried to start the nagios
service. <BR>But it is giving ............</FONT></DIV>
<DIV><FONT face=Arial size=2>Starting network monitor: nagios<BR>No lock
file found in /var/run/nagios.pid .......................
message.</FONT></DIV>
<DIV><FONT face=Arial size=2>My installed GD version is
gd-2.0.21-3.</FONT></DIV>
<DIV><FONT face=Arial size=2>So, can somebody help me to solve this
prob plz ????</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanx'</FONT></DIV>
<DIV><FONT face=Arial
size=2>curlys</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>