Page 2 of 5

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 2:41 pm
by hkang
I already corrected the typo. Still got the same message.

-bash: /usr/local/nagios/libexec/check_nrpe: No such file or directory

There is no check_nrpe in that dir.

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 2:45 pm
by hsmith
Can you show us the contents of that directory? Did you install the nagios-plugins? If you haven't done that, you're most likely going to want to.

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 3:09 pm
by hkang
I installed NRPE agent (linux-nrpe-agent.tar.gz). I guess it is different from NRPE plugin (nrpe-2.15.tar.gz).

Here are the contents in that dir:

Code: Select all

check_apt                    check_dns           check_init_service  check_ntp_peer       check_services  check_wave
check_asterisk.pl            check_dummy         check_ircd          check_ntp_time       check_sip       check_yum
check_asterisk_sip_peers.sh  check_file_age      check_load          check_nwstat         check_smtp      custom_check_mem
check_breeze                 check_flexlm        check_log           check_open_files.pl  check_snmp      custom_check_procs
check_by_ssh                 check_ftp           check_mailq         check_oracle         check_ssh       nagisk.pl
check_clamd                  check_hpjd          check_mrtg          check_overcr         check_swap      negate
check_cluster                check_http          check_mrtgtraf      check_ping           check_tcp       send_nsca
check_cpu_stats.sh           check_icmp          check_nagios        check_pop            check_time      urlize
check_dhcp                   check_ide_smart     check_netstat.pl    check_procs          check_udp       utils.pm
check_dig                    check_ifoperstatus  check_nntp          check_real           check_ups       utils.sh
check_disk                   check_ifstatus      check_nt            check_rpc            check_uptime
check_disk_smb               check_imap          check_ntp           check_sensors        check_users

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 3:23 pm
by hsmith
I'm surprised it's not in there. What's the output of a find / -name check_nrpe command?

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 4:18 pm
by hkang
Nothing is returned for that command.

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 4:22 pm
by hsmith
What is the output of the following command?

Code: Select all

ls -lR /usr/local/nagios

Re: NRPE agent not working on Oracle Linux 7

Posted: Thu Jan 07, 2016 4:29 pm
by hkang
It's a long list:

Code: Select all

/usr/local/nagios:
total 8
drwxr-xr-x. 2 nagios nagios   17 Jan  5 09:17 bin
drwxr-xr-x. 3 nagios nagios 4096 Jan  5 09:35 etc
drwxr-xr-x. 2 nagios nagios    6 Jan  5 09:17 include
drwxr-xr-x. 2 nagios nagios 4096 Jan  5 09:35 libexec
drwxr-xr-x. 3 nagios nagios   19 Jan  5 09:17 share
drwxr-xr-x. 3 nagios nagios   18 Jan  5 09:17 var

/usr/local/nagios/bin:
total 124
-rwxr-xr-x. 1 nagios nagios 125610 Jan  5 09:35 nsca

/usr/local/nagios/etc:
total 40
drwxr-xr-x. 3 nagios nagios   53 Jan  5 09:17 nrpe
-rw-r--r--. 1 nagios nagios 7217 Jan  5 09:35 nrpe.cfg
-rw-r--r--. 1 nagios nagios 7217 Jan  5 09:24 nrpe.cfg.save
-rw-rw-r--. 1 nagios nagios 5345 Jan  5 09:35 nsca.cfg
-rw-rw-r--. 1 nagios nagios 5345 Jan  5 09:24 nsca.cfg.save
-rw-rw-r--. 1 nagios nagios 1627 Jan  5 09:35 send_nsca.cfg
-rw-rw-r--. 1 nagios nagios 1627 Jan  5 09:24 send_nsca.cfg.save

/usr/local/nagios/etc/nrpe:
total 8
-rw-r--r--. 1 nagios nagios  687 Jan  5 09:35 asterisk.cfg
-rw-r--r--. 1 nagios nagios 1309 Jan  5 09:35 common.cfg

/usr/local/nagios/include:
total 0

/usr/local/nagios/libexec:
total 7080
-rwxr-xr-x. 1 root   root   203800 Jan  5 09:35 check_apt
-rwxr-xr-x. 1 nagios nagios   6897 Jan  5 09:35 check_asterisk.pl
-rwxr-xr-x. 1 nagios nagios   1978 Jan  5 09:35 check_asterisk_sip_peers.sh
-rwxr-xr-x. 1 root   root     2251 Jan  5 09:35 check_breeze
-rwxr-xr-x. 1 root   root   208073 Jan  5 09:35 check_by_ssh
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_clamd -> check_tcp
-rwxr-xr-x. 1 root   root   152537 Jan  5 09:35 check_cluster
-rwxr-xr-x. 1 nagios nagios   5355 Jan  5 09:35 check_cpu_stats.sh
-r-sr-xr-x. 1 root   root   200825 Jan  5 09:35 check_dhcp
-rwxr-xr-x. 1 root   root   199899 Jan  5 09:35 check_dig
-rwxr-xr-x. 1 root   root   220800 Jan  5 09:35 check_disk
-rwxr-xr-x. 1 root   root     9289 Jan  5 09:35 check_disk_smb
-rwxr-xr-x. 1 root   root   217941 Jan  5 09:35 check_dns
-rwxr-xr-x. 1 root   root   116656 Jan  5 09:35 check_dummy
-rwxr-xr-x. 1 root   root     3349 Jan  5 09:35 check_file_age
-rwxr-xr-x. 1 root   root     6315 Jan  5 09:35 check_flexlm
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_ftp -> check_tcp
-rwxr-xr-x. 1 root   root   201796 Jan  5 09:35 check_hpjd
-rwxr-xr-x. 1 root   root   276635 Jan  5 09:35 check_http
-r-sr-xr-x. 1 root   root   213216 Jan  5 09:35 check_icmp
-rwxr-xr-x. 1 root   root   163451 Jan  5 09:35 check_ide_smart
-rwxr-xr-x. 1 root   root    15123 Jan  5 09:35 check_ifoperstatus
-rwxr-xr-x. 1 root   root    12600 Jan  5 09:35 check_ifstatus
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_imap -> check_tcp
-rwsr-xr-x. 1 root   nagios    748 Jan  5 09:35 check_init_service
-rwxr-xr-x. 1 root   root     6887 Jan  5 09:35 check_ircd
-rwxr-xr-x. 1 root   root   176680 Jan  5 09:35 check_load
-rwxr-xr-x. 1 root   root     5981 Jan  5 09:35 check_log
-rwxr-xr-x. 1 root   root    21480 Jan  5 09:35 check_mailq
-rwxr-xr-x. 1 root   root   162701 Jan  5 09:35 check_mrtg
-rwxr-xr-x. 1 root   root   162546 Jan  5 09:35 check_mrtgtraf
-rwxr-xr-x. 1 root   root   175976 Jan  5 09:35 check_nagios
-rwxr-xr-x. 1 nagios nagios  25602 Jan  5 09:35 check_netstat.pl
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_nntp -> check_tcp
-rwxr-xr-x. 1 root   root   209170 Jan  5 09:35 check_nt
-rwxr-xr-x. 1 root   root   212705 Jan  5 09:35 check_ntp
-rwxr-xr-x. 1 root   root   201770 Jan  5 09:35 check_ntp_peer
-rwxr-xr-x. 1 root   root   196927 Jan  5 09:35 check_ntp_time
-rwxr-xr-x. 1 root   root   239703 Jan  5 09:35 check_nwstat
-rwxr-xr-x. 1 nagios nagios   3259 Jan  5 09:35 check_open_files.pl
-rwxr-xr-x. 1 root   root     8779 Jan  5 09:35 check_oracle
-rwxr-xr-x. 1 root   root   182433 Jan  5 09:35 check_overcr
-rwxr-xr-x. 1 root   root   212222 Jan  5 09:35 check_ping
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_pop -> check_tcp
-rwxr-xr-x. 1 root   root   212479 Jan  5 09:35 check_procs
-rwxr-xr-x. 1 root   root   179343 Jan  5 09:35 check_real
-rwxr-xr-x. 1 root   root     9581 Jan  5 09:35 check_rpc
-rwxr-xr-x. 1 root   root     1453 Jan  5 09:35 check_sensors
-rwxr-xr-x. 1 nagios nagios   2174 Jan  5 09:35 check_services
-rwxr-xr-x. 1 nagios nagios   7599 Jan  5 09:35 check_sip
-rwxr-xr-x. 1 root   root   208048 Jan  5 09:35 check_smtp
-rwxr-xr-x. 1 root   root   255231 Jan  5 09:35 check_snmp
-rwxr-xr-x. 1 root   root   178822 Jan  5 09:35 check_ssh
-rwxr-xr-x. 1 root   root   160477 Jan  5 09:35 check_swap
-rwxr-xr-x. 1 root   root   194898 Jan  5 09:35 check_tcp
-rwxr-xr-x. 1 root   root   180521 Jan  5 09:35 check_time
lrwxrwxrwx. 1 root   root        9 Jan  5 09:35 check_udp -> check_tcp
-rwxr-xr-x. 1 root   root   193089 Jan  5 09:35 check_ups
-rwxr-xr-x. 1 root   root   153183 Jan  5 09:35 check_uptime
-rwxr-xr-x. 1 root   root   151633 Jan  5 09:35 check_users
-rwxr-xr-x. 1 root   root     2936 Jan  5 09:35 check_wave
-rwxr-xr-x. 1 nagios nagios    710 Jan  5 09:35 check_yum
-rwxr-xr-x. 1 nagios nagios   3060 Jan  5 09:35 custom_check_mem
-rwxr-xr-x. 1 nagios nagios    915 Jan  5 09:35 custom_check_procs
-rwxr-xr-x. 1 nagios nagios   4176 Jan  5 09:35 nagisk.pl
-rwxr-xr-x. 1 root   root   147580 Jan  5 09:35 negate
-rwxr-xr-x. 1 nagios nagios  65707 Jan  5 09:35 send_nsca
-rwxr-xr-x. 1 root   root   144556 Jan  5 09:35 urlize
-rwxr-xr-x. 1 root   root     1913 Jan  5 09:35 utils.pm
-rwxr-xr-x. 1 root   root     2791 Jan  5 09:35 utils.sh

/usr/local/nagios/share:
total 0
drwxr-xr-x. 4 nagios nagios 24 Jan  5 09:17 locale

/usr/local/nagios/share/locale:
total 0
drwxr-xr-x. 3 nagios nagios 24 Jan  5 09:17 de
drwxr-xr-x. 3 nagios nagios 24 Jan  5 09:17 fr

/usr/local/nagios/share/locale/de:
total 0
drwxr-xr-x. 2 nagios nagios 30 Jan  5 09:35 LC_MESSAGES

/usr/local/nagios/share/locale/de/LC_MESSAGES:
total 8
-rw-r--r--. 1 root root 7809 Jan  5 09:35 nagios-plugins.mo

/usr/local/nagios/share/locale/fr:
total 0
drwxr-xr-x. 2 nagios nagios 30 Jan  5 09:35 LC_MESSAGES

/usr/local/nagios/share/locale/fr/LC_MESSAGES:
total 92
-rw-r--r--. 1 root root 94062 Jan  5 09:35 nagios-plugins.mo

/usr/local/nagios/var:
total 0
drwxr-xr-x. 2 nagios nagios 6 Jan  5 09:17 spool

/usr/local/nagios/var/spool:
total 0

Re: NRPE agent not working on Oracle Linux 7

Posted: Fri Jan 08, 2016 1:05 pm
by hsmith
What is the output of a netstat -pant | grep 5666 command?

Re: NRPE agent not working on Oracle Linux 7

Posted: Fri Jan 08, 2016 1:10 pm
by hkang
Nothing was returned.

Re: NRPE agent not working on Oracle Linux 7

Posted: Fri Jan 08, 2016 1:14 pm
by hsmith
I don't believe NRPE was fully installed, then. Do you still have the install.log file sitting around somewhere that we could review?