I am trying to monitor the swapping activity in a Linux Server in the last, say, 1, 5 or 15 minutes.
One way is to run vmstat and keep watching si and so counters during these intervals.
However how can I check as a "one-shot" action (e.g. through a Nagios plugin) for a value showing the swapping activity during the aforementioned intervals?
In other words I need a way to instantly check whether my Server is actively swapping.