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!
Remotely monitor disk usage with iostat
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Remotely monitor disk usage with iostat
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
add the following command to your /usr/local/nagios/etc/nrpe.cfg
Then you can call it with check_nrpe from your nagios server
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.shCode: Select all
command[check_tps]=/usr/local/nagios/libexec/check_tps.sh -w 200 -c 300Code: Select all
# cd /usr/local/nagios/libexec/
# ./check_nrpe -H <REMOTE_IP> -c check_tps