Page 1 of 1

How to monitor the Disk IO via NRPE in Linux

Posted: Wed Feb 28, 2018 7:44 am
by rohithroki
Hi Team,

Could you please tell me how to monitor the Disk I/O rates via NRPE in linux?

We are using check_linux_stats.pl plugin to monitor the I/O rates .

./check_linux_stats.pl -I -w 80 -c 95 -p sda1,sda2,sdb
DISK IO CRITICAL |sda2_read=0.00;80;95 sda2_write=0.00;;|sdb_read=0.00;80;95 sdb_write=2.00;;|sda1_read=0.00;80;95 sda1_write=0.00;;

we don't know how to monitor the via NRPE agent.

./check_nrpe -H <hostname> -c check_linux_stats.pl -a -I
CHECK_NRPE: Error - Could not complete SSL handshake.

Could you please tell me the exact argument to monitor the I/O rates via NRPE .

Cheers
Simbu

Re: How to monitor the Disk IO via NRPE in Linux

Posted: Wed Feb 28, 2018 12:27 pm
by mcapra
This article describes how to define "custom" plugins to be executed via NRPE:
https://support.nagios.com/kb/article/n ... d-612.html

Essentially, you make a command definition in NRPE then invoke that command via check_nrpe. If I had the following definition in my NRPE configuration (not my Nagios Core configuration; just the NRPE configuration):

Code: Select all

command[check_users]=/random/path/to/some/plugins/check_users_plugin.pl $ARG1$
I could invoke the check_users_plugin.pl script like so via check_nrpe:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <host> -c check_users -a 'some args here'

Re: How to monitor the Disk IO via NRPE in Linux

Posted: Thu Mar 01, 2018 12:44 pm
by scottwilkerson
Please see [user]mcapra'[/user]s post

You will need to install the NRPE agent, and place the plugin on the remote machine. That document outlines the process.