Page 1 of 1

Differing results from same probe using NRPE

Posted: Thu Nov 01, 2018 11:10 am
by Bitflogger
Hello, I'm running v5.5.5, 64-bit, VM, CentOS 7

We have a command that is run on over 100 servers, and it works fine on all but two servers.

The same command run on the command line, from the XI server, to the problem servers works fine.

[ead@winston nagios-extra]$ date
Thu Nov 1 11:04:33 CDT 2018
[ead@winston nagios-extra]$ ./check_nrpe_2.15 -H ldap15.doit.wisc.edu -u -t 30 -c disk_ldap15.doit.wisc.edu
DISK OK| /=3118MB;8561;8745;0;9206 /boot=183MB;467;477;0;503 /tmp=39MB;943;964;0;1015 /var=967MB;4752;4854;0;5110 /home=45MB;1893;1934;0;2036 /var/tmp=39MB;943;964;0;1015 /usr/local/mst=446MB;4750;4852;0;5108 /var/lib/docker=86MB;9510;9714;0;10226 /var/lib/mst=75383MB;114250;116707;0;122850 /var/log=162MB;943;964;0;1015 /var/log/audit=56MB;943;964;0;1015 /var/log/mst=32MB;9510;9714;0;10226 /var/lib/docker/containers=86MB;9510;9714;0;10226 /var/lib/docker/devicemapper=86MB;9510;9714;0;10226 /var/lib/rancher/volumes=967MB;4752;4854;0;5110 /var/lib/kubelet=967MB;4752;4854;0;5110
[ead@winston nagios-extra]$

The XI service returns: NRPE: Command 'disk_ldap15.doit.wisc.edu' not defined

The XI command is:
define service {
service_description l_disk
use generic-linux-service-disk
hostgroup_name _linux
check_command check_nrpe!disk_$HOSTNAME$!!!!!!!
is_volatile 0
process_perf_data 1
notification_interval 240
first_notification_delay 10
register 1
}

define command {
command_name check_nrpe
command_line $USER5$/check_nrpe_2.15 -H $HOSTADDRESS$ -u -t 30 -c $ARG1$
}

Earl

Re: Differing results from same probe using NRPE

Posted: Thu Nov 01, 2018 11:24 am
by Bitflogger
Hello,

Please hold, we have identified a IP problem.

Re: Differing results from same probe using NRPE

Posted: Thu Nov 01, 2018 11:27 am
by Bitflogger
Please close, host name did match address.

Earl

Re: Differing results from same probe using NRPE

Posted: Thu Nov 01, 2018 11:34 am
by benjaminsmith
Hi Earl,

Glad to hear you found the problem. I'll close the case.

Thank you for using the Nagios Support Forums.