There is only one check that is failing.
Code: Select all
Oct 3 15:36:51 coralsea nrpe[1264]: Host 10.0.130.70 is asking for command 'check_multipath' to be run...
Oct 3 15:36:51 coralsea nrpe[1264]: Running command: /usr/lib/nagios/plugins/check_multipath.sh
Oct 3 15:36:51 coralsea nrpe[1265]: WARNING: my_system() seteuid(0): Operation not permitted
Oct 3 15:36:51 coralsea nrpe[1264]: Command completed with return code 0 and output:
Oct 3 15:36:51 coralsea nrpe[1264]: Return Code: 3, Output: NRPE: Unable to read outputCode: Select all
(TEST-BOYERS-3|jenglish@coralsea ~)$ uname -r ; cat /etc/redhat-release ; nrpe -V
3.10.0-862.6.3.el7.x86_64
Red Hat Enterprise Linux Server release 7.5 (Maipo)
NRPE - Nagios Remote Plugin Executor
Version: 3.2.0Code: Select all
(TEST-BOYERS-3|jenglish@coralsea ~)$ sudo grep nrpe /etc/sudoers
nrpe ALL=NOPASSWD:!ALL, /usr/sbin/hpacucli, /bin/ping, /usr/sbin/dmidecode, /usr/bin/openssl, /bin/egrep, /sbin/ethtool -S *, /sbin/service * restart, /usr/lib/nagios/plugins/check_fts_t1.sh, /usr/lib/nagios/plugins/check_zero_length_files.sh, /usr/lib/nagios/plugins/check_file_age, /usr/bin/radwho, /usr/bin/radlast, /usr/sbin/postqueue, /bin/cat, /bin/ls, /usr/bin/find, /usr/lib/nagios/plugins/check_dir, /sbin/multipath -ll, /sbin/service iptables status, /usr/sbin/hpacucli, /bin/ping, /usr/sbin/dmidecode, /usr/bin/openssl, /bin/egrep, /usr/sbin/ethtool -S, /usr/openv/volmgr/bin/vmquery, /usr/openv/volmgr/bin/tpconfig, /var/ossec/bin/list_agents, /usr/openv/netbackup/bin/admincmd/bpplclients, /usr/openv/volmgr/bin/vmoprcmdCode: Select all
(TEST-BOYERS-3|jenglish@coralsea ~)$ cat /etc/nagios/nrpe.cfg
# Nagios NRPE Configuration
server_port=5666
allowed_hosts=127.0.0.1,10.0.130.70,172.24.17.133,172.27.17.133
nrpe_user=nrpe
nrpe_group=nrpe
dont_blame_nrpe=1
debug=1
command_timeout=900
command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
#command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
command[check_temp]=/usr/lib/nagios/plugins/check_temp -w $ARG1$ -c $ARG2$
command[check_procs]=/usr/lib/nagios/plugins/check_procs -C $ARG1$ -c $ARG2$
command[check_tomcat_memory]=/usr/lib/nagios/plugins/check_tomcat_memory.sh
command[check_lock_age]=/usr/lib/nagios/plugins/check_file_age_wrapper.sh
command[check_file_size]=/usr/lib/nagios/plugins/check_file_age -f $ARG1$ -W $ARG2$ -C $ARG3$ -w $ARG4$ -c $ARG5$
command[check_catalina_logs]=/usr/lib/nagios/plugins/check_logfiles -t 3600 --logfile=/var/log/tomcat/catalina.out --criticalpattern="Java heap space"
command[check_init]=/usr/lib/nagios/plugins/check_init.sh $ARG1$ "$ARG2$"
command[check_swap]=/usr/lib/nagios/plugins/check_swap $ARG1$ $ARG2$
command[check_jpas]=/usr/lib/nagios/plugins/check_jpas.sh
command[check_ntp_peer]=/usr/lib/nagios/plugins/check_ntp_peer -H 10.0.130.70 -w 0.5 -c 1 -W 5 -C 7
command[check_ntp_procs]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 0:2 -C ntpd
command[check_ntp_time]=/usr/lib/nagios/plugins/check_ntp_time -H 10.0.130.70 -w 0.5 -c 1
command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -l -w $ARG1$ -c $ARG2$
command[check_proc_string]=/usr/lib/nagios/plugins/check_procs -a $ARG1$ -c $ARG2$
command[check_linux_kernel]=/usr/lib/nagios/plugins/check_linux_kernel.sh
command[check_iptables_getenforce]=/usr/lib/nagios/plugins/check_iptables_getenforce.sh
command[check_bond]=/usr/lib/nagios/plugins/check_bond.sh
command[check_multipath]=/usr/lib/nagios/plugins/check_multipath.sh
command[check_md5sum]=/usr/lib/nagios/plugins/check_md5sum.sh $ARG1$
command[check_mysql_backup]=/usr/lib/nagios/plugins/check_mysql_backups.sh
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -uroot -popm4me2
command[check_generic]=/usr/lib/nagios/plugins/$ARG1$ $ARG2$ $ARG3$
command[restart_tomcat]=/usr/local/bin/restart_tomcat.shCode: Select all
(TEST-BOYERS-3|jenglish@coralsea ~)$ systemctl cat nrpe
# /usr/lib/systemd/system/nrpe.service
[Unit]
Description=Nagios Remote Program Executor
Documentation=http://www.nagios.org/documentation
Conflicts=nrpe.socket
Requires=network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=forking
User=nrpe
Group=nrpe
EnvironmentFile=/etc/sysconfig/nrpe
ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d $NRPE_SSL_OPTCode: Select all
(TEST-BOYERS-3|jenglish@coralsea ~)$ getsebool -a | grep nagios_run_sudo ; ll -Z /usr/lib*/nagios/plugins/check_multipath.sh
nagios_run_sudo --> on
-rwxr-xr-x. nrpe nrpe system_u:object_r:nagios_unconfined_plugin_exec_t:s0 /usr/lib64/nagios/plugins/check_multipath.sh
-rwxr-xr-x. nrpe nrpe system_u:object_r:nagios_unconfined_plugin_exec_t:s0 /usr/lib/nagios/plugins/check_multipath.sh