diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-19 23:48:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-19 23:48:53 +0000 |
commit | 3defdb8aaa7ef39487323ba721be80e0ec80f842 (patch) | |
tree | 81ead18f03180f484860cbd9e1f869847c71899b | |
parent | b4031ab68a822b61e05e5ac5008d0b1c347b1b89 (diff) | |
download | pfsense-3defdb8aaa7ef39487323ba721be80e0ec80f842.zip pfsense-3defdb8aaa7ef39487323ba721be80e0ec80f842.tar.gz |
Add MBUF usage information
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index d6c6bcd..3d02770 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -146,5 +146,16 @@ <input style="border: 0px solid white;" size="30" name="diskusagemeter" id="diskusagemeter" value="<?= $diskusage.'%'; ?>" /> </td> </tr> + <tr> + <td width="25%" class="vncellt">MBUF Usage</td> + <td width="75%" class="listr"> + <?php + $mbufs_inuse=`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }' | cut -d"/" -f1`; + $mbufs_total=`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }' | cut -d"/" -f3`; + ?> + Total: <?=$mbufs_total?><br> + In use: <?=$mbufs_inuse?> + </td> + </tr> </tbody> -</table>
\ No newline at end of file +</table> |