Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_mio
2016080902
2016-08-09
- Nagios 3.x
- Nagios 4.x
GPL
24341
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Requirements:
* Linux Kernel 2.6+
* Bash 3+
Includes:
* check_mio - shell script plugin for Nagios
* mio.php - optional template for PNP4Nagios
Usage:
./check_mio -d disk -w iops,await,read_data,write_data -c iops,await,read_data,write_data
Arguments:
-d block device (w/o /dev)
-w warning values
-c critical values
iops - transactions per seconds (tps)
await - average wait time for all requests (ms)
read_data - data read (bytes per second)
write_wata - data written (bytes per second)
Example:
./check_mio -d sda -w 200,2000,52428800,52428800 -c 400,4000,104857600,104857600
* Linux Kernel 2.6+
* Bash 3+
Includes:
* check_mio - shell script plugin for Nagios
* mio.php - optional template for PNP4Nagios
Usage:
./check_mio -d disk -w iops,await,read_data,write_data -c iops,await,read_data,write_data
Arguments:
-d block device (w/o /dev)
-w warning values
-c critical values
iops - transactions per seconds (tps)
await - average wait time for all requests (ms)
read_data - data read (bytes per second)
write_wata - data written (bytes per second)
Example:
./check_mio -d sda -w 200,2000,52428800,52428800 -c 400,4000,104857600,104857600
Reviews (2)
bypankajsain, January 27, 2015
It works perfectly fine and giving beautiful graphs.
Thanks dear.
Thanks dear.
byfm2ahmed, October 10, 2014
1 of 1 people found this review helpful
Hi,
Can you please help me as it does not run when run via NRPE. Runs fine locally.
Can you please help me resolve ASAP??
When run via NRPE
===================
[root@viz-nagios-server-sc ~]# /usr/local/nagios/libexec/check_nrpe -H 172.16.66.205 -c check_disk_io
I/O UNKNOWN Unable to save current stats for later usage
When run Locally
======================
[root@viz-nagios-server-sc ~]# /usr/local/nagios/libexec/check_mio -d sda -w 200,2000,52428800,52428800 -c 400,4000,104857600,104857600
I/O OK |req_read=0r/s;;; req_write=2r/s;;; await=3ms;;; data_read=26b/s;;; data_write=24100b/s;;;
Reagards,
fm2ahmed
Can you please help me as it does not run when run via NRPE. Runs fine locally.
Can you please help me resolve ASAP??
When run via NRPE
===================
[root@viz-nagios-server-sc ~]# /usr/local/nagios/libexec/check_nrpe -H 172.16.66.205 -c check_disk_io
I/O UNKNOWN Unable to save current stats for later usage
When run Locally
======================
[root@viz-nagios-server-sc ~]# /usr/local/nagios/libexec/check_mio -d sda -w 200,2000,52428800,52428800 -c 400,4000,104857600,104857600
I/O OK |req_read=0r/s;;; req_write=2r/s;;; await=3ms;;; data_read=26b/s;;; data_write=24100b/s;;;
Reagards,
fm2ahmed
Owner's reply
This happens when you run the script as root for the first time and then try to run it as different user.
Just delete the temp file "/var/tmp/check_mio.sda" or chown it to the
user running NRPE.