From b5c46b6ef04a9c29de44965d76877603df094538 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 8 Apr 2020 16:00:52 +0200 Subject: Mayor-Munin: graph --- "egy\303\251b/munin/mayor_munin.php" | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'egyéb/munin') diff --git "a/egy\303\251b/munin/mayor_munin.php" "b/egy\303\251b/munin/mayor_munin.php" index f0021a9a..b533c0d0 100755 --- "a/egy\303\251b/munin/mayor_munin.php" +++ "b/egy\303\251b/munin/mayor_munin.php" @@ -1,19 +1,29 @@ #!/usr/bin/env php = 7 ) { //MySQLi (Improved) és php7 kell!!! - + $ret['ip_sum'] = 0; $ret['ip_b'] = 0; $ret['ip_k'] = 0; $ret['p_pri'] = 0; @@ -78,6 +88,7 @@ if (isset($argv[1]) and $argv[1] == "config"){ $l = mysqli_connect($set['db_host'], $set['db_user'], $set['db_pass'], $set['db_db']); if(!$l){ // echo "hiba\n "; + $ret['ip_sum'] = "U"; $ret['ip_b'] = "U"; $ret['ip_k'] = "U"; $ret['p_pri'] = "U"; -- cgit v1.2.3