Bruno, Se você estiver utilizando o Ubuntu como servidor onde está o nagios é só executar o comando abaixo no terminal:
sudo apt-get install nagios-nrpe-server se não tem este tutorial de como instalar o NRPE server: http://nagios-br.sourceforge.net/wiki/index.php/Tutoriais/Nagios_NRPE Dependendo do que você pretende monitorar o XP tem suporte a SNMP é só habilitar nele e utilizar os proprios plugins do nagios ou os deste site que são simples de configurar: http://nagios.manubulon.com/ 2007/5/10, Bruno Galindro da Costa <[EMAIL PROTECTED]>: > > >>Bruno, > >> > >>Você pode procurar mais informações sobre o nagios e suas configurações > em > >>http://nagios-br.sourceforge.net/. > >> > > Diogo Semann, > > Eu procurei e neste site, mas não encontrei nada a respeito. Porém, eu > olhei no nrpe_nt.log no windows xp e descobri que realmente o servidor > precisa primeiramente estar configurado e rodando o nrpe para que o > serviço > no windows xp inicie. > > Conteúdo nrpe_nt.log: > > 2007-04-10 03:08:10; 692; 7;Starting server thread... > 2007-04-10 03:08:10; 1432; 7;Binding to 192.168.1.1 > 2007-04-10 03:08:10; 1432; 4;bind() failed with error 10049 > 2007-04-10 03:08:23; 692; 6;NRPE_NT shutting down... > > Bom, eu fui até o Linux e tentei configurar o nrpe através de pacote > source. > baixei o tarball de: > > # wget http://ufpr.dl.sourceforge.net/sourceforge/nagios/nrpe-2.8.tar.gz > # tar -zxvf nrpe-2.8.tar.gz > # cd nrpe-2.8/ > # ./configure > > A saída do ./configure foi esta: > > checking for a BSD-compatible install... /usr/bin/install -c > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-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... yes > checking tcpd.h presence... yes > checking for tcpd.h... yes > 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... 8 > checking for uint32_t... yes > checking for u_int32_t... yes > checking for int32_t... yes > checking for getopt_long... yes > checking for main in -lnsl... yes > checking for socket in -lsocket... no > checking for main in -lwrap... yes > 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... SSL found in /usr > > *** Generating DH Parameters for SSL/TLS *** > Generating DH parameters, 512 bit long safe prime, generator 2 > This is going to take a long time > > ..............+..............+...........+.........+............................ > > ......................................................................+......... > > ..............+.............+........................+.....+.......+.........+.. > > .......................................+........................................ > > ..........+.+...+...................+..............+......+..................... > > ...........................................+.......+..+..+...................... > > ....................+..+............................................+........... > ................................++*++*++*++*++*++* > checking for Kerberos include files... could not find include files > ./configure: line 6165: A: command not found > checking for perl... /usr/bin/perl > configure: creating ./config.status > config.status: creating Makefile > config.status: creating src/Makefile > config.status: creating subst > config.status: creating include/config.h > > > *** Configuration summary for nrpe 2.8 05-08-2007 ***: > > General Options: > ------------------------- > NRPE port: 5666 > NRPE user: nagios > NRPE group: nagios > > > Review the options above for accuracy. If they look okay, > type 'make all' to compile the NRPE daemon and client. > > > Depois eu executei > > # make all > > Que me retornou os seguintes erros: > > cd ./src/; make ; cd .. > make[1]: Entrando no diretório `/root/pacotes/nagios/nrpe-2.8/src' > gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o nrpe > nrpe.c utils.c -L/usr/lib -lssl -lcrypto -lnsl -lwrap > In file included from /usr/include/openssl/e_os2.h:56, > from /usr/include/openssl/asn1.h:63, > from /usr/include/openssl/rsa.h:62, > from ../include/config.h:224, > from ../include/common.h:24, > from nrpe.c:21: > /usr/include/openssl/opensslconf.h:25:32: error: opensslconf-x86_64.h: > Arquivo ou diretório não encontrado > In file included from /usr/include/openssl/asn1.h:74, > from /usr/include/openssl/rsa.h:62, > from ../include/config.h:224, > from ../include/common.h:24, > from nrpe.c:21: > /usr/include/openssl/bn.h:280: error: expected specifier-qualifier-list > before âBN_ULONGâ > /usr/include/openssl/bn.h:296: error: expected specifier-qualifier-list > before âBN_ULONGâ > /usr/include/openssl/bn.h:442: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_mod_wordâ > /usr/include/openssl/bn.h:443: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_div_wordâ > /usr/include/openssl/bn.h:444: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:445: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:446: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:447: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:448: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_get_wordâ > /usr/include/openssl/bn.h:463: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:736: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_mul_add_wordsâ > /usr/include/openssl/bn.h:737: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_mul_wordsâ > /usr/include/openssl/bn.h:738: error: expected â)â before â*â token > /usr/include/openssl/bn.h:739: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_div_wordsâ > /usr/include/openssl/bn.h:740: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_add_wordsâ > /usr/include/openssl/bn.h:741: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_sub_wordsâ > In file included from /usr/include/openssl/ssl.h:978, > from ../include/config.h:228, > from ../include/common.h:24, > from nrpe.c:21: > /usr/include/openssl/ssl3.h:303: error: expected specifier-qualifier-list > before âPQ_64BITâ > In file included from /usr/include/openssl/dtls1.h:64, > from /usr/include/openssl/ssl.h:980, > from ../include/config.h:228, > from ../include/common.h:24, > from nrpe.c:21: > /usr/include/openssl/pqueue.h:73: error: expected specifier-qualifier-list > before âPQ_64BITâ > /usr/include/openssl/pqueue.h:80: error: expected â)â before âpriorityâ > /usr/include/openssl/pqueue.h:89: error: expected declaration specifiers > or > â...â before âPQ_64BITâ > In file included from /usr/include/openssl/ssl.h:980, > from ../include/config.h:228, > from ../include/common.h:24, > from nrpe.c:21: > /usr/include/openssl/dtls1.h:93: error: expected specifier-qualifier-list > before âPQ_64BITâ > In file included from /usr/include/openssl/e_os2.h:56, > from /usr/include/openssl/asn1.h:63, > from /usr/include/openssl/rsa.h:62, > from ../include/config.h:224, > from ../include/common.h:24, > from utils.c:32: > /usr/include/openssl/opensslconf.h:25:32: error: opensslconf-x86_64.h: > Arquivo ou diretório não encontrado > In file included from /usr/include/openssl/asn1.h:74, > from /usr/include/openssl/rsa.h:62, > from ../include/config.h:224, > from ../include/common.h:24, > from utils.c:32: > /usr/include/openssl/bn.h:280: error: expected specifier-qualifier-list > before âBN_ULONGâ > /usr/include/openssl/bn.h:296: error: expected specifier-qualifier-list > before âBN_ULONGâ > /usr/include/openssl/bn.h:442: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_mod_wordâ > /usr/include/openssl/bn.h:443: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_div_wordâ > /usr/include/openssl/bn.h:444: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:445: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:446: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:447: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:448: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âBN_get_wordâ > /usr/include/openssl/bn.h:463: error: expected declaration specifiers or > â...â before âBN_ULONGâ > /usr/include/openssl/bn.h:736: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_mul_add_wordsâ > /usr/include/openssl/bn.h:737: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_mul_wordsâ > /usr/include/openssl/bn.h:738: error: expected â)â before â*â token > /usr/include/openssl/bn.h:739: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_div_wordsâ > /usr/include/openssl/bn.h:740: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_add_wordsâ > /usr/include/openssl/bn.h:741: error: expected â=â, â,â, â;â, âasmâ or > â__attribute__â before âbn_sub_wordsâ > In file included from /usr/include/openssl/ssl.h:978, > from ../include/config.h:228, > from ../include/common.h:24, > from utils.c:32: > /usr/include/openssl/ssl3.h:303: error: expected specifier-qualifier-list > before âPQ_64BITâ > In file included from /usr/include/openssl/dtls1.h:64, > from /usr/include/openssl/ssl.h:980, > from ../include/config.h:228, > from ../include/common.h:24, > from utils.c:32: > /usr/include/openssl/pqueue.h:73: error: expected specifier-qualifier-list > before âPQ_64BITâ > /usr/include/openssl/pqueue.h:80: error: expected â)â before âpriorityâ > /usr/include/openssl/pqueue.h:89: error: expected declaration specifiers > or > â...â before âPQ_64BITâ > In file included from /usr/include/openssl/ssl.h:980, > from ../include/config.h:228, > from ../include/common.h:24, > from utils.c:32: > /usr/include/openssl/dtls1.h:93: error: expected specifier-qualifier-list > before âPQ_64BITâ > make[1]: ** [nrpe] Erro 1 > make[1]: Saindo do diretório `/root/pacotes/nagios/nrpe-2.8/src' > > *** Compile finished *** > > If the NRPE daemon and client compiled without any errors, you > can continue with the installation or upgrade process. > > Read the PDF documentation (NRPE.pdf) for information on the next > steps you should take to complete the installation or upgrade. > > Alguém sabe o que pode ser? Acho q é algo com openssl... > > -- > Bruno Galindro da Costa > [EMAIL PROTECTED] > Imbituba - SC > -- > Interessado em aprender mais sobre o Ubuntu em português? > http://wiki.ubuntu-br.org/ComeceAqui - > ubuntu-br mailing list > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br > -- Diogo Rodrigo Semann Linux User: 315917 MSN: [EMAIL PROTECTED] SKYPE: drsemann GTALK: [EMAIL PROTECTED] -- Interessado em aprender mais sobre o Ubuntu em português? http://wiki.ubuntu-br.org/ComeceAqui - ubuntu-br mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

