I ran the nmap command and noticed the status was closed so I looked at the /etc/xinetd.d/nrpe which was blank. Guess the script didn't create that either.
So, I created it with these values:
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
type = UNLISTED
port = 5666
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/sbin/nrpe
server_args = -c /etc/nagios/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 10.1.0.181
}
But then also noticed I don't have a /usr/sbin/nrpe file nor anything in /etc/nagios/nrpe.cfg. In fact I don't even have a check_nrpe in the /usr/local/nagios/libexec. I have a bunch of other stuff which looks like got installed with the scripts.
Here is where the nrpe agent should have installed the files.
The executable should be in /usr/local/nagios/bin and the nrpe.cfg file should be in /usr/local/nagios/etc
Check those folders and see if they are there, if they are there, update your /etc/xinetd.d/nrpe file to the following
-A is an invalid option using usermod and SUSE.
usermod --help
Usage: usermod ...
usermod - modify a user account
-c comment Set the GECOS field for the new account
-D binddn Use dn "binddn" to bind to the LDAP directory
-d homedir Home directory for the new user
-e expire Date on which the new account will be disabled
-f inactive Days after a password expires until account is disabled
-G group,... List of supplementary groups
-g gid Name/number of the users primary group
-l login Change login name.
-m Move home directory to the new path
-o Allow duplicate (non-unique) UID
-A group,... List of groups the user should be added to
-R group,... List of groups the user should be removed from
-P path Search passwd, shadow and group file in "path"
-p password Encrypted password as returned by crypt(3)
-s shell Name of the user's login shell
-u uid Change the userid to the given number
--service srv Use nameservice 'srv'
-L Locks the password entry for "user"
-U Try to unlock the password entry for "user"
--help Give this help list
--usage Give a short usage message
-v, --version Print program version
Valid services are: files, ldap
/tmp/linux-nrpe-agent/subcomponents/nrpe/:
total 436
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
-rwxr-xr-x 1 root root 947 Dec 11 10:14 install
drwxr-xr-x 4 root root 4096 Dec 1 15:12 mods
drwxrwxr-x 8 root root 4096 Jan 2 11:29 nrpe-2.15
-rw-r--r-- 1 root root 419695 Dec 1 15:12 nrpe-2.15.tar.gz
-rwxr-xr-x 1 root root 532 Dec 1 15:14 post-install
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn:
total 24
-r--r--r-- 1 root root 573 Dec 11 10:14 all-wcprops
-r--r--r-- 1 root root 733 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 11 10:14 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 11 10:14 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/prop-base:
total 12
-r--r--r-- 1 root root 30 Dec 11 10:14 install.svn-base
-r--r--r-- 1 root root 53 Dec 1 15:12 nrpe-2.15.tar.gz.svn-base
-r--r--r-- 1 root root 30 Dec 1 15:14 post-install.svn-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/text-base:
total 424
-r--r--r-- 1 root root 947 Dec 11 10:14 install.svn-base
-r--r--r-- 1 root root 419695 Dec 1 15:12 nrpe-2.15.tar.gz.svn-base
-r--r--r-- 1 root root 532 Dec 1 15:14 post-install.svn-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 11 10:14 text-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/text-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods:
total 8
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
drwxr-xr-x 4 root root 4096 Dec 1 15:12 cfg
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn:
total 24
-r--r--r-- 1 root root 129 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 257 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/text-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/text-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg:
total 16
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
drwxr-xr-x 3 root root 4096 Dec 1 15:14 nrpe
-rw-r--r-- 1 root root 7217 Dec 1 15:12 nrpe.cfg
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn:
total 24
-r--r--r-- 1 root root 282 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 408 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/text-base:
total 8
-r--r--r-- 1 root root 7217 Dec 1 15:12 nrpe.cfg.svn-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/text-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe:
total 12
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
-rw-r--r-- 1 root root 687 Dec 1 15:12 asterisk.cfg
-rw-r--r-- 1 root root 1309 Dec 1 15:14 common.cfg
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn:
total 24
-r--r--r-- 1 root root 462 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 553 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:14 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/text-base:
total 8
-r--r--r-- 1 root root 687 Dec 1 15:12 asterisk.cfg.svn-base
-r--r--r-- 1 root root 1309 Dec 1 15:14 common.cfg.svn-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:14 text-base
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/prop-base:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/props:
total 0
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/text-base:
total 0