Disk I/O for all Multipath devices

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

What should I check then?
Can you please help?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk I/O for all Multipath devices

Post by jdalrymple »

yunushaikh wrote:Can you please help?
I'm trying
jdalrymple wrote:
ssax wrote:Does your multipath device vendor offer MIB files that you can use or have any information on where to get that data through SNMP?
You need to answer that, or at a minimum tell us what mpio device/driver you're using and we can try to research a bit for ourselves.
So... please answer the aforementioned question and we'll see if we can help.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

Hello Sir,

How do I check about MPIO drivers. I am using Centos 6.6
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

i am using MPIO provided by CENTOS
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk I/O for all Multipath devices

Post by jdalrymple »

Nothing is standing out on the Exchange.

Show us the output of `ls /sys/block` from one of the multipath systems. Perhaps we can modify the plugin we suggested in the earlier thread to help.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

Thanks for showing the hope

Here is the output of that command
ls /sys/block

dm-0 dm-12 dm-16 dm-5 dm-9 loop3 loop7 ram11 ram15 ram5 ram9 sdac sdag sdak sdao sdas sdaw sdb sdbd sdd sdh sdl sdp sdt sdx
dm-1 dm-13 dm-2 dm-6 loop0 loop4 ram0 ram12 ram2 ram6 sda sdad sdah sdal sdap sdat sdax sdba sdbe sde sdi sdm sdq sdu sdy
dm-10 dm-14 dm-3 dm-7 loop1 loop5 ram1 ram13 ram3 ram7 sdaa sdae sdai sdam sdaq sdau sday sdbb sdbf sdf sdj sdn sdr sdv sdz
dm-11 dm-15 dm-4 dm-8 loop2 loop6 ram10 ram14 ram4 ram8 sdab sdaf sdaj sdan sdar sdav sdaz sdbc sdc sdg sdk sdo sds sdw sr0

I am in very need of disk I/O on my servers for implementing nagios.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

Starting with dm are the multipath devices.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk I/O for all Multipath devices

Post by jdalrymple »

Try modifying the check_all_diskstat.sh script as follows:

Code: Select all

#!/bin/bash

CHK=/usr/local/nagios/libexec/check_diskstat.sh
WARN=${1:-"200,10000,10000"}
CRIT=${2:-"300,20000,20000"}

for DEVICE in `ls /sys/block/dm*`; do
        if [ -L /sys/block/$DEVICE/device ]; then
                DEVNAME=$(echo /dev/$DEVICE)
                echo -n "$DEVNAME: "
                $CHK -d $DEVICE -w $WARN -c $CRIT | sed "s#=#_$DEVNAME=#g"
        fi
done
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Disk I/O for all Multipath devices

Post by yunushaikh »

Sir but this plugin does not execute remotely.
I have attached the plugin which I used for Disk I/O but that is not pulling multipath devices.

Will you be able to make any changes to this script. Please check.

Or Is there any possibility to execute the plugin which you have provided remotely.
Thanks for help in advance
Attachments
check_diskio_ucd.pl
Plugin which i am using for Disk I/O
(23.7 KiB) Downloaded 192 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk I/O for all Multipath devices

Post by jdalrymple »

It appeared that you worked through running the plugin remotely in the other thread you linked at the beginning of this thread.

This plugin will not accept the -H argument, but it should run over NRPE just fine. Please follow the same methodology you did before to get this working:

https://support.nagios.com/forum/viewto ... =7&t=33595
Locked