I'm trying to know if some GUI process is idle o minimized in Linux, using
I've been doing research and as far as I know, SNMP seems to be designed for monitoring services, not processes run by regular users.
I've found just one MIB object, hrSWRunStatus (RFC 2790), which has only four running statuses: running(1), runnable(2), notRunnable(3) and invalid(4), but testing by maximizing and minimizing some GUI applications don't display any changes in their respective statuses, in fact, every process listed with
snmpwalk has runnable(2) status, except one:
snmpd which is listed as running(1).
# snmpwalk -v 2c -c public localhost .188.8.131.52.184.108.40.206.2.1.7 | grep "running(1)" HOST-RESOURCES-MIB::hrSWRunStatus.920 = INTEGER: running(1) # snmpwalk -v 2c -c public localhost .220.127.116.11.18.104.22.168.2.1.2 | grep 920 HOST-RESOURCES-MIB::hrSWRunName.920 = STRING: "snmpd"
ps I don't see a change in the status of a process I'm using at the moment (except for
htop is running in a terminal console, like
konsole and I'm writing a text with
kate, none of those processes has the status "R" (running or runnable), just "S" (interruptible sleep), which I found weird, but is supposed to be in that way... https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk112953
So, how can I know, in Linux, if some process is idle or minimized...?