Erro na instalação do NRPE [RESOLVIDO]

1. Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 17/08/2012 - 11:12h

Bom dia Pessoal,

Seguinte... estou seguindo o seguinte tutorial para a instalação do NAGIOS:

https://itformoney.wordpress.com/2012/07/11/instalando-o-nagios-core-3-2-nagios-plugins-nrpe-nsclien...

Porém ao tentar instalar o NRPE ao tentar executar o comando make all aparece a seguinte mensagem:

administrador@Matrix:~/downloads/nrpe-2.13$ sudo make all
make: *** Sem regra para processar o alvo `all'. Pare.
administrador@Matrix:~/downloads/nrpe-2.13$

Porém quando executo o comando ./configure ele me retorna o seguinte...

administrador@Matrix:~/downloads/nrpe-2.13$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... no
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
administrador@Matrix:~/downloads/nrpe-2.13$ ^C
administrador@Matrix:~/downloads/nrpe-2.13$

Segui o manual a risca... instalei tudo o que diz no manual...

Estou usando o ubuntu desktop 12.04, mas este erro tb aconteceu no ubuntu 12.04 server

Conto muito com a ajuda de todos!!!

Abraços,

Alexander





  


2. Re: Erro na instalação do NRPE [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 17/08/2012 - 11:30h

instala o openssl e por desencargo o kernel-headers também


3. Re: Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 17/08/2012 - 12:08h

filippec escreveu:

instala o openssl e por desencargo o kernel-headers também


Cara o openssl eu já tinha até instalado... instalei o kernel 3.3.5 mas não adiantou de nada... ao rodar o .configure dá o mesmo erro...

O que pode ser, alguém tem alguma idéia???

Abraços,

Alexander




4. Re: Erro na instalação do NRPE [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 17/08/2012 - 12:54h

tenta
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu

Se não tiver as libs ali -with-ssl-lib da um find /usr -name x86_64-linux-gnu

E se não conseguir achar os diretórios executa: apt-file search libssl | grep libssl-dev

E falei para tu instalar o kernel-headers não o kernel. da um apt-get kernel-headers


5. Re: Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 17/08/2012 - 15:05h

filippec escreveu:

tenta
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu

Se não tiver as libs ali -with-ssl-lib da um find /usr -name x86_64-linux-gnu

E se não conseguir achar os diretórios executa: apt-file search libssl | grep libssl-dev

E falei para tu instalar o kernel-headers não o kernel. da um apt-get kernel-headers


Boa tarde Filippec,

Cara, desculpe, sou novato no linux.... Não saco muito, ou melhor muito pouco de linux...

Se puder me dar uma ajuda ficarei muito grato, mas se não der sem problemas, sei como é chato ficar ensinando o básico aos outros...

Seguinte... rodei esse comando:

./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu

Mas me retornou o mesmo erro...

Quando eu executei esse comenado:

apt-file search libssl | grep libssl-dev

Ele me retornou o seguinte...

root@Matrix:~/downloads/nrpe-2.13# apt-file search libssl | grep libssl-devlibssl-dev: /usr/lib/i386-linux-gnu/libssl.a
libssl-dev: /usr/lib/i386-linux-gnu/libssl.so
libssl-dev: /usr/lib/i386-linux-gnu/pkgconfig/libssl.pc
libssl-dev: /usr/share/doc/libssl-dev/changelog.Debian.gz
libssl-dev: /usr/share/doc/libssl-dev/changelog.gz
libssl-dev: /usr/share/doc/libssl-dev/copyright
root@Matrix:~/downloads/nrpe-2.13#

E quando rodei esse comando:

root@Matrix:~/downloads/nrpe-2.13# apt-get kernel-headers
E: Operação kernel-headers inválida
root@Matrix:~/downloads/nrpe-2.13#

Se não for te pedir muito é calro, teria como me ajudar nisso???

Abraços,

Alexander





6. Re: Erro na instalação do NRPE [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 17/08/2012 - 16:01h


Teu SO é 32 bits então tu tem que alterar a lib....
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu



Kernel-hearders:

apt-cache search linux-headers-$(uname -r) pra ve se tem o pacote, se tiver:
apt-get install linux-headers-$(uname -r)


7. Re: Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 24/08/2012 - 09:44h

filippec escreveu:


Teu SO é 32 bits então tu tem que alterar a lib....
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu



Kernel-hearders:

apt-cache search linux-headers-$(uname -r) pra ve se tem o pacote, se tiver:
apt-get install linux-headers-$(uname -r)


Bom dia Filippe,

Cara, fiz exatamente o que vc me disse... de uma olhada nos resultados por favor...

root@Matrix:~# ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
bash: ./configure: Arquivo ou diretório não encontrado
root@Matrix:~# apt-cache search linux-headers-$(uname -r)
linux-headers-3.2.0-23-generic-pae - Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
root@Matrix:~# apt-get install linux-headers-3.2.0-23-generic-paeLendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
linux-headers-3.2.0-23-generic-pae já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 4 não atualizados.
root@Matrix:~#

Depois disso reiniciei o servidor e tentei instatar o NRPE, mas deu o mesmo erro...

Abraços,

Alexander





8. Re: Erro na instalação do NRPE [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 24/08/2012 - 09:48h

Como assim :


root@Matrix:~# ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
bash: ./configure: Arquivo ou diretório não encontrado

???

Vc executou no lugar errado.....


9. Re: Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 24/08/2012 - 15:09h

filippec escreveu:

Como assim :


root@Matrix:~# ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
bash: ./configure: Arquivo ou diretório não encontrado

???

Vc executou no lugar errado.....


Como seria o modo correto de executar esse comando eu tenho que entrar na pasta /usr/bin/openssl e de lá executar esse comando

Abs,

Alexander




10. Re: Erro na instalação do NRPE [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 26/08/2012 - 00:59h

Entra na pasta que tu descompactou o nrpe e executa o comando que te falei.


11. Re: Erro na instalação do NRPE [RESOLVIDO]

Alexander
alexandergds

(usa BackTrack)

Enviado em 27/08/2012 - 11:19h

filippec escreveu:

Entra na pasta que tu descompactou o nrpe e executa o comando que te falei.


Cara, vc é sinistro mesmo agora funcionou!!!! Agora deixa eu te perguntar mais uma coisa, o restante dos comenados tb tem que seguir a mesma lógica... tipo...

make all --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
make install --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
make install-daemon --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
make install-daemon-config --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu
make install-xinetd --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu

Ou não precisa???

Muito obrigado!!!!!!!!!!! Vlw mesmo pela grande ajuda!!!!!

Abraços,

Alexander



12. Nagios FUN

José Henrique
JoseHenriqueRJ

(usa Red Hat)

Enviado em 27/08/2012 - 11:46h

Olá amigo, seria muito melhor para você utilizar o Nagios FUN.
Ele vem pronto, basta configurar teus hosts e serviço.



  
01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts