-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost.php
50 lines (42 loc) · 1.12 KB
/
host.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* Icinga HUD
*
* host.php
*
* web template for displaying services and their status for a specific host
*
* Copyright Seth Galitzer <[email protected]>
*
*/
require_once "config.php";
require_once "handler.php";
$host="";
if (!empty($_GET)) {
$host=htmlspecialchars($_GET["host"]);
}
if($host != "") {
$json_data = getJSON($queryhost . $host);
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $branding; ?> - Status for <?php echo $host; ?></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" />
</head>
<body>
<?php include "nav.php"; ?>
<div class="container">
<div class="row">
<div class="span12">
<p class="lead">Host Details</p>
<h2>Hosts</h2>
<?php printHostDetails($json_data); ?>
</div><!-- /.span12 -->
</div><!-- /.row -->
</div><!-- /.container -->
</body>
</html>