# NRPE Check\_disk is not showing performace data (values)

**URL:** <https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462>\
**Category:** Icinga 2\
**Tags:** icinga2\
**Created:** [February 11, 2020, 11:56am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462 "2020-02-11T11:56:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 11, 2020, 11:56am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/1 "2020-02-11T11:56:43Z")

</div>

Hi,

I am facing one issue with Check\_disk nrpe plugin, Icinga able to fetch free space for particular partition, but no output (zero) shows in performance data “Values” and due to this no graph generated.

===============================================================  
**Manually executing check\_disk for /home partition**  
[root@server1 /opt] # /usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /home  
DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230

===============================================================  
**Plugin output in Icinga**

dfree\_units 0 0

disk\_result is 0DISK OK - free space: /home 30367 MiB (98.89% inode=100%)

===============================================================  
**NRPE and Nagios plugin version details**

[root@server1~]# rpm -qa |grep nrpe  
nagios-plugins-nrpe-3.2.1-8.el7.x86\_64  
nrpe-3.2.1-8.el7.x86\_64  
[root@server1~]# rpm -qa |grep nagios|grep disk  
nagios-plugins-disk-2.3.1-1.el7.x86\_64

===============================================================

Please help us to fix this issue.

Regards,  
AviKarry

---

<div class="post-metadata">

**Author:** ![aflatto](https://community.icinga.com/user_avatar/community.icinga.com/aflatto/32/160_2.png) [@aflatto](https://community.icinga.com/u/aflatto)\
**Post date:** [February 11, 2020, 1:09pm UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/2 "2020-02-11T13:09:09Z")

</div>

Hello Avi

When you send the nrpe check from the master cli, what is the output you get?  
Can you also share the configuration of the service definition?

Regards

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 12, 2020, 4:01am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/3 "2020-02-12T04:01:52Z")

</div>

Hi,

Please find the requested details.

**- From Icinga Server**  
[root@ICINGA plugins]# ./check\_nrpe -H 10.13.33.230 -c check\_home  
DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230

* * *

**Disk check Service for /home partition**

apply Service “Disk /home” {

check\_command = “nrpe”  
vars.nrpe\_command = “check\_home”  
check\_interval = 1m  
retry\_interval = 1m

```
    vars.notification["mail"] = {
/* The UserGroup `icingaadmins` is defined in `users.conf`. */
    groups = ["icingaadmins`"]

```

}  
assign where host.vars.Check\_Partition\_home  
}

* * *

We are observing same behaviour for all partitions monitoring through ‘check\_disk’

Regards,  
AviKarry

---

<div class="post-metadata">

**Author:** ![aflatto](https://community.icinga.com/user_avatar/community.icinga.com/aflatto/32/160_2.png) [@aflatto](https://community.icinga.com/u/aflatto)\
**Post date:** [February 12, 2020, 8:42am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/4 "2020-02-12T08:42:08Z")

</div>

I have not encountered this before, can you confirm that perfdata feature is enabled on the Icinga master ?

What can you see about these checks in the debug log ?

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [February 12, 2020, 8:47am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/5 "2020-02-12T08:47:55Z")

</div>

> [@avikarry](#):
>
> [root@ICINGA plugins]# ./check\_nrpe -H 10.13.33.230 -c check\_home

You are testing as root, which may have different behaviour than the Icinga daemon’s [user](https://icinga.com/docs/icinga2/latest/doc/05-service-monitoring/#ensure-it-works).

Also, please extract the [executed command line](https://icinga.com/docs/icinga2/latest/doc/15-troubleshooting/#executed-command-for-checks) from Icinga itself.

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 13, 2020, 4:02am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/6 "2020-02-13T04:02:56Z")

</div>

**Yes, Perfdata is already enabled.**

_[root@ICINGA ~]# icinga2 feature list_  
_Disabled features: compatlog debuglog elasticsearch gelf influxdb opentsdb statusdata syslog_  
_Enabled features: api checker command graphite ido-mysql livestatus mainlog notification perfdata_

**In logs only found below traces for perfdata**

_[2020-02-13 09:23:53 +0530] warning/GraphiteWriter: Ignoring invalid perfdata value: /home=227MiB;16376;18423;0;20470_  
_Context:_

- 

```
   (0) Processing check result for 'INMB1-REN-UPI-DB1T!Disk /home'*

```

_[2020-02-13 09:23:53 +0530] warning/GraphiteWriter: Ignoring invalid perfdata value: /usr=2263MiB;12280;13815;0;15350_  
_Context:_

- 

```
   (0) Processing check result for 'inmb1rhnsatllite.localinfra!Disk /usr'*
```

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 13, 2020, 4:07am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/7 "2020-02-13T04:07:06Z")

</div>

Plugin command output from Icinga user

[root@ICINGA ~]# sudo -u icinga /usr/lib64/nagios/plugins/check\_nrpe -H 10.13.33.230 -c check\_home  
DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 13, 2020, 4:43am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/8 "2020-02-13T04:43:43Z")

</div>

One more thing I want to highlight, We are facing this issue only with latest NRPE ‘3.2.x’ version, but not with ‘nrpe-2.15-x’ version

[root@inmb1rhnsatllite ~]# rpm -qa |grep nrpe  
nagios-plugins-nrpe-3.2.1-8.el7.x86\_64  
nrpe-3.2.1-8.el7.x86\_64

[root@ICINGA ~]# sudo -u icinga /usr/lib64/nagios/plugins/check\_nrpe -H 10.13.33.230 -c check\_home  
DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230

* * *

**nrpe-2.15-7.el7.x86\_64.rpm**

**Plugin Output for NRPE -2.15.x version**

DISK OK - free space: /var/lib/mysql 309908 MB (42% inode=99%);

[root@ICINGA ~]# sudo -u icinga /usr/lib64/nagios/plugins/check\_nrpe -H 10.13.13.12 -c check\_home  
DISK OK - free space: /home 29541 MB (63% inode=99%);| /home=16764MB;37044;41674;0;46305

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [February 13, 2020, 8:55am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/9 "2020-02-13T08:55:16Z")

</div>

Hi,

you are querying two different host IP addresses. Is that intended? 😉

> [@avikarry](#):
>
> 10.13.33.230
> 
> 10.13.13.12

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 14, 2020, 3:34am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/10 "2020-02-14T03:34:36Z")

</div>

Hi,

10.13.33.230 - This serrver has NRPE-3.2 version installed. ( Facing issue for this NRPE version)

10.13.13.12 - This server has NRPE-2.15 version installed. ( Working properly)

Regards,  
Avikarry

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [February 14, 2020, 7:23am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/11 "2020-02-14T07:23:41Z")

</div>

Have you tried using the `-2` switch of the check\_nrpe plugin and see if that changes anything?  
On the command line the check shows the performance data, but not in Icinga Web 2, if I understand you correctly?

As you are using Graphite for displaying the graphs the `perfdata` feature is not needed.

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 15, 2020, 2:57pm UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/12 "2020-02-15T14:57:15Z")

</div>

**No change in output with -2 switch**

_[root@ICINGA plugins]# sudo -u icinga /usr/lib64/nagios/plugins/check\_nrpe -H 10.13.33.230 -c check\_home_  
_DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230_  
_[root@ICINGA plugins]# sudo -u icinga /usr/lib64/nagios/plugins/check\_nrpe -2 -H 10.13.33.230 -c check\_home_  
_DISK OK - free space: /home 10196 MiB (99.67% inode=100%);| /home=33MiB;8184;9207;0;10230_

**Yes, You are right, On the command line the check shows the performance data, but not in Icinga Web 2**

- Pease find the attached screenshot for your reference.

**Yes, we are using Graphite, So we have now disabled pefdata feature in icinga.**

Is there any issue/bug with NRPE-3.2 plugin, as all the servers with NRPE-2.15 showing properly peformance Graphs ? ![No Graph Data](https://community.icinga.com/uploads/default/original/2X/1/1661495ecdd264a2e70408134de159cec0688d54.png)

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [February 17, 2020, 6:59am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/13 "2020-02-17T06:59:24Z")

</div>

I see the problem now:

> [@avikarry](#):
>
> /home=33MiB;8184;9207;0;10230

M **i** B is not a vaild UOM for performance data

> [@https://www.monitoring-plugins.org/doc/guidelines.html#AEN201](#):
>
> UOM (unit of measurement) is one of:
> 
> 1. no unit specified - assume a number (int or float) of things (eg, users, processes, load averages)
> 2. s - seconds (also us, ms)
> 3. % - percentage
> 4. B - bytes (also KB, MB, TB)
> 5. c - a continous counter (such as bytes transmitted on an interface)

What is your NRPE command line behind `check_home`? Did you explicitly say it should output M **i** B?

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 17, 2020, 8:38am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/14 "2020-02-17T08:38:17Z")

</div>

I am facing this issue for all the Linux partitions.

**Below are NRPE commands from client nrpe.cfg file**  
command[check\_boot]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /boot  
command[check\_root]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /  
command[check\_usr]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /usr  
command[check\_var]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /var  
command[check\_opt]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /opt  
command[check\_home]=/usr/lib64/nagios/plugins/check\_disk -w 20% -c 10% -p /home

Please let us know any modification needed in above commands.

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [February 17, 2020, 8:55am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/15 "2020-02-17T08:55:26Z")

</div>

Ah, it is the check\_disk plugin of the nagios-plugins project used here.

Here is a bug concerning your problem:

> <https://github.com/nagios-plugins/nagios-plugins/issues/518>
>
> I think this is maybe some backward compatibility issue, but the documentation doesn't mention this, and this is confusing:
> help:
> \-m, --megabytes
> Same as...

Add the`-m` switch to your command line, and all should be fine.

I’m not sure why they so often fiddle with the perf data output… (happend to check\_icmp recently as well) and then break compatability…

---

<div class="post-metadata">

**Author:** ![avikarry](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@avikarry](https://community.icinga.com/u/avikarry)\
**Post date:** [February 17, 2020, 9:32am UTC](https://community.icinga.com/t/nrpe-check-disk-is-not-showing-performace-data-values/3462/16 "2020-02-17T09:32:42Z")

</div>

**Thank you so much**

Issue resolved with passing “-m” flag with NRPE ‘check\_disk’ command on clients
