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.
What's the meaning of inode?
-
sify_nagios
- Posts: 54
- Joined: Thu Aug 20, 2015 8:01 am
Re: What's the meaning of inode?
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.
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?
Hi Team,
It says Incorrect command line arguments supplied Kindly guide us to fix the same.
While Passing disk threshold along with Inode threshold.
While passing Inode threshold alone.
Let me know what i am doing wrong.
Rgds
Srini
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
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
Rgds
Srini
Re: What's the meaning of inode?
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?
Hi Team,
Its my bad that i have missed the quotation. It works with quote.
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.
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.
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 ~]#
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 ~]#
Help us out on the same.
Rgds
Srini.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: What's the meaning of inode?
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;17709https://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?
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.
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?
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.
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