> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Matthias Haider > Sent: Wednesday, December 20, 2006 9:12 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] check_disk inode bug > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hello again, > > 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% ??? > > is this a bug?
I was just looking at this and I believe that it is, at least for your OS/partition type/plugin version combination. Check_disk doesn't use df but rather system calls directly via popen.c. Maybe something is wrong there. The clue is that your results are incorrect both in your performance data and in your verbose output indicating that it's might be getting either incorrect or no parseable information back from the system calls. I'd try the CVS version to make sure that it isn't something that's corrected, and if that doesn't work, bounce the question over to nagios-plugins, providing the information above as well as your OS/version and filesystem type you are checking. They'll be more familiar with the internal workings of the plugin. -- Marc ------------------------------------------------------------------------- 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@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