Page 1 of 1

nagoisxi check_iostat

Posted: Wed Aug 12, 2015 12:52 am
by michaelli
Hi!

I am following below link to mointor disk's IO in a host.

https://exchange.nagios.org/directory/P ... 14/details

In above link, there has check_iostat.php file. Does it need to import to nagiosxi because it doesn't mention.

Beside, I have no idea the warning level or critical level from a monitored disk and below is some information from a disk.

Code: Select all

[root@nagiosxi libexec]# iostat 2
Linux 2.6.32-431.el6.x86_64 (nagiosxi)  08/12/2015      _x86_64_        (8 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           5.57    0.00    2.66    0.15    0.16   91.46

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda              46.65        68.19      2092.87    4113554  126249888

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           1.63    0.00    0.56    0.00    0.06   97.75

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda               7.50         0.00       100.00          0        200

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.13    0.00    0.38    0.06    0.06   97.37

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda              13.00         0.00       380.00          0        760

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           7.83    0.00    4.57    0.13    0.00   87.47

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda              32.50         0.00      4404.00          0       8808

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          17.41    0.00    8.08    0.19    0.06   74.26

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda              27.00         0.00      4536.00          0       9072

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.25    0.00    0.19    0.06    0.00   99.50

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
vda              10.00         0.00        80.00          0        160

What threshold value to declare the disk IO is busy?


[root@nagiosxi libexec]# ./check_iostat -d vda
ERROR: You must specify all warning and critical levels

This plugin shows the I/O usage of the specified disk, using the iostat external program.
It prints three statistics: Transactions per second (tps), Kilobytes per second
read from the disk (KB_read/s) and and written to the disk (KB_written/s)

./check_iostat:
-d <disk> Device to be checked (without the full path, eg. sda)
-c <tps>,<read>,<wrtn>,<await> Sets the CRITICAL level for tps, KB_read/s, KB_written/s and average wait, respectively
-w <tps>,<read>,<wrtn>,<await> Sets the WARNING level for tps, KB_read/s, KB_written/s and average wait, respectively

Re: nagoisxi check_iostat

Posted: Wed Aug 12, 2015 1:12 am
by Box293
michaelli wrote:In above link, there has check_iostat.php file. Does it need to import to nagiosxi because it doesn't mention.
This can be used as a graph template in Nagios. The command_name must match the name of the php file (excluding the .php). It is uploaded via Admin > System Config > Graph Templates. NOTE: If highcharts is your graphing choice in Nagios XI then this template won't be used. You can define your graphing choice via Admin > System Config > Manage System Config > Use Highcharts for Perfdata graphs.

Why don't you try some high thresholds to start off with and see what is "normal" for your environment. Then you can observe the historical graphs and derive realistic thresholds based in your environment.

Code: Select all

./check_iostat -d sda -w 1000,1000,1000,1000 -c 2000,2000,2000,2000