ok here is what i have as far as a dynamic webpage using php
but i need a few more helpful jump starts from others.
i place some linux commands in here that are not necessary for a short webpage because i am so far playing around with it.
before i get myself in trouble, i could use some other useful commands to gather information but i have come a long way.
i would like to get some information such as the actual server name. if this php is run local(intranet), it does retrieve the server name but not if it is run from the internet.
my server's name is "server0" not "
www.servername.com"
create your webpage file
maybe "serverstatus.php" in a web directory and point your browser to it from both the intranet and internet.
and i still like the cron program as well, i have not had time to try other programs placed into this thread because i am slow.
<!--DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"-->
<html>
<head><title>Server Status</title></head>
<body>
<b>
<tt>
<div>
<?php
print "<pre>";
print "Server Status Report\n";
print "Location: Management office\n";
print "URL name: ";
print ($_SERVER['SERVER_NAME']);
print "\n";
system("date | col -b",$return);
print "\n";
print "***** UPTIME ***************\n";
system("uptime | col -b",$return);
print "\n";
print "***** RAID STATUS **********\n";
system("cat /proc/mdstat | col -b",$return);
print "\n";
print "***** DISK STATUS **********\n";
system("df -h | col -b",$return);
print "\n";
print "***** ETHERNET PORT STATUS ******\n";
system("ifconfig | col -b",$return);
print "\n";
print "*********************************\n";
system("uname -a | col -b",$return);
print "\n";
//print "***** RPM PACKAGES INSTALLED ****\n";
//system("rpm -qa --last | col -b",$return);
//print "\n";
//print "***** UPDATES FOR INSTALLED PACKAGES ****\n";
//system("yum list updates | col -b",$return);
//print "\n";
//print "*****************************\n";
//system("printenv | col -b",$return);
//print "\n";
print "\n---end of report---\n";
print "</pre>";
?>
</div>
</body>
</html>