Remotely monitor disk usage with iostat

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bhathaway
Posts: 3
Joined: Tue Oct 18, 2011 10:38 am

Remotely monitor disk usage with iostat

Post by bhathaway »

Hi

I would like to monitor disk performance on a remote linux mongodb server that is currently being monitored by Nagios XI 2011R1.7 using the linux agent.

Is there a way to get Nagios to check disk I/O on this remote linux host? I have seen the following 2 plugins, however they seem to only check disk i/o on a localhost. Maybe I am missing something?

http://exchange.nagios.org/directory/Pl ... ps/details
http://exchange.nagios.org/directory/Pl ... cs/details

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Remotely monitor disk usage with iostat

Post by scottwilkerson »

You could use one of these on the remote Linux machine..
For example I will use the script from http://exchange.nagios.org/directory/Pl ... ps/details
Simply put the scripts on the remote machine in /usr/local/nagios/libexec/
make it executable

Code: Select all

chmod +x check_tps.sh
add the following command to your /usr/local/nagios/etc/nrpe.cfg

Code: Select all

command[check_tps]=/usr/local/nagios/libexec/check_tps.sh -w 200 -c 300
Then you can call it with check_nrpe from your nagios server

Code: Select all

# cd /usr/local/nagios/libexec/
# ./check_nrpe -H <REMOTE_IP> -c check_tps
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked