Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<pre>";
- echo "Temperature Data:<br/>";
- system("/usr/bin/sensors");
- echo "UPS Data<br/>";
- system("/usr/bin/apcaccess");
- echo "<br/>";
- echo "Disk Data<br/>";
- $logdir = "/var/log/smart/";
- $handle = opendir($logdir);
- while(false !== ($file = readdir($handle)))
- {
- if($file != "." && $file != "..")
- {
- echo file_get_contents($logdir.$file);
- }
- }
- echo "</pre>";
- ?>
Add Comment
Please, Sign In to add comment