Browse Source

ajoute des liens internes

master
vince vince 2 years ago
parent
commit
b778aa1c25
1 changed files with 13 additions and 5 deletions
  1. +13
    -5
      index.php

+ 13
- 5
index.php View File

@ -9,14 +9,22 @@ $formatter = new \IntlDateFormatter('fr_FR.UTF8', IntlDateFormatter::FULL, IntlD
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Monitoring</title>
<style type="text/css" media="screen">img { width: 100%; height: auto; }</style>
</head>
<body>
<h1>
<h1 id="top">
Monitoring
<small><?php echo $formatter->format($now); ?></small>
</h1>
<h2>Processeur</h2>
<nav>
<a href="#cpu">Processeur</a>
<a href="#mem">Mémoire</a>
<a href="#net">Réseau</a>
<a href="#disk">Disque</a>
</nav>
<h2 id="cpu">Processeur</h2>
<details>
<summary>Détails</summary>
<pre><?php $output = ''; exec('cat /proc/cpuinfo', $output); echo implode(PHP_EOL, $output); ?></pre>
@ -29,7 +37,7 @@ $formatter = new \IntlDateFormatter('fr_FR.UTF8', IntlDateFormatter::FULL, IntlD
</p>
<h2>Mémoire</h2>
<h2 id="mem">Mémoire</h2>
<details>
<summary>Détails</summary>
<pre><?php $output = ''; exec('cat /proc/meminfo', $output); echo implode(PHP_EOL, $output); ?></pre>
@ -37,7 +45,7 @@ $formatter = new \IntlDateFormatter('fr_FR.UTF8', IntlDateFormatter::FULL, IntlD
<img src="mem-daily.svg" />
</p>
<h2>Réseau</h2>
<h2 id="net">Réseau</h2>
<details>
<summary>Détails</summary>
<pre><?php $output = ''; exec('cat /proc/net/dev', $output); echo implode(PHP_EOL, $output); ?></pre>
@ -45,7 +53,7 @@ $formatter = new \IntlDateFormatter('fr_FR.UTF8', IntlDateFormatter::FULL, IntlD
<img src="net-daily.svg" />
</p>
<h2>Disque</h2>
<h2 id="disk">Disque</h2>
<details>
<summary>Détails</summary>
<pre><?php $output = ''; exec('df -hlT -x tmpfs -x devtmpfs --total 2>/dev/null', $output); echo implode(PHP_EOL, $output); ?></pre>


Loading…
Cancel
Save