Page 2 of 3
Re: Disk I/O for all Multipath devices
Posted: Mon Jul 13, 2015 2:40 pm
by yunushaikh
What should I check then?
Can you please help?
Re: Disk I/O for all Multipath devices
Posted: Mon Jul 13, 2015 2:57 pm
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.
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 7:55 am
by yunushaikh
Hello Sir,
How do I check about MPIO drivers. I am using Centos 6.6
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 9:41 am
by yunushaikh
i am using MPIO provided by CENTOS
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 10:26 am
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.
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 11:12 am
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.
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 11:15 am
by yunushaikh
Starting with dm are the multipath devices.
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 11:22 am
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
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 11:41 am
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
Re: Disk I/O for all Multipath devices
Posted: Wed Jul 15, 2015 11:59 am
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