enable/disable up services in nagios dash
This commit is contained in:
parent
5889454231
commit
25d736fd8a
|
@ -12,7 +12,7 @@ services:
|
|||
build:
|
||||
dockerfile: Dockerfile
|
||||
container_name: nagios
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:250105.0.03
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:250106.0.01
|
||||
networks:
|
||||
infra_dev_net:
|
||||
ipv4_address: 10.99.23.36
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><? echo($pagetitle); ?></title>
|
||||
<title><?php echo($pagetitle); ?></title>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js">
|
||||
</script>
|
||||
<style type="text/css">
|
||||
|
|
|
@ -7,6 +7,11 @@ $colhost = true; //true/false to show host column in table
|
|||
$colstatusinfo = true; //true/false to show status info/plugin info column in table
|
||||
$colservice = true; //true/false to show service type column column in table
|
||||
|
||||
$showUp = $_GET['showUp'];
|
||||
if (($showUp != true) and ($showUp != false)) {
|
||||
$showUp = true;
|
||||
}
|
||||
|
||||
$pagetitle = "Operations Nagios Dashboard";
|
||||
|
||||
$thedate = date('Y-m-d H:i:s');
|
||||
|
@ -30,6 +35,16 @@ if (($collastcheck == true) and ($colhost == true) and ($colstatusinfo == true)
|
|||
echo("<table width=90% border=0 class=boldtable align=center>");
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="http://nagios.in.thelinuxpro.net">Nagios</a></td>
|
||||
<?php
|
||||
if ($showUp == true) {
|
||||
echo('<td><a href="nagios.php?showUp=false">Disable Show Up Services</a></td>');
|
||||
}
|
||||
if ($showUp == false) {
|
||||
echo('<td><a href="nagios.php">Show Up Services</a></td>');
|
||||
}
|
||||
?>
|
||||
<tr class="head">
|
||||
<?php
|
||||
if ($collastcheck == true) {
|
||||
|
@ -289,8 +304,10 @@ for ($m = 1; $m <= $warncount; $m++) {
|
|||
dashdisplay($finalwarnarray[$m], $collastcheck, $colhost, $colstatusinfo, $colservice);
|
||||
}
|
||||
|
||||
for ($n = 1; $n <= $okcount; $n++) {
|
||||
if ($showUp == true) {
|
||||
for ($n = 1; $n <= $okcount; $n++) {
|
||||
dashdisplay($finaluparray[$n],$collastcheck,$colhost,$colstatusinfo,$colservice);
|
||||
}
|
||||
}
|
||||
|
||||
#for ($o = 1; $o <= $disttlcount; $o++) {
|
||||
|
|
Loading…
Reference in New Issue