Re: [Nagios-devel] Wrong status in init.d/nagios when nagios is

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Wrong status in init.d/nagios when nagios is

Post by Guest »

Message en plusieurs parties au format MIME
--=_related 0043F8F9C1257809_=
Content-Type: multipart/alternative;
boundary="=_alternative 0043F900C1257809_="


--=_alternative 0043F900C1257809_=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for your reply.

I used a prefix in 'configure' to change my path :
./configure --prefix=3D/hawai/composants/nagios --with-gd-inc=3D/usr/includ=
e=20
--with-gd-lib=3D/usr/lib --with-command-group=3Dnagios

make all -j 4
make install
make install-init
make install-commandmode
make install-config
make install-daemoninit


But I don't understand why you have a nagios3 daemon. Into the Makefile I =

have :
install-daemoninit:
$(INSTALL) -m 755 -d $(INIT=5FOPTS) $(DESTDIR)$(INIT=5FDIR)
$(INSTALL) -m 755 $(INIT=5FOPTS) daemon-init=20
$(DESTDIR)$(INIT=5FDIR)/nagios
I could not find a string like 'nagios3Waiting for nagios3 daemon to=20
die.................' into the daemon-init file.

What's wrong ?

Pierre



Pierre SMOROWINSKI
Ing=E9nieur Infrastructures Syst=E8mes & Composants
P=F4le National de R=E9novation
[email protected]
T=E9l. :
04 93 95 55 60

CNIR SUD - BP 215 - 06904 SOPHIA ANTIPOLIS CEDEX
Contribuons au respect de l'environnement, n'imprimez ce courriel qu'en=20
cas de n=E9cessit=E9 et ayez le r=E9flexe recto-verso=20




Alexander Wirt =20
30/12/2010 12:55

A
Pierre SMOROWINSKI
cc
Nagios Developers List
Objet
Re: [Nagios-devel] Wrong status in init.d/nagios when nagios is stopped






Pierre SMOROWINSKI schrieb am Thursday, den 30. December 2010:

Hi,=20
> I use Nagios 3.2.3, it works prefectly.
>=20
> If I stop Nagios :=20
> [root@***]# service nagios stop -> OK
>=20
> and I check the status :
> [root@***]# service nagios status
> No lock file found in /hawai/composants/nagios/var/nagios.lock
hu?=20
This path has noting to do with our packages. Also the service would be
nagios3, not nagios.=20

root@smithers:/etc/init.d# service nagios3 stop
Stopping nagios3 monitoring daemon: nagios3Waiting for nagios3 daemon to
die.................
.
root@smithers:/etc/init.d# service nagios3 status
checking /usr/sbin/nagios3...failed (not running).
root@smithers:/etc/init.d# service nagios3 start
Starting nagios3 monitoring daemon: nagios3.
root@smithers:/etc/init.d# service nagios3 status
checking /usr/sbin/nagios3...done (running).
root@smithers:/etc/init.d#=20

Alex



--=_alternative 0043F900C1257809_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


Thanks for your reply.

I used a prefix in 'configure' to ch=
ange
my path :
./configure --prefix=3D/hawai/composants/nagios
--with-gd-inc=3D/usr/include --with-gd-lib=3D/usr/lib --with-command-group=
=3Dnagios

make all -j 4
make install
make install-init
make install-commandmode
make install-config
make install-daemoninit


But I don't understand why  you
have a nagios3 daemon. Into the Makefile I have :
install-daemoninit:
        $(INSTAL=
L)
-m 755 -d $(INIT=5FOPTS) $(DESTDIR)$(INIT=5FDIR)
        $(INSTAL=
L)
-m 755 $(INIT=5FOPTS) daemon-init $(DESTDIR)$(INIT=5FDIR)/nagios
I could not find a string like 'nagios3Waiting
for nagios3 daemon to die............

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked