Total Members Voted: 4
Voting closed: April 15, 2020, 02:12:36 PM
0 Members and 1 Guest are viewing this topic.
<?php$apache_status = shell_exec("/usr/local/apache/bin/apachectl fullstatus | grep \"GET\" | grep -v \"server-status\" | sed 's/[[:space:]]*$//' | cut -d\" \" -f\"5,14-\" " );echo "<h3>Apache Status - Accesses</h3>";echo "<pre>".$apache_status."</pre>";?>
<li><a href="index.php?module=apache_status"><span class="icon16 icomoon-icon-arrow-right-3"></span>Apache Status - Accesses</a></li>
<?php// Apache Status - Accesses v0.3$apache_status = shell_exec("/usr/local/apache/bin/apachectl fullstatus | grep \"GET\" | grep -v \"127.0.0.1\" | sed 's/[[:space:]]*$//' | cut -d\" \" -f\"5,14-\" | sort -r -k1" );echo "<h3>Apache Status - Accesses</h3>";echo "<p> CPU Child Slot";echo " IP Type ";echo "Domain Request</p>"; echo "<pre>".$apache_status."</pre>";echo "<p>";echo "CPU CPU usage, number of seconds<br>";echo "Child Megabytes transferred this child<br>";echo "Slot Total megabytes transferred this slot<br>";echo "</p>";?>
<?php// Apache Status - Accesses v0.4$url = "http://localhost/server-status";$ch_session = curl_init();curl_setopt($ch_session, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch_session, CURLOPT_URL, $url);$result_url = curl_exec($ch_session);echo $result_url;?>