A Php script that executes some standard shell programs for monitoring resource utilization & processes on a given Linux box. The script directs the output to a web-browser.
Apache web-server should be installed on the server. To run copy the script to the DocumentRoot (/var/www/html). Appropriate execute rights (-rw-x) need to be given to the apache user (which runs this script, but is not the owner) to execute this Php file & to be able to access /var/log/syslog.
Save this file as: showHealth.php in the /var/www/html folder:
Apache web-server should be installed on the server. To run copy the script to the DocumentRoot (/var/www/html). Appropriate execute rights (-rw-x) need to be given to the apache user (which runs this script, but is not the owner) to execute this Php file & to be able to access /var/log/syslog.
Save this file as: showHealth.php in the /var/www/html folder:
No comments:
Post a Comment