What's the meaning of inode?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

What's the meaning of inode?

Post by sify_nagios »

Hi Team,

Even though the inode utilized 100% the check_disk won't trigger alert.
How to get the alert from nagios whenever the inode value cross the 90% ?

Thanks and Regards
Srini

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewtopic.php?t=21838
In the future, please create a new thread and link to the old one instead of adding on.
Attachments
Inode value 0
Inode value 0
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: What's the meaning of inode?

Post by tgriep »

You would have to specify the -W and the -K options for the check_disk plugin to get warning and critical alerts for inodes.
Take a look at the following.
-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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: What's the meaning of inode?

Post by sify_nagios »

Hi Team,

It says Incorrect command line arguments supplied Kindly guide us to fix the same.

While Passing disk threshold along with Inode threshold.

Code: Select all


[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.189 -t 30 -c check_disk -a -w 20% -c 10% --iwarning=80% --icritical=90% -p /                 /usr/local/nagios/libexec/check_nrpe: unrecognized option '--iwarning=80%'
/usr/local/nagios/libexec/check_nrpe: unrecognized option '--icritical=90%'
Incorrect command line arguments supplied

[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.189 -t 30 -c check_disk -a -w 20% -c 10% -W 80% -K 90% -p /
/usr/local/nagios/libexec/check_nrpe: invalid option -- 'W'
/usr/local/nagios/libexec/check_nrpe: invalid option -- 'K'
Incorrect command line arguments supplied


While passing Inode threshold alone.

Code: Select all

[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.189 -t 30 -c check_disk -a --iwarning=80% --icritical=90% -p /
/usr/local/nagios/libexec/check_nrpe: unrecognized option '--icritical=90%'
Incorrect command line arguments supplied

/usr/local/nagios/libexec/check_nrpe -H 192.168.98.189 -t 30 -c check_disk -a -W 80% -K 90% -p /
/usr/local/nagios/libexec/check_nrpe: invalid option -- 'K'
Incorrect command line arguments supplied

Let me know what i am doing wrong.

Rgds
Srini
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: What's the meaning of inode?

Post by rkennedy »

Please show us how check_disk is defined in your NRPE configuration. It really depends how your passing $ARG$ values, you could just need to put everything after -a in single / double quotes.
Former Nagios Employee
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: What's the meaning of inode?

Post by sify_nagios »

Hi Team,

Its my bad that i have missed the quotation. It works with quote.

Code: Select all

[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.187 -t 30 -c check_disk -a "-w 20% -c 10% --iwarning=20% --icritical=10% -p /"
DISK OK - free space: / 29749 MB (31% inode=99%);| /=65924MB;80634;90713;0;100793
[root@Nagiosprimary ~]#
But not sure how threshold should be passed in order to trigger alert when inode free is 10% or low. It seems the given threshold value is compared with inode free space and trigger alert whenever the inode free value is greater than or equal to given threshold.

Refer below for your reference.

Code: Select all

[root@Nagiosprimary ~]#
[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.187 -t 30 -c check_disk -a "-w 20% -c 10% --iwarning=20% --icritical=1% -p /"
DISK OK - free space: / 29749 MB (31% inode=99%);| /=65924MB;80634;90713;0;100793
You have new mail in /var/spool/mail/root
[root@Nagiosprimary ~]#
[root@Nagiosprimary ~]#
[root@Nagiosprimary ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.98.187 -t 30 -c check_disk -a "-w 20% -c 10% --iwarning=20% --icritical=99% -p /"
DISK CRITICAL - free space: / 29749 MB (31% inode=99%);| /=65924MB;80634;90713;0;100793
[root@Nagiosprimary ~]#
If i am not wrong in how the threshold works, then how to set the threshold in order to trigger alert whenever the free inode reaches below 10%?

Help us out on the same.

Rgds
Srini.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: What's the meaning of inode?

Post by Box293 »

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H centos01 -t 30 -c check_disk -a "-w 20% -c 10% --iwarning=20% --icritical=10% -p /"

DISK OK - free space: / 15148 MB (90% inode=97%);| /=1661MB;14167;15938;0;17709
I think perhaps that the plugin does not report exactly what is the issue when it goes critical. It might appear to be a disk space issue because this is the first piece of information displayed after "DISK CRITICAL" when really it's an inode issue. Perhaps you should report this on GitHub for nagios-plugins:

https://github.com/nagios-plugins/nagios-plugins/issues
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: What's the meaning of inode?

Post by sify_nagios »

Hi Troy,

As suggested, i have raised a issue in GitHub for nagios-plugins.

Refer : check_disk plugin not working with inode threshold #162

Thanks for your support. ETA for fix would help us to track it down.

Rgds
Srini.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: What's the meaning of inode?

Post by rkennedy »

Thanks! Our developers will take a look at it -- as it's now been filed it's up to them to fix it.

We don't have a timeline available for a fix, but with this you're able to watch the issue on GitHub for any updates.
Former Nagios Employee
Locked