Skip to content

Commit

Permalink
add ifconfig, df, dh and top to log download
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jan 15, 2020
1 parent 74de002 commit 51b55f8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addon_files/redmatic/www/log.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ if {[info exists sid] && [check_session $sid]} {
puts $result
puts ""

catch {exec df -h} result
puts $result
puts ""

catch {exec du -sh /usr/local/addons/redmatic/var /usr/local/addons/redmatic/lib /usr/local/addons/redmatic/tmp} result
puts $result
puts ""

catch {exec top -b -n1 | grep -v "\]$"} result
puts $result
puts ""

catch {exec /sbin/ifconfig} result
puts $result
puts ""

catch {exec netstat -tulpen | grep node} result
puts $result
puts ""
Expand Down

0 comments on commit 51b55f8

Please sign in to comment.