mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Added the health.sh CGI script
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@14 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
21
www/test_dir/health.sh
Executable file
21
www/test_dir/health.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Content-type: text/html"
|
||||
echo
|
||||
|
||||
echo "<HTML>"
|
||||
echo "<TITLE>System Health</TITLE><BODY>"
|
||||
|
||||
echo "<H1>System Health for '`hostname`'</H1>"
|
||||
echo "<H2>Processes</H2>"
|
||||
echo "<TABLE BORDEr=\"2\">"
|
||||
ps -ef | sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
|
||||
echo "</TABLE>"
|
||||
|
||||
echo "<H2>Free FileSystem Space</H2>"
|
||||
echo "<TABLE border=\"2\">"
|
||||
df -h . | sed -e "s/\(.*\)/<tr><td>\1<\/td><\/tr>/"
|
||||
echo "</TABLE>"
|
||||
|
||||
echo "</BODY></HTML>"
|
||||
|
1
www/test_dir/tmp
Symbolic link
1
www/test_dir/tmp
Symbolic link
@ -0,0 +1 @@
|
||||
/tmp
|
Reference in New Issue
Block a user