= '1') { echo 'Checking RouterOS Wireless clients... '; $wificlients1 = snmp_get($device, 'mtxrWlApClientCount', '-OUqnv', 'MIKROTIK-MIB'); echo (($wificlients1 + 0)." clients\n"); break; } unset($wirelesscards); } } if ($device['os'] == 'symbol' and (stristr($device['hardware'], 'AP'))) { echo 'Checking Symbol Wireless clients... '; $wificlients1 = snmp_get($device, '.1.3.6.1.4.1.388.11.2.4.2.100.10.1.18.1', '-Ovq', '""'); echo (($wificlients1 + 0).' clients on wireless connector, '); } if (isset($wificlients1) && $wificlients1 != '') { $tags = array( 'rrd_def' => 'DS:wificlients:GAUGE:600:-273:1000', 'rrd_name' => array('wificlients', 'radio1'), 'radio' => 1, ); data_update($device, 'wificlients', $tags, $wificlients1); $graphs['wifi_clients'] = true; } if (isset($wificlients2) && $wificlients2 != '') { $tags = array( 'rrd_def' => 'DS:wificlients:GAUGE:600:-273:1000', 'rrd_name' => array('wificlients', 'radio2'), 'radio' => 2, ); data_update($device, 'wificlients', $tags, $wificlients2); $graphs['wifi_clients'] = true; } unset($wificlients2, $wificlients1); }//end if echo "\n";