Page 1 of 1
What's the meaning of inode?
Posted: Tue Jun 07, 2016 4:06 am
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.
Re: What's the meaning of inode?
Posted: Tue Jun 07, 2016 9:51 am
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
Re: What's the meaning of inode?
Posted: Mon Jun 20, 2016 6:32 am
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
Re: What's the meaning of inode?
Posted: Mon Jun 20, 2016 10:08 am
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.
Re: What's the meaning of inode?
Posted: Tue Jun 21, 2016 12:33 am
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.
Re: What's the meaning of inode?
Posted: Tue Jun 21, 2016 1:43 am
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
Re: What's the meaning of inode?
Posted: Tue Jun 21, 2016 2:07 am
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.
Re: What's the meaning of inode?
Posted: Tue Jun 21, 2016 9:36 am
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.