Page 1 of 1

nrpe check_disk have wrong result on nagios web.

Posted: Thu Jul 13, 2017 11:38 pm
by nuryadisan
Hi all, I need help. I had problem with my nagios core monitoring. I already check on my nagios server and nagios client. All conf is alright i think. My problem is when I test disk manually from console using command
/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/xvda1
the result is fine. But when i check on my nagios web the result is wrong at disk partition. All my server is 95,44% Please check my attachment for pict.

This my distro information

CentOS Linux release 7.3.1611 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.3.1611 (Core)
CentOS Linux release 7.3.1611 (Core)

I using nagios core 4.3.2
NRPE 2.15


If anything you need to know please let me know.

Cheers!

Re: nrpe check_disk have wrong result on nagios web.

Posted: Fri Jul 14, 2017 12:10 pm
by mcapra
Can you share the nrpe.cfg from one of the remote machines, as well as the Nagios service definition you are currently using to check the disks on the same host you are pulling nrpe.cfg from?

Re: nrpe check_disk have wrong result on nagios web.

Posted: Fri Jul 14, 2017 12:24 pm
by dwhitfield
nuryadisan wrote:
/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/xvda1
This looks like you are running it on the remote machine. What happens when you run the check from the command line on the Nagios server?