check_disk inode bug

Phil Costelloe philc at foundation-it.com
Wed Dec 20 16:53:26 CET 2006


Matthias Haider wrote:

> i am trying to check the inode usage of a partition , where df -ih
> says there are 31% of inodes used, but check_disk exits with CRITICAL
> when setting --icritical to 5%:  
> 
> <snip>
> ~# /usr/lib/nagios/plugins/check_disk -vvv --icritical 5%  / For /,
> used_pct=38 free_pct=62 used_units=3344 free_units=5567 
> total_units=9388 used_inodes_pct=31
> Freespace_units result=0
> Freespace% result=0
> Usedspace_units result=0
> Usedspace_percent result=0
> Usedinodes_percent result=2
> DISK CRITICAL - free space: / 5567 MB (62% inode=69%);| /
> =3344MB;-2147483648;-2147483648;0;9388
> </snip>
> 
> why is Usedinodes_percent result=2 when used_inodes_pct=31 and the
> critical threshosd is 5% ??? 

2 is the return status for that check (0=OK, 1=Warning, 2=Critical) and
not a specific metric concerning inodes.

Phil
 
--------------------------------------------------------

Phil Costelloe
Technical Consultant

   
philc at foundation-it.com
http://www.foundation-it.com
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299

 

--------------------------------------------------------
This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
--------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list