Cloud and Infrastructure Monitoring Software and Tools
Please log in to access your account.
Please register to activate Opsview Monitor
An e-mail will be sent to your registered e-mail address.
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?
I havent seen anything, but this sounds like something a check_procs type script would have as an option?
Yes possibly Smarsh!
I also note that there is of course:
OS - Base Unix AgentUnix 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..
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