Skip to content

Commit

Permalink
add netstat and iptables to log download
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jan 13, 2020
1 parent 7cd026d commit 74de002
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions addon_files/redmatic/www/log.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ if {[info exists sid] && [check_session $sid]} {
catch {exec /usr/local/addons/redmatic/bin/redmaticVersions} result
puts $result
puts ""

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

catch {exec /usr/sbin/iptables -L INPUT -vn} result
puts $result
puts ""

if {[file exists /usr/local/addons/redmatic/var/pkg-upgrade.log]} {
catch {exec cat /usr/local/addons/redmatic/var/pkg-upgrade.log} result
puts $result
puts ""
}

if {[file exists /var/log/messages.0]} {
catch {exec cat /var/log/messages.0 | grep node-red\\|redmatic } result
puts $result
Expand Down

0 comments on commit 74de002

Please sign in to comment.