aboutsummaryrefslogtreecommitdiffstats
path: root/ubnt_unifi.php
diff options
context:
space:
mode:
authorM.Gergő2020-05-26 13:56:06 +0200
committerM.Gergő2020-05-26 13:56:06 +0200
commit982295c92484494daff29b5eeb659e1592b61571 (patch)
tree2e2690d7b12c0f1e9d3490af130e11ea51c0bbf6 /ubnt_unifi.php
parent35102d015abc46b0ccd63dc0b442280cb4f3faea (diff)
downloadmunin-unifi-982295c92484494daff29b5eeb659e1592b61571.tar.gz
munin-unifi-982295c92484494daff29b5eeb659e1592b61571.zip
Readme update
Diffstat (limited to 'ubnt_unifi.php')
-rw-r--r--ubnt_unifi.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/ubnt_unifi.php b/ubnt_unifi.php
index 880c7df..2358575 100644
--- a/ubnt_unifi.php
+++ b/ubnt_unifi.php
@@ -443,7 +443,7 @@ return $ret;
-/********************* START *******************/
+/******************************** START ********************************/
$hosts = explode(" ", $hosts);
@@ -510,6 +510,7 @@ for($i=0,$j=0; $i<$numhost; $i++){ //Sorting addresses for child-processes
}
+/******************************** Child Processes ********************************/
for ($p=0; $p<$maxproc; $p++){ //Starts child processes to retrieve SNMP data.
@@ -574,7 +575,7 @@ function numchild($child, $n){ //How many child process is alive
return $l;
}
-
+/******************************** Wait for childs ********************************/
while(numchild($child, $maxproc)){ //Receive the raw data segments and wait for child processes
for($p=0; $p<$maxproc; $p++){
@@ -603,11 +604,11 @@ $hostsip = $hostsipr;
//$test = collect_response_time($raw, "ap12.wireless.lan");
//print_r($test);
+/******************************** Print the result ********************************/
if(!is_array($raw) /*|| empty($raw)*/){
die();
}
-
if (isset($argv[1]) and $argv[1] == "config"){ // munin config
print_header(collect_radio_summary($raw,null));