Page 1 of 1

Configure alerting thresholds on inode usage

Posted: Tue Sep 19, 2017 11:45 am
by Sampath.Basireddy
Hi There,

I need help in setting up thresholds for inode usage on a Linux servers with NRPE.

inode usage metrics is being collected by check_nrpe check_disk.

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H 192.168.0.0 -t 30 -c check_disk -a '-w 10% -c 5% -p /filesystem'
DISK OK - free space: /filesystem 425030 MB (53% inode=99%);| /filesystem=376772MB;760232;802467;0;844703
Is there any way I can configure warning and critical thresholds for the inode metrics collected ?

Thank You.

Re: Configure alerting thresholds on inode usage

Posted: Tue Sep 19, 2017 1:07 pm
by kyang
Hi @Sampath.Basireddy,

Yes there is. Here is what I see in help options of the check_disk plugin for inode metrics.

Code: Select all

Options:
 -W, --iwarning=PERCENT%
    Exit with WARNING status if less than PERCENT of inode space is free
 -K, --icritical=PERCENT%
    Exit with CRITICAL status if less than PERCENT of inode space is free
 -p, --path=PATH, --partition=PARTITION
    Mount point or block device as emitted by the mount(8) command (may be repeated)
Using -W for warning and -K for critical should give you a way of configuring thresholds for inode.

Here's my example

Code: Select all

[root@centos7x64 libexec]# ./check_disk -W 1% -K 100% -p /boot
DISK CRITICAL - free space: /boot 242 MB (48.85% inode=100%);| /boot=254MB;;;0;496
Let me know if this helps

Re: Configure alerting thresholds on inode usage

Posted: Tue Sep 19, 2017 5:36 pm
by Sampath.Basireddy
Thanks @kyang.

That worked. I was kind of confused with the thresholds, but sorted it though now.

Thank You for your quick help!!

Re: Configure alerting thresholds on inode usage

Posted: Tue Sep 19, 2017 7:33 pm
by dwhitfield
Did you have any other questions, or are we ready to lock this up?

Re: Configure alerting thresholds on inode usage

Posted: Mon Sep 25, 2017 5:08 pm
by Sampath.Basireddy
Sure, please lock this thread. Thank you for the support.