Return Nginx service Data
@param object $snmpConnection
@return array
514444
public function getServiceData($snmpConnection) {
        
        /*
        $objPing = new \Cityware\Utility\Ping($snmpConnection->getHost());
        $objPing->setTypeCon('udp');
        $objPing->setPort(160);
        
        echo '<pre>';
        var_dump($objPing->ping());
        exit;
         * 
         */

        $nginxData = $snmpConnection->realWalkToArray('NET-SNMP-EXTEND-MIB::nsExtendOutLine."Nginx"', true);
        
        $return = Array();

        $return['num_active_connections'] = (isset($nginxData[1])) ? $nginxData[1] : 0;
        $return['num_accepted_connections'] = (isset($nginxData[2])) ? $nginxData[2] : 0;
        $return['num_handled_connections'] = (isset($nginxData[3])) ? $nginxData[3] : 0;
        $return['num_handled_requests'] = (isset($nginxData[4])) ? $nginxData[4] : 0;
        $return['num_reading'] = (isset($nginxData[5])) ? $nginxData[5] : 0;
        $return['num_writing'] = (isset($nginxData[6])) ? $nginxData[6] : 0;
        $return['num_waiting'] = (isset($nginxData[7])) ? $nginxData[7] : 0;
        $return['num_requests_connections'] = ($return['num_handled_connections'] > 0) ? $return['num_handled_requests'] / $return['num_handled_connections'] : 0;
        $return['num_keep_alive_connections'] = $return['num_active_connections'] - ($return['num_reading'] + $return['num_writing']);

        return $return;
    }
1357510
public static snmpview[] get(nitro_service service, options option) throws Exception{
		snmpview obj = new snmpview();
		snmpview[] response = (snmpview[])obj.get_resources(service,option);
		return response;
	}
1265610
public function getServersCredentials($connection = null)
    {
        $connection = $this->sanitizeConnection($connection);
        $available = $this->connections->getAvailableConnections();

        // Get and filter servers
        $servers = Arr::get($available, $connection->name.'.servers');
        if ($this->hasCommand() && $allowed = $this->command->option('server')) {
            $allowed = explode(',', $allowed);
            $servers = array_intersect_key((array) $servers, array_flip($allowed));
        }

        return $servers;
    }
215493
public static syslog_snmp[] get(nitro_service client) throws Exception
	{
		syslog_snmp resource = new syslog_snmp();
		resource.validate("get");
		return (syslog_snmp[]) resource.get_resources(client);
	}
545746
public static snmp_alarm_config[] get(nitro_service client) throws Exception
	{
		snmp_alarm_config resource = new snmp_alarm_config();
		resource.validate("get");
		return (snmp_alarm_config[]) resource.get_resources(client);
	}
153394
public function getData(): array
    {
        return [
            $this->serverOriginScheme,
            $this->serverOriginHost,
            $this->serverOriginPort,
            $this->isPreFlightCanBeCached,
            $this->preFlightCacheMaxAge,
            $this->isForceAddMethods,
            $this->isForceAddHeaders,
            $this->isUseCredentials,
            $this->areAllOriginsAllowed,
            $this->allowedOrigins,
            $this->areAllMethodsAllowed,
            $this->allowedLcMethods,
            $this->allowedMethodsList,
            $this->areAllHeadersAllowed,
            $this->allowedLcHeaders,
            $this->allowedHeadersList,
            $this->exposedHeadersList,
            $this->isCheckHost,
        ];
    }
930427
public function getHostData($wmiConnection) {
        $return = Array();

        $OperatingSystem = $wmiConnection->query("SELECT LocalDateTime, LastBootUpTime, NumberOfUsers, NumberOfProcesses FROM Win32_OperatingSystem");

        foreach ($OperatingSystem as $wmi_operatingsystem) {
            $LocalDateTime = $wmi_operatingsystem->LocalDateTime;
            $LastBootUpTime = $wmi_operatingsystem->LastBootUpTime;
            $return['users_connected'] = $wmi_operatingsystem->NumberOfUsers;
            $return['running_process'] = 0; //$wmi_operatingsystem->NumberOfProcesses;
        }

        
        $return['uptime'] = \Cityware\Utility\UpTime::calculationUpTime($LocalDateTime, $LastBootUpTime);

        return $return;
    }
282429
public function getAllData() {
        $aReturn = Array();
        foreach (get_class_vars(get_class()) as $keyVars => $valueVars) {
            if ($keyVars != '_snmpHost') {
                $indexVar = str_replace('_', '', $keyVars);
                $aReturn[$indexVar] = $this->{$keyVars};
            }
        }
        return $aReturn;
    }
931444
public static snmpview[] get_filtered(nitro_service service, String filter) throws Exception{
		snmpview obj = new snmpview();
		options option = new options();
		option.set_filter(filter);
		snmpview[] response = (snmpview[]) obj.getfiltered(service, option);
		return response;
	}
733062
public static snmp_user[] get_filtered(nitro_service service, String filter) throws Exception
	{
		snmp_user obj = new snmp_user();
		options option = new options();
		option.set_filter(filter);
		snmp_user[] response = (snmp_user[]) obj.getfiltered(service, option);
		return response;
	}
93039
def get_snmp_configuration(self):
        
        uri = "{}{}".format(self.data["uri"], self.SNMP_CONFIGURATION_PATH)
        return self._helper.do_get(uri)
1188503
public static snmpmanager[] get(nitro_service service) throws Exception{
		snmpmanager obj = new snmpmanager();
		snmpmanager[] response = (snmpmanager[])obj.get_resources(service);
		return response;
	}
10536
public function getServiceDataDatabaseConnections(array $params) {

        $dataPostgresql = new \Cityware\Monitoring\Models\Services\DataPostgreSql($params);

        $connectionsDatabases = $dataPostgresql->getDataPgSqlDatabasesConnections();

        $return = Array();
        
        $geoipV1 = new \Cityware\Utility\GeoIpV1();
        $geoipV1->geoip_open(DATA_PATH . 'GeoIp/GeoIPASNum.dat', GEOIP_STANDARD);

        foreach ($connectionsDatabases as $key => $value) {

            $desAsnIsp = (!empty($value['client_addr'])) ? \Cityware\Format\Text::convertString($geoipV1->geoip_name_by_addr($value['client_addr'])) : '';

            $return[$key]['des_ip'] = $value['client_addr'];
            $return[$key]['des_asn_isp'] = strtoupper(\Cityware\Format\Text::removeAccents($desAsnIsp));
            $return[$key]['des_hash'] = hash('crc32b', $value['datname']);
            $return[$key]['nam_database'] = $value['datname'];
            $return[$key]['num_total_connections'] = $value['total_connections'];
        }

        return $return;
    }
1224128
static function getConnection($connection_name = null) {
		if (null === $connection_name) {
			$keys = array_keys(self::$parameters);
			$connection_name = reset($keys);
		}

		if (!@$connection_name) {
			return null;
		}

		return self::connect($connection_name);
	}
1268559
public static snmp_view[] get(nitro_service client) throws Exception
	{
		snmp_view resource = new snmp_view();
		resource.validate("get");
		return (snmp_view[]) resource.get_resources(client);
	}
1113092
protected function getNetwork(): array
	{
		$network = [];
		$data = $this->readFile('/proc/net/dev');

		if ($data !== null) {
			$bufe = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
			unset($bufe[0], $bufe[1]);
			foreach ($bufe as $buf) {
				list($dev_name, $stats_list) = preg_split('/:/', $buf, 2);
				$stats = preg_split('/\s+/', trim($stats_list));

				$dev = new Obj;
				$dev->name = trim($dev_name);
				$dev->recieve = (int) $stats[0];
				$dev->sent = (int) $stats[8];
				$dev->error = (int) $stats[2] + (int) $stats[10];
				$dev->drop = (int) $stats[3] + (int) $stats[11];

				$ipBuff = preg_split("/\n/", $this->readCommand('ip addr show ' . $dev->name), -1, PREG_SPLIT_NO_EMPTY);
				foreach ($ipBuff as $line) {
					if (preg_match('/^\s*link\/ether\s+(.*)\s+brd.*/i', $line, $ar_buf)) {
						$dev->mac = $ar_buf[1];
					} elseif (preg_match('/^\s*inet6\s+(.*)\/.*/i', $line, $ar_buf)) {
						$dev->ip6 = $ar_buf[1];
					} elseif (preg_match('/^\s*inet\s+(.*)\/.*/i', $line, $ar_buf)) {
						$dev->ip = $ar_buf[1];
					}
				}
				$network[] = $dev;
			}
		}
		return $network;
	}
938877
public static snmpuser[] get_filtered(nitro_service service, String filter) throws Exception{
		snmpuser obj = new snmpuser();
		options option = new options();
		option.set_filter(filter);
		snmpuser[] response = (snmpuser[]) obj.getfiltered(service, option);
		return response;
	}