{"id":916,"date":"2017-09-02T15:46:00","date_gmt":"2017-09-02T19:46:00","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=916"},"modified":"2017-09-02T15:46:00","modified_gmt":"2017-09-02T19:46:00","slug":"monitor-load-in-the-terminal","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/monitor-load-in-the-terminal\/","title":{"rendered":"Monitor load in the terminal"},"content":{"rendered":"

Just a small one that tends to get my attention when I have a terminal open into a remote machine and would like to notice right away when the load rises. Of course one could just use the echo -e \"\\a\"<\/code> if you have visual bell enabled or if you want to annoy people around you and have audio bell enabled.<\/p>\n

while true; do \r\n  sleep 2.5\r\n  foo=`cut -d. -f1 \/proc\/loadavg`\r\n  if [ $foo -gt 4 ]; then \r\n    echo -e \"high load ----- \\a\"\r\n  else\r\n    echo \"meh\"\r\n  fi\r\ndone<\/pre>\n","protected":false},"excerpt":{"rendered":"

Just a small one that tends to get my attention when I have a terminal open into a remote machine and would like to notice right away when the load rises. Of course one could just use the echo -e “\\a” if you have visual bell enabled or if you want to annoy people around […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/916"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":3,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":919,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/916\/revisions\/919"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}