I want to collect samples of iostat
's svctm
, await
every 5 mins from all of my servers and store them in nagios. I want to get the values for what is happening in every 5 minutes (not since boot time, iostat
's first output gives values since boot time). How can I do it in nagios?
EDIT The tps should NOT be calculated #of transactions happened since reboot divided by uptime. What I want is # of transferred happened in last X mins divided X*60.
Nagios has a plugin to check iostat: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_iostat--2D-I-2FO-statistics/details
You'll also need to configure nagios to collect performance data
and run the checks every 5 minutes by setting check_interval to 5