uabrc / devops-docs

https://docs.rc.uab.edu/devops-docs/
Apache License 2.0
1 stars 7 forks source link

Handling inappropriate processes on the login node #33

Open wwarriner opened 1 year ago

wwarriner commented 1 year ago

How to identify

Function to identify processes (Mike may have updates)

function cheaha-login-proclist() {
  ps \
    -eo user,pid,ppid,pcpu,pmem,stat,start_time,etime,cmd \
    --sort=-pcpu,-pmem \
    | egrep -v "  0.[0-9]  0.[0-9] " \
    | egrep -v "auditbeat|metricbeat|vscode|gnome-shell|desktop|firefox|slideshow|prometheus|systemd|glances" \
    | egrep -v " [0-9]  0.[0-9]" \
    | egrep -v "rsync|polkitd|sftp-server|notty|screensaver|mmfsd|atom"
}

Send email(s)