You are here

check for single process using swap

4 posts / 0 new
Last post
youngy
youngy's picture
check for single process using swap

Hi Guys,

Bit of an odd request. Is there a way of checking if a given process  is using\going into swap at all on a linux host?

Thanks

 

smarsh
smarsh's picture
I havent seen anything, but

I havent seen anything, but this sounds like something a check_procs type script would have as an option?

youngy
youngy's picture
Yes possibly Smarsh!

Yes possibly Smarsh!

I also note that there is of course:

OS - Base Unix Agent
Unix Swap - check_nrpe -H $HOSTADDRESS$ -c check_swap -a '-w 5% -c 1%'

But I think this is more of an overall check, rather than specifically x process is swapping - which is what I am trying to do.

I'll keep playing around..

 

youngy
youngy's picture
Well I played around with

Well I played around with this:

/usr/local/nagios/libexec/check_nrpe -H localhost -c check_procs -a '-w 50000 -c 100000 -m VSZ'

But that is not what I am after really - that is for virtual memory. Which is not the same as swap.

So I don't think out of the box I can monitor a single process to see if it swaps.

Open to more ideas though