Index: openacs-4/packages/xotcl-request-monitor/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-request-monitor/www/index.tcl,v diff -u -r1.24.2.5 -r1.24.2.6 --- openacs-4/packages/xotcl-request-monitor/www/index.tcl 18 Jan 2017 08:13:55 -0000 1.24.2.5 +++ openacs-4/packages/xotcl-request-monitor/www/index.tcl 20 Jun 2017 19:46:11 -0000 1.24.2.6 @@ -45,7 +45,13 @@ if {![catch {exec sysctl vm.loadavg kern.boottime} result]} { return $result } - return [exec /usr/bin/uptime] + if {[set uptime [util::which uptime]] ne ""} { + return [exec $uptime] + } else { + set msg "'uptime' command not found on the system" + ad_log error $msg + return "" + } } # collect current response time (per minute and hour)