Page 2 of 5
Re: CONNECTION REFUSED
Posted: Mon Jan 21, 2013 11:26 am
by brianweeks22
Under nrpe.cfg this is the only line of text:
command[check_mem]=/usr/lib/nagios/plugins/contrib/check_mem.pl -u -w 90 -c 95
THANK YOU!
Brian
Re: CONNECTION REFUSED
Posted: Mon Jan 21, 2013 3:45 pm
by slansing
You are missing everything that would allow nagios to control the receiving/sending of information over NRPE. How did you install Nagios xi? Lets check and see if you have the correct scripts downloaded to re-install NRPE. Run the following and let me know what shows up in that folder:
Code: Select all
ls /tmp/nagiosxi/subcomponents/nrpe/
Re: CONNECTION REFUSED
Posted: Mon Jan 21, 2013 3:54 pm
by brianweeks22
I am running Nagios® Core⢠3.2.3 -
will that same cmd work?
I apologize, new to nagios.. but thank you for your reply!
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 2:33 pm
by slansing
Apologies as I trolled the forums I made a typo

Please download the tarball I have attached into your /tmp/ directory and place the install script next to it, then run the following from that directory:
Assuming you are running Centos, or RHEL
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 2:54 pm
by brianweeks22
i have the tarball in that directory.. when you say install script? what are you referring to?
THANKS Again!!!
Brian
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 3:05 pm
by slansing
Oh darn here it is, should be attached.. silly me..
Run the following on that script from the same directory the tarball is located:
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 3:09 pm
by brianweeks22
ok.. seems to have installed? now what should I do?
Thanks
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 3:12 pm
by brianweeks22
FYI.. this is the output (under /etc/nagios/nrpe I still havge the same 1 string tho and nothign more.. just an FYI
check_mssql_health-1.5.9.2.tar.gz install.sh nrpe-2.12.tar nrpe-2.12.tar.gz
[root@rodan NRPE]# chmod +x install.sh
[root@rodan NRPE]# ./install.sh
Installing NRPE...
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... configure: error: Cannot find ssl headers
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 3:24 pm
by slansing
Are you by chance running on Ubuntu? Do you have the libssl-dev package installed? I made a change to the install script lets see if that did the trick.. over write your old version with the new attached one then run chmod +x on it and run it again.
Re: CONNECTION REFUSED
Posted: Tue Jan 22, 2013 3:33 pm
by brianweeks22
CentOS 6.0
having issues using the 2nd install file that you provided me..
[root@rodan NRPE]# ls
check_mssql_health-1.5.9.2.tar.gz NRPE2 nrpe-2.12 nrpe-2.12.tar
[root@rodan NRPE]# cd NRPE2/
[root@rodan NRPE2]# ls
install.sh nrpe-2.12.tar.gz
[root@rodan NRPE2]# chmod +x install
chmod: cannot access `install': No such file or directory
[root@rodan NRPE2]# ./install
bash: ./install: No such file or directory
[root@rodan NRPE2]# ls
install.sh nrpe-2.12 nrpe-2.12.tar nrpe-2.12.tar.gz
[root@rodan NRPE2]# chmod +x install
chmod: cannot access `install': No such file or directory
[root@rodan NRPE2]# su
[root@rodan NRPE2]# chmod +x install.sh
[root@rodan NRPE2]# ./install
bash: ./install: No such file or directory
[root@rodan NRPE2]# ./ install
bash: ./: is a directory
[root@rodan NRPE2]# chmod +x install
chmod: cannot access `install': No such file or directory
[root@rodan NRPE2]# cat /etc/*-release
CentOS Linux release 6.0 (Final)
CentOS Linux release 6.0 (Final)
CentOS Linux release 6.0 (Final)
[root@rodan NRPE2]# H checkQDcHfz
bash: H: command not found
[root@rodan NRPE2]# check0oV8JH checkHasJnX checkqeTb2T
bash: check0oV8JH: command not found
[root@rodan NRPE2]# check19Thl5 checkHkWfdd checkqjAG8j
bash: check19Thl5: command not found
[root@rodan NRPE2]#