This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:scripts:monitoringtool [2019/07/17 17:34] – created lunetikk | linux:scripts:monitoringtool [2019/10/28 12:39] (current) – lunetikk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== My own Monitoringtool ====== | ====== My own Monitoringtool ====== | ||
| - | I really dont know where to beginn | + | I really dont know where to begin with. |
| I had this project... | I had this project... | ||
| Line 426: | Line 426: | ||
| { | { | ||
| // Session starten und Infos in Sessionvariable schreiben | // Session starten und Infos in Sessionvariable schreiben | ||
| - | |||
| - | </ | ||
| - | |||
| - | meldungena.php displays the last 10 alerts and reloads every 30 seconds | ||
| session_start (); | session_start (); | ||
| $_SESSION[" | $_SESSION[" | ||
| Line 475: | Line 471: | ||
| echo '</ | echo '</ | ||
| echo '< | echo '< | ||
| - | |||
| - | <code php meldungena.php> | ||
| echo '< | echo '< | ||
| echo '</ | echo '</ | ||
| Line 506: | Line 500: | ||
| } | } | ||
| //Wenn keines der vorherigen Ergebnisse zutrifft, gib es den folgenden Text aus | //Wenn keines der vorherigen Ergebnisse zutrifft, gib es den folgenden Text aus | ||
| - | else {echo'< | + | else {echo'< |
| }// | }// | ||
| Line 513: | Line 507: | ||
| } | } | ||
| else{ | else{ | ||
| - | echo '< | + | echo '< |
| echo '< | echo '< | ||
| } | } | ||
| Line 521: | Line 515: | ||
| </ | </ | ||
| - | suchea.php shows the latest | + | meldungena.php displays |
| <code php meldungena.php> | <code php meldungena.php> | ||
| <!-- | <!-- | ||
| Line 953: | Line 947: | ||
| </ | </ | ||
| + | The database | ||
| + | <code - Meldungen.sql> | ||
| + | CREATE TABLE IF NOT EXISTS `Meldungen` ( | ||
| + | `IdMeldungen` int(11) NOT NULL AUTO_INCREMENT, | ||
| + | `Status` varchar(32) NOT NULL, | ||
| + | `Datum` date NOT NULL, | ||
| + | `Uhrzeit` varchar(8) NOT NULL, | ||
| + | `Standort` varchar(20) NOT NULL, | ||
| + | `Meldung` varchar(64) NOT NULL, | ||
| + | `Alarmfenster` tinyint(1) NOT NULL, | ||
| + | PRIMARY KEY (`IdMeldungen`) | ||
| + | ) ENGINE=InnoDB | ||
| + | </ | ||
| - | index.php/ the site itself | + | index.php/ the site itself\\ |
| {{: | {{: | ||
| - | the search | + | the search\\ |
| - | {{: | + | {{: |
| - | the alarm popup | + | the alarm popup\\ |
| - | {{: | + | {{: |