Hi, starting from Atul's example, I added the rectangle-drawing code in [0]. Here you can draw many rectangles, but when this is integrated to js/server_status_monitor.js, the jqplotMouseUp() will show the "Log statistics" dialog and will erase the rectangle.
[0] http://jsfiddle.net/lem9/N4Pst/3/