Documentation
¶
Index ¶
Constants ¶
View Source
const ( Yes = "yes" No = "no" ObjectIP = "object.ip" Port = "port" UserName = "username" Password = "password" Timeout = "timeout" RetryCount = "retry.count" ConfigDirectory = "config" Errors = "errors" Result = "result" Context = "context" Error = "error" ErrorCode = "error.code" Message = "message" GoroutineResults = "goroutine.results" CorrelationMetrics = "correlation.metrics" URLParams = "url.parameters" JsonURL = "url.json" URLHeaders = "url.headers" URLMethod = "url.method" URLMethodPost = "post" ContentType = "content.type" Cookies = "cookie" XCsrfToken = "X-Csrf-Token" URLProtocol = "url.protocol" Objects = "objects" CloudActiveServices = "cloud.active.services" ObjectTarget = "object.target" ObjectInstanceId = "object.instance.id" ObjectType = "object.type" ObjectCategory = "object.category" ObjectContext = "object.context" ObjectTypeSwitch = "Switch" ObjectTypeFirewall = "Firewall" CloudServiceDiscoveryTags = "cloud.service.discovery.tags" Status = "status" StatusSucceed = "succeed" StatusFail = "fail" StatusUnknown = "Unknown" StatusUp = "Up" StatusMaintenance = "Maintenance" StatusDown = "Down" StatusEnabled = "Enabled" StatusDisabled = "Disabled" StartedTimeSeconds = "started.time.seconds" StartedTime = "started.time" BlankString = "" ColonSeparator = ":" EqualSeparator = "=" Separator = "|" MotadataSeparator = "_|@#|_" CloudTagSeparator = "_|@#|_" SpaceSeparator = " " CommaSeparator = "," ForwardSlashSeparator = "/" NewLineSeparator = "\n" PipeSeparator = '|' TabSeparator = "\t" InstanceSeparator = "_" TimeFormat = "2006-01-02 15:04:05" CloudTimeFormat = "2006-01-02 15:04:05.000000" TimeFormatCloud = "2006-01-02" ObjectCredentialProfile = "object.credential.profile" CredentialProfileName = "credential.profile.name" DiscoveryCredentialProfiles = "discovery.credential.profiles" ObjectHost = "object.host" ObjectName = "object.name" SSBinPath = "ss.bin.path" ObjectTypeWindows = "Windows" ObjectTypeWindowsCluster = "Windows Cluster" ObjectTypeHyperV = "Hyper-V" ObjectTypeHyperVCluster = "Hyper-V Cluster" ObjectTypeLinux = "Linux" ObjectTypeIBMAIX = "IBM AIX" ObjectTypeHPUX = "HP-UX" ObjectTypeSolaris = "Solaris" ObjectSystemOID = "object.system.oid" ObjectTypeCitrixXen = "Citrix Xen" ObjectTypeCitrixXenCluster = "Citrix Xen Cluster" ObjectTypeVMwareESXi = "VMware ESXi" ObjectTypeVcenter = "vCenter" ObjectTypeSMG = "Symantec Messaging Gateway" ObjectCategoryWireless = "Wireless" ObjectCategoryOther = "Other" ObjectCategoryServer = "Server" ObjectCategoryNetwork = "Network" ObjectCategoryVirtualization = "Virtualization" Id = "id" PluginId = "plugin.id" MACAddressRegexPattern = "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$" IPAddressRegexPattern = "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" ExponentialRegexPattern = "(\\d+.\\d+E.*)" NumberRegexPattern = "\\d+" DecimalRegexPattern = "\\d+.\\d+" NewLineRegexPattern = "\r\n" CarriageReturnRegexPattern = "\r" ObjectDiscoveryMethod = "object.discovery.method" ObjectDiscoveryMethodAgent = "AGENT" DiscoveryOID = "discovery.oid" AccessId = "cloud.access.id" SecretKey = "cloud.secret.key" ClientId = "cloud.client.id" TenantId = "cloud.tenant.id" ObjectRegion = "object.region" ObjectMakeModel = "object.make.model" ObjectAccountId = "object.account.id" ObjectResourceGroup = "object.resource.group" URLResponseContent = "url-content" AccessToken = "access_token" TokenType = "token_type" URLResponseBuffer = "url-buffer" URLResponseHeaders = "url.response.headers" URLResponseCode = "response-code" URLResponseCodeSuccess = 200 URLResponseCodeForbidden = 403 URLResponseCodeBadRequest = 400 HTTPGETRequest = "GET" HTTPPOSTRequest = "POST" PingCheckRetryCount = "ping.check.retry.count" TopologyPluginOIDs = "topology.plugin.oids" Command = "command" RunbookPluginScriptVariables = "runbook.plugin.variables" InfoMessageConnectionDestroyed = "disconnecting from %s : %s" ErrorMessageCommandExecutionFailed = "Command Execution Error: Failed to execute command %s on target %s with error %s." InfoMessageConnectionEstablished = "Connected to %s:%d" ErrorMessageVendorNotSupported = "Unsupported Vendor: Please contact Motadata support team for help on '%s.'" ErrorMessageConnectionTimeout = "Timeout Error: The %s request for %s:%d has timed out." ErrorMessageInvalidPort = "Connection Error: Invalid Port %d" ErrorMessageConnectionFailed = "Connection Error: Failed to Establish %s Connection on %s:%d" ErrorMessageInvalidCredentials = "Authentication Error: Invalid Credentials for %s:%d" ErrorMessageInvalidURLPrivilege = "HTTP Error: User might not have privileges to access the URL %s on %s." ErrorMessageOIDGroupNotFound = "OID Group Not Found." DebugMessageRequest = "Request of : %s" DebugMessageResult = "Result %s : %s" InfoMessageCloudClientConnected = "%s client connected to %s" InfoMessageCloudClientConnecting = "%s client connecting to %s" AzureStorageGroup = "Azure Storage Resource group: %s target: %s " ErrorMessageInvalidSecret = "Connection Error: The Secret Key specified for %s Cloud might be invalid." ErrorMessageInvalidAccessId = "Connection Error: The Access Key specified for %s Cloud might be invalid." ErrorMessageInvalidTenantId = "Connection Error: The Tenant ID specified for %s Cloud might be invalid." ErrorMessageInvalidClientId = "Connection Error: The Client ID specified for %s Cloud might be invalid." ErrorMessageInvalidSubscriptionId = "Connection Error: The Subscription ID specified for %s Cloud might be invalid." ErrorMessageInvalidResourceGroup = "Connection Error: The Resource Group specified for %s Cloud might be invalid." ErrorMessageAzureInstanceNotFound = "Instance Not Found: Instance '%s' not found on '%s'." ErrorMessageAWSInstanceNotFound = "Instance Not Found : Instance '%s' from '%s' was not found in the '%s' region." ErrorMessageFailedToListObjects = "Failed to list objects of %s service" ErrorMessagePluginNotFound = "Plugin Type not found" ErrorMessageRequestNotFound = "Request Type not found" ErrorMessageFailedToSerialize = "Serialization Error: Unable to ingest data." ErrorMessageInvalidUserName = "Authentication Error: Invalid Username." ErrorMessageInvalidAuthPassword = "Authentication Error: Invalid Password." ErrorMessageNoResponse = "No response: %s" ErrorMessageBadResponse = "Bad Response %s" ErrorMessageSSLVerificationFailed = "SSL Verification Failed : %s" ErrorMessageNoActiveMetrics = "Bad Response %v" ErrorMessageInvalidDatabase = "Invalid Database" ErrorMessageInvalidHost = "Connection Error: Invalid Host %s" ErrorMessageInvalidLoginPrivilege = "Connection Error: User might not have sufficient privileges to log on to %s on %s" ErrorMessageUnknowDriver = "Unknown Driver" ErrorMessageDHCPServiceNotRunning = "Windows DHCP services are not currently running" ErrorMessagePingFailed = "Network Error: Ping failed for the specified device." ErrorMessageInvalidDomain = "Invalid domain %s" ErrorMessageUnableToResolveDomainName = "Unable to resolve domain name" ErrorMessageInvalidCertificate = "Certificate verification failed or has expired" ErrorMessageNoSSLCertificateFound = "No valid SSL certificate found" ErrorMessageInvalidLeaseFile = "Command Error: Lease file not found on {} server" ErrorMessageInvalidConfigFile = "Command Error: Config file not found on {} server" PathSeparator = string(os.PathSeparator) WindowsPathSeparator = "\\" LogLevelTrace = 0 LogLevelDebug = 1 LogLevelInfo = 2 LogDirectory = "logs" LogFileDateFormat = "02-January-2006" LogFileTimeFormat = "03:04:05.000000 PM" LogFile = "@@@-###.log" ErrorCodeInvalidDatabase = "MD005" ErrorCodeInvalidHost = "MD310" ErrorCodeDatabaseLogin = "MD013" ErrorCodeInternalError = "MD031" ErrorCodeTimeout = "MD004" ErrorCodeSSLVerificationFailed = "MD123" ErrorCodePingFailed = "MD001" ErrorCodeInvalidPort = "MD002" ErrorCodeInvalidCredentials = "MD003" ErrorCodeInvalidCertificate = "MD0312" ErrorCodeConnectionFailed = "MD047" ErrorCodeFTPServiceNotRunning = "MD070" ErrorCodeInvalidPublicOrPrivateSSHKey = "MD103" ErrorCodeConnectionReset = "MD058" ErrorCodeCommandExecutionFailed = "MD059" ErrorCodeOIDGroupNotFound = "MD060" ErrorCodeInvalidLinuxORUnixHost = "MD099" ErrorCodeInvalidOIDValue = "MD063" ErrorCodeRoutingProtocolNotFound = "MD074" ErrorCodeInvalidQueryTime = "MD115" ErrorCodeVRFNotFound = "MD077" ErrorCodeVLANNotFound = "MD078" ErrorCodeIPSLANotFound = "MD082" ErrorCodeSymantecEmailGatewayNotFound = "MD075" ErrorCodeWirelessControllerNotFound = "MD076" ErrorCodeBadResponse = "MD083" ErrorCodeNoItemFound = "MD084" ErrorCodeSTPNotFound = "MD080" ErrorCodeSiteVPNNotFound = "MD048" ErrorCodeSNMPContextConfigurationError = "MD102" ErrorCodeVendorNotSupported = "MD049" ErrorCodeCloudInstanceNotFound = "MD072" ErrorCodeNoResponse = "MD056" ErrorCodeBadRequest = "MD022" ErrorCodeAPIInvalidAccessKey = "MD009" ErrorCodeAPIInvalidSecretKey = "MD008" ErrorCodeSNMPAgentSystemOIDNotFound = "MD101" ErrorCodeRemoteVPNNotFound = "MD081" ErrorCodeMulticastNotFound = "MD079" ErrorCodeWindowsClusterServiceNotRunning = "MD071" ErrorCodeAzureInvalidResourceGroup = "MD054" ErrorCodeAPIInvalidTenantId = "MD010" ErrorCodeAPIInvalidSubscriptionId = "MD011" ErrorCodeAPIInvalidClientId = "MD012" ErrorCodeInvalidRegionGroup = "MD055" ErrorCodeInvalidSecretKey = "MD008" ErrorCodeInvalidAccessKey = "MD009" ErrorCodeInvalidUserName = "MD108" ErrorCodeInvalidAuthPassword = "MD109" ErrorCodeFailedToListObjects = "MD110" ErrorCodeNoActiveMetrics = "MD113" ErrorCodeNoCiscoStackMetrics = "MD114" ErrorCodeHyperVClusterServiceNotRunning = "MD096" ErrorCodeADServiceNotRunning = "MD069" ErrorCodeInvalidExchangeHost = "MD116" ErrorCodeDHCPServiceNotRunning = "MD065" ErrorCodeDNSServiceNotRunning = "MD097" ErrorCodeTerminalServiceNotRunning = "MD064" ErrorCodeInvalidSecret = "MD136" ErrorCodeInvalidDomain = "MD067" ErrorCodeEmailServiceDown = "MD026" ErrorCodeInvalidSSLCertificateFound = "MD066" ErrorCodeIISServiceNotRunning = "MD068" URLProtocolHTTPs = "https" URLProtocolHTTP = "http" HTTP = "http://" HTTPS = "https://" ErrorCodeTraceRouteFailed = "MD111" ErrorCodeUnAuthorizedURLAccess = "MD007" RunbookPluginOIDS = "runbook.plugin.oids" PluginEngineLogDirectory = "plugin-engine" SystemTags = "system.tags" TagSeparator = ":" MaxPoolSize = 10 HttpContentType = "content-type" ErrorCodeDHCPLeaseFileNotFound = "MD050" ErrorCodeDHCPConfigFileNotFound = "MD051" )
View Source
const ( SystemService = "system.service" SystemServiceDisplayName = "system.service.display.name" SystemServiceDescription = "system.service.description" SystemServiceState = "system.service.state" SystemServiceStartupType = "system.service.startup.type" InterfaceDiscovery = "interface.discovery" LocalIP = "127.0.0.1" LocalHost = "localhost" Interface64Bit = "1" Interface = "interface" InterfaceIndex = "interface.index" InterfaceName = "interface.name" InterfaceOperationalStatus = "interface.operational.status" InterfaceSpeedBytesPerSec = "interface.speed.bytes.per.sec" InterfaceType = "interface.type" InterfaceDescription = "interface.description" InterfaceAddress = "interface.address" InterfaceAlias = "interface.alias" InterfaceAdminStatus = "interface.admin.status" InterfaceOutPackets = "interface.out.packets" InterfaceSentOctets = "interface.sent.octets" InterfaceReceivedOctets = "interface.received.octets" InterfaceInPackets = "interface.in.packets" InterfaceReceivedDiscardPackets = "interface.received.discard.packets" InterfaceSentDiscardPackets = "interface.sent.discard.packets" InterfaceDiscardPackets = "interface.discard.packets" InterfaceReceivedErrorPackets = "interface.received.error.packets" InterfaceSentErrorPackets = "interface.sent.error.packets" InterfacePackets = "interface.packets" InterfaceErrorPackets = "interface.error.packets" InterfaceLastChange = "interface.last.change" InterfaceBitType = "interface.bit.type" InterfaceIPAddress = "interface.ip.address" WirelessAccessPoint = "wireless.access.point" WirelessAccessPointIPAddress = "wireless.access.point.ip.address" WirelessAccessPointMACAddress = "wireless.access.point.mac.address" WirelessAccessPointOperationalStatus = "wireless.access.point.operational.status" WirelessAccessPointStatus = "wireless.access.point.status" SNMPDigitRegexPattern = "[0-9]+" SNMPInterfaceStatusUp = "up" SNMPInterfaceStatusDown = "down" MetricPlugin = "metric.plugin" EventType = "event.type" EventDiscovery = "discovery" EventRediscover = "rediscover" EventPoll = "metric.poll" EventPluginEngine = "plugin.engine" EventTopology = "topology" TopologyPluginType = "topology.plugin.type" SNMPTopology = "SNMP" PluginEngineRequest = "plugin.engine.request" PluginEngineRequestNetworkMetric = "Network Metric" PluginEngineRequestRunbook = "Runbook" RunbookPluginType = "runbook.plugin.type" SNMPRunbook = "SNMP" PowershellRunbook = "Powershell Script" SSHRunbook = "SSH Script" HTTPRunbook = "HTTP Script" TraceRouteRunbook = "Trace Route" MACScannerRunbook = "MAC Scanner" PluginEngineRequestStreaming = "Streaming" SNMPDevice = "snmp" ObjectStatus = "objectstatus" Windows = "windows" WindowsDirectory = "windowsdirectory" WindowsFile = "windowsfile" WindowsCPUCore = "windowscpucore" WindowsDisk = "windowsdisk" WindowsNetworkInterface = "windowsnetworkinterface" WindowsCluster = "windowscluster" WindowsClusterDisk = "windowsclusterdisk" WindowsProcess = "windowsprocess" WindowsService = "windowsservice" NullString = "null" CitrixXen = "citrixxen" CitrixXenCluster = "citrixxencluster" CitrixXenClusterConfig = "citrixxenclusterconfig" CitrixXenConfig = "citrixxenconfig" CitrixXenNetwork = "citrixxennetwork" CitrixXenStorage = "citrixxenstorage" CitrixXenVM = "citrixxenvm" HyperV = "hyperv" HyperVCluster = "hypervcluster" HyperVClusterStorage = "hypervclusterstorage" HyperVConfig = "hypervconfig" HyperVNetwork = "hypervnetwork" HyperVService = "hypervservice" HyperVStorage = "hypervstorage" HyperVVM = "hypervvm" WindowsTaskScheduler = "windowstaskscheduler" DotNet = "dotnet" SNMPScalarMetric = "snmpscalarmetric" SNMPTabularMetric = "snmptabularmetric" SNMPInterface = "snmpinterface" SNMPNetworkConnection = "snmpnetworkconnection" Multicast = "multicast" RemoteVPNConnection = "remotevpnconnection" SiteVPN = "sitevpn" VRF = "vrf" URL = "url" Powershell = "powershell" Routing = "routing" STP = "stp" SwitchPortMapper = "switchportmapper" IPSLA = "ipsla" Linux = "linux" LinuxProcess = "linuxprocess" LinuxCPUCore = "linuxcpucore" LinuxDhcp = "linuxdhcp" LinuxDisk = "linuxdisk" LinuxNetworkInterface = "linuxnetworkinterface" LinuxDirectory = "linuxdirectory" LinuxFile = "linuxfile" IBMAIX = "ibmaix" IBMAIXCPUCore = "ibmaixcpucore" IBMAIXDisk = "ibmaixdisk" IBMAIXNetworkInterface = "ibmaixnetworkinterface" IBMAIXProcess = "ibmaixprocess" HPUX = "hpux" HPUXCPUCore = "hpuxcpucore" HPUXDisk = "hpuxdisk" HPUXProcess = "hpuxprocess" SymantecMessagingGateway = "symantecemailgateway" Solaris = "solaris" SolarisCPUCore = "solariscpucore" SolarisDisk = "solarisdisk" SolarisNetworkInterface = "solarisnetworkinterface" SolarisProcess = "solarisprocess" CiscoStack = "ciscostack" CiscoWireless = "ciscowireless" CiscoWirelessAP = "ciscowirelessap" CiscoWirelessClient = "ciscowirelessclient" CiscoWirelessRogueAP = "ciscowirelessrogueap" ArubaWireless = "arubawireless" ArubaWirelessAP = "arubawirelessap" ArubaWirelessClient = "arubawirelessclient" ArubaWirelessRogueAP = "arubawirelessrogueap" CiscoHardwareSensor = "ciscohardwaresensor" CloudMetrics = "cloud.metrics" AWS = "aws" AWSBilling = "awsbilling" AmazonDynamoDB = "amazondynamodb" AmazonEBS = "amazonebs" AmazonEC2 = "amazonec2" AWSELB = "awselb" AmazonRDS = "amazonrds" AmazonS3 = "amazons3" AmazonSNS = "amazonsns" AmazonCloudFront = "amazoncloudfront" AWSAutoScaling = "awsautoscaling" AWSLambda = "awslambda" AmazonSQS = "amazonsqs" AWSElasticBeanstalk = "awselasticbeanstalk" Teams = "teams" OneDrive = "onedrive" AmazonDocumentDB = "amazondocumentdb" AzureCloud = "azure" AzureBilling = "azurebilling" AzureCosmosDB = "azurecosmosdb" AzureSQLDatabase = "azuresqldatabase" AzureStorage = "azurestorage" AzureVM = "azurevm" AzureWebApp = "azurewebapp" AzureMySQL = "azuremysql" AzurePostgreSQL = "azurepostgresql" AzureServiceBus = "azureservicebus" AzureApplicationGateway = "azureapplicationgateway" AzureFunction = "azurefunction" AzureLoadBalancer = "azureloadbalancer" AzureVMScaleSet = "azurevmscaleset" AzureCDN = "azurecdn" VLAN = "vlan" VLANStatus = "vlan.status" VLANPort = "vlan.port" VLANPorts = "vlan.ports" VLANName = "vlan.name" VLANType = "vlan.type" UniqueIdentifier = "linux.plugin.command.identifier." CPUIdlePercent = "system.cpu.idle.percent" CPUUserPercent = "system.cpu.user.percent" CPUIOPercent = "system.cpu.io.percent" CPUInterruptPercent = "system.cpu.interrupt.percent" CPUUsedPercent = "system.cpu.percent" CPUSystemPercent = "system.cpu.kernel.percent" CPUCore = "system.cpu.core" CPUCoreIdlePercent = "system.cpu.core.idle.percent" CPUCoreUserPercent = "system.cpu.core.user.percent" CPUCoreIOPercent = "system.cpu.core.io.percent" CPUCoreInterruptPercent = "system.cpu.core.interrupt.percent" CPUCoreSystemPercent = "system.cpu.core.kernel.percent" CPUCoreUsedPercent = "system.cpu.core.percent" DiskVolume = "system.disk.volume" DiskVolumeCapacityBytes = "system.disk.volume.capacity.bytes" DiskVolumeUsedBytes = "system.disk.volume.used.bytes" DiskVolumeFreeBytes = "system.disk.volume.free.bytes" DiskVolumeUsedPercent = "system.disk.volume.used.percent" DiskVolumeFreePercent = "system.disk.volume.free.percent" DiskVolumeMountPath = "system.disk.volume.mount.path" DiskCapacityBytes = "system.disk.capacity.bytes" DiskUsedBytes = "system.disk.used.bytes" DiskFreeBytes = "system.disk.free.bytes" DiskUsedPercent = "system.disk.used.percent" DiskFreePercent = "system.disk.free.percent" MemoryInstalledBytes = "system.memory.installed.bytes" MemoryUsedBytes = "system.memory.used.bytes" MemoryFreeBytes = "system.memory.free.bytes" MemoryUsedPercent = "system.memory.used.percent" MemoryFreePercent = "system.memory.free.percent" MemoryAvailableBytes = "system.memory.available.bytes" OverallMemoryUsedBytes = "system.overall.memory.used.bytes" OverallMemoryFreeBytes = "system.overall.memory.free.bytes" OverallMemoryUsedPercent = "system.overall.memory.used.percent" OverallMemoryFreePercent = "system.overall.memory.free.percent" BufferMemoryBytes = "system.buffer.memory.bytes" CacheMemoryBytes = "system.cache.memory.bytes" SwapMemoryBytes = "system.swap.memory.provisioned.bytes" SwapMemoryUsedBytes = "system.swap.memory.used.bytes" SwapMemoryFreeBytes = "system.swap.memory.free.bytes" SwapMemoryUsedPercent = "system.swap.memory.used.percent" SwapMemoryFreePercent = "system.swap.memory.free.percent" Disk = "system.disk" DiskWriteBytesPerSec = "system.disk.write.bytes.per.sec" DiskReadBytesPerSec = "system.disk.read.bytes.per.sec" DiskBytesPerSec = "system.disk.bytes.per.sec" DiskWriteOpsPerSec = "system.disk.write.ops.per.sec" DiskReadOpsPerSec = "system.disk.read.ops.per.sec" DiskOpsPerSec = "system.disk.ops.per.sec" DiskReadTimePercent = "system.disk.read.time.percent" DiskWriteTimePercent = "system.disk.write.time.percent" DiskTimePercent = "system.disk.time.percent" DiskQueueLength = "system.disk.queue.length" SystemDiskIOReadOpsPerSec = "system.disk.io.read.ops.per.sec" SystemDiskIOWriteOpsPerSec = "system.disk.io.write.ops.per.sec" SystemDiskIOOpsPerSec = "system.disk.io.ops.per.sec" SystemDiskIOBytesPerSec = "system.disk.io.bytes.per.sec" SystemDiskIOWriteBytesPerSec = "system.disk.io.write.bytes.per.sec" SystemDiskIOReadBytesPerSec = "system.disk.io.read.bytes.per.sec" SystemDiskIOQueueLength = "system.disk.io.queue.length" SystemDiskIOTimePercent = "system.disk.io.time.percent" SystemDiskIOIdleTimePercent = "system.disk.io.idle.time.percent" RunningProcesses = "system.running.processes" Virtual = "system.virtual" SystemVendor = "system.vendor" Model = "system.model" Threads = "system.threads" OSName = "system.os.name" CPUType = "system.cpu.type" SystemName = "system.name" OSVersion = "system.os.version" ProcessorQueueLength = "system.processor.queue.length" BlockedProcesses = "system.blocked.processes" InterruptsPerSec = "system.interrupts.per.sec" ContextSwitchesPerSec = "system.context.switches.per.sec" OpenFileDescriptors = "system.opened.file.descriptors" CPUCores = "system.cpu.cores" SystemNetworkInterface = "system.network.interface" SystemNetworkInterfaceMACAddress = "system.network.interface.mac.address" SystemNetworkInterfaceIPAddress = "system.network.interface.ip.address" NetworkInTrafficBytesRate = "system.network.in.bytes.rate" NetworkOutTrafficBytesRate = "system.network.out.bytes.rate" NetworkTrafficBytesRate = "system.network.bytes.rate" NetworkInPacketsRate = "system.network.in.packets.rate" NetworkOutPacketsRate = "system.network.out.packets.rate" NetworkPacketsRate = "system.network.packets.rate" NetworkConnection = "system.process.network.connection" NetworkInBytesPerSec = "system.network.in.bytes.per.sec" NetworkOutBytesPerSec = "system.network.out.bytes.per.sec" NetworkInPacketsPerSec = "system.network.in.packets.per.sec" NetworkOutPacketsPerSec = "system.network.out.packets.per.sec" InterfaceOutPacketsPerSec = "system.network.interface.out.packets.per.sec" InterfaceInPacketsPerSec = "system.network.interface.in.packets.per.sec" NetworkBytesPerSec = "system.network.bytes.per.sec" NetworkTCPConnections = "system.network.tcp.connections" NetworkUDPConnections = "system.network.udp.connections" NetworkErrorPackets = "system.network.error.packets" NetworkTCPRetransmissions = "system.network.tcp.retransmissions" InterfaceInTrafficBytesRate = "system.network.interface.in.bytes.rate" InterfaceOutTrafficBytesRate = "system.network.interface.out.bytes.rate" InterfaceTrafficBytesRate = "system.network.interface.bytes.rate" InterfaceInPacketsRate = "system.network.interface.in.packets.rate" InterfaceOutPacketsRate = "system.network.interface.out.packets.rate" InterfacePacketsRate = "system.network.interface.packets.rate" InterfacePacketLoss = "system.network.interface.packet.loss.percent" InterfaceInBytesPerSec = "system.network.interface.in.bytes.per.sec" InterfaceOutBytesPerSec = "system.network.interface.out.bytes.per.sec" InterfaceOutputQueueLength = "system.network.interface.output.queue.length" InterfaceBytesPerSec = "system.network.interface.bytes.per.sec" LoadAverage1Min = "system.load.avg1.min" LoadAverage5Min = "system.load.avg5.min" LoadAverage15Min = "system.load.avg15.min" CPUDescription = "system.cpu.description" PagesFaultsPerSec = "system.pages.faults.per.sec" LogicalProcessors = "system.logical.processors" PhysicalProcessors = "system.physical.processors" OSServicePack = "system.os.service.pack" SerialNumber = "system.serial.number" MemoryCommittedBytes = "system.memory.committed.bytes" PagesPerSec = "system.pages.per.sec" PagedMemoryBytes = "system.paged.memory.bytes" NonPagedMemoryBytes = "system.non.paged.memory.bytes" NetworkQueueLength = "system.network.output.queue.length" DestinationIP = "system.process.destination.ip" DestinationPort = "system.process.destination.port" SourceIP = "system.process.source.ip" SourcePort = "system.process.source.port" Process = "system.process" ProcessName = "system.process.name" ProcessHandles = "system.process.handles" ProcessId = "system.process.id" ProcessUser = "system.process.user" ProcessCommand = "system.process.command" ProcessThreads = "system.process.threads" ProcessCPUPercent = "system.process.cpu.percent" ProcessMemoryPercent = "system.process.memory.used.percent" ProcessVirtualMemoryBytes = "system.process.virtual.memory.bytes" ProcessMemoryUsedBytes = "system.process.memory.used.bytes" ProcessIOOpsPerSec = "system.process.io.ops.per.sec" ProcessStartedTimeSeconds = "system.process.started.time.seconds" ProcessStartedTime = "system.process.started.time" ProcessIOBytesPerSec = "system.process.io.bytes.per.sec" Metric = "metric" MetricName = "metric.name" MetricUnit = "metric.unit" MetricStatistic = "metric.statistic" DirectorySize = "system.directory.size.bytes" DirectoryFiles = "system.directory.files" DirectoryDirs = "system.directory.dirs" SystemDirectory = "system.directory" DirectoryOwner = "system.directory.owner" SystemFileOwner = "system.file.owner" SystemFileSizeBytes = "system.file.size.bytes" SystemFile = "system.file" SystemFileCreationTime = "system.file.creation.time" SystemDirectoryCreationTime = "system.directory.creation.time" ResourceId = "subscriptions/%s/resourceGroups/%s/providers/%s/%s" PT5M = "PT5M" PT1M = "PT1M" PT1H = "PT1H" MetricBytes = "Bytes" MetricTotal = "Total" MetricCount = "Count" AzureMetricCountPerSec = "CountPerSecond" MetricAverage = "Average" AWSMetricCountPerSec = "Count/Second" MetricPercent = "Percent" MetricSum = "Sum" MetricSeconds = "Seconds" MetricMaximum = "Maximum" MetricMinimum = "Minimum" MetricNone = "None" MetricMillisecond = "Milliseconds" AzureMetricBytesPerSec = "BytesPerSecond" AWSMetricBytesPerSec = "Bytes/Second" AzureMetricTimeStampLayout = "2006-01-02T15:04:00Z" AWSDynamoDBName = "aws.dynamodb.db.name" AWSDynamoDBTableSizeBytes = "aws.dynamodb.table.size.bytes" AWSSNSSubscriptions = "aws.sns.subscriptions" AWSELBCreationInstanceTime = "aws.elb.instance.creation.time" AWSELBCreationInstanceTimeSeconds = "aws.elb.instance.creation.time.seconds" AWSELBType = "aws.elb.type" AWSELBVPCId = "aws.elb.vpc.id" AWSEBSVolumeType = "aws.ebs.volume.type" AWSEBSVolumeSnapshotId = "aws.ebs.volume.snapshot.id" AWSEBSVolumeSizeBytes = "aws.ebs.volume.size.bytes" AWSEBSVolumeAttachmentState = "aws.ebs.volume.attachment.status" AWSEBSVolumeEC2InstanceId = "aws.ebs.volume.ec2.instance.id" AWSEBSVolumeAttachedTime = "aws.ebs.volume.attached.time" AWSEBSVolumeAttachedTimeSeconds = "aws.ebs.volume.attached.time.seconds" AzureVMPublicIPAddress = "azure.vm.public.ip.address" AzureVMPrivateIPAddress = "azure.vm.private.ip.address" AzureCosmosDBDocumentEndpoint = "azure.cosmos.db.document.endpoint" AzureCosmosDBReadLocations = "azure.cosmos.db.read.locations" AzureCosmosDBWriteLocations = "azure.cosmos.db.write.locations" AzureCosmosDBRegionID = "azure.cosmos.db.region.id" AzureVMSize = "azure.vm.size" AzureVMComputerName = "azure.vm.computer.name" AzureVMOSType = "azure.vm.os.type" AzureVMOSDisk = "azure.vm.os.disk" AzureVMPublisher = "azure.vm.publisher" AzureSQLDatabaseElasticPoolName = "azure.sql.database.elastic.pool.name" AzureSQLDatabaseFailOverGroupId = "azure.sql.database.failover.group.id" AzureSQLDatabaseServer = "azure.sql.database.server" AzureSQLDatabaseServerFQDN = "azure.sql.database.server.fqdn" AzureSQLDatabaseStorageSizeBytes = "azure.sql.database.storage.size.bytes" AzureSQLDatabaseEarliestRestoreDate = "azure.sql.database.earliest.restore.date" AzureSQLDatabaseCreationTime = "azure.sql.database.creation.time" AzureSQLDatabaseCreationTimeSeconds = "azure.sql.database.creation.time.seconds" AzureMySQLServerFQDN = "azure.mysql.server.fqdn" AzureMySQLServerEarliestRestoreDate = "azure.mysql.server.earliest.restore.date" AzureMySQLServerBackupRetentionDays = "azure.mysql.server.backup.retention.days" AzureMySQLServerStorageSizeBytes = "azure.mysql.server.storage.size.bytes" AzurePostgreSQLServerFQDN = "azure.postgresql.server.fqdn" AzurePostgreSQLServerStorageSizeBytes = "azure.postgresql.server.storage.size.bytes" AzurePostgreSQLServerBackupRetentionDays = "azure.postgresql.server.backup.retention.days" AzurePostgreSQLServerEarliestRestoreDate = "azure.postgresql.server.earliest.restore.date" AzureWebAppDefaultHost = "azure.webapp.default.host" AWSEC2Monitoring = "aws.ec2.monitoring" AWSEC2PublicIPAddress = "aws.ec2.public.ip.address" AWSEC2PublicDNSName = "aws.ec2.public.dns.name" AWSAutoScalingHealthCheckType = "aws.autoscaling.health.check.type" AWSS3BucketCreationTime = "aws.s3.bucket.creation.time" AWSS3BucketCreationTimeSeconds = "aws.s3.bucket.creation.time.seconds" AWSRDSAllocatedStorageBytes = "aws.rds.allocated.storage.bytes" AWSRDSInstanceId = "aws.rds.instance.id" AWSEBSVolumeCreationTime = "aws.ebs.volume.creation.time" AWSEBSVolumeCreationTimeSeconds = "aws.ebs.volume.creation.time.seconds" AWSCloudFrontDomainName = "aws.cloudfront.domain.name" AWSCloudFrontHTTPVersion = "aws.cloudfront.http.version" AWSCloudFrontLastModifiedTime = "aws.cloudfront.last.modified.time" AWSCloudFrontIPv6Enabled = "aws.cloudfront.ipv6.enabled" AWSDocumentDBDBIResourceId = "aws.documentdb.dbi.resource.id" AWSDocumentDBEngine = "aws.documentdb.engine" AWSDocumentDBBackupRetentionDays = "aws.documentdb.backup.retention.days" AWSInstanceCreationTime = "aws.instance.creation.time" AWSInstanceCreationTimeSeconds = "aws.instance.creation.time.seconds" AWSAutoScalingInstanceMaxLifeTimeSeconds = "aws.autoscaling.instance.max.life.time.seconds" AWSLambdaVersion = "aws.lambda.version" AWSLambdaCodeSizeBytes = "aws.lambda.code.size.bytes" AWSLambdaMemorySizeBytes = "aws.lambda.memory.size.bytes" AWSLambdaRuntimeEnvironment = "aws.lambda.runtime.environment" AWSAvailabilityZone = "aws.availability.zone" CloudServiceDownInstanceDiscovery = "cloud.service.down.instance.discovery" AWSState = "aws.state" AWSStatus = "aws.status" AzureProvisioningState = "azure.provisioning.state" AWSLocation = "aws.location" AzureStatus = "azure.status" AzureName = "azure.name" AzureETag = "azure.etag" AzureType = "azure.type" AzureSKU = "azure.sku.name" AzureLocation = "azure.location" SystemLocation = "system.location" SystemOID = "system.oid" SystemDescription = "system.description" ArubaControllerType = "aruba.controller.type" ArubaWLC = "wirelesscontroller" ArubaIAP = "instantaccesspoint" EventTimestamp = "event.timestamp" LastPollTime = "last.poll.time" LastQueryTime = "last.query.time" Bind9 = "bind9" Bind9NetStat = "bind9netstat" Bind9SockStat = "bind9sockstat" VMNode = "vm" ESXi = "esxi" ESXiConfig = "esxiconfig" ESXiDatastore = "esxidatastore" ESXiDisk = "esxidisk" ESXiHardwareSensor = "esxihardwaresensor" ESXiNetwork = "esxinetwork" ESXiStorage = "esxistorage" ESXiVM = "esxivm" Tomcat = "tomcat" Nginx = "nginx" LightHTTPd = "lighthttpd" MSMQ = "msmq" PluginHTTP = "http" Vcenter = "vcenter" Zimbra = "zimbra" WildFly = "wildfly" VcenterDatastore = "vcenterdatastore" VcenterCluster = "vcentercluster" VcenterDatacenter = "vcenterdatacenter" RuckusWireless = "ruckuswireless" RuckusWirelessClient = "ruckuswirelessclient" RuckusWirelessWLAN = "ruckuswirelesswlan" RuckusWirelessAP = "ruckuswirelessap" RuckusWirelessRogueAP = "ruckuswirelessrogueap" ActiveDirectory = "activedirectory" ActiveDirectoryRole = "activedirectoryrole" ActiveDirectoryReplication = "activedirectoryreplication" HAProxy = "haproxy" HAProxySession = "haproxysession" Office365 = "office365" NTP = "ntp" Ping = "ping" PostgreSQL = "postgresql" PostgreSQLDatabase = "postgresqldatabase" PostgreSQLSession = "postgresqlsession" PostgreSQLTablespace = "postgresqltablespace" PostgreSQLIndex = "postgresqlindex" Radius = "radius" MSSQL = "mssql" MSSQLBackup = "mssqlbackup" MSSQLDatabase = "mssqldatabase" MSSQLIndex = "mssqlindex" MSSQLJob = "mssqljob" MSSQLProcess = "mssqlprocess" MSSQLReplication = "mssqlreplication" MSSQLSession = "mssqlsession" MSSQLSlowQuery = "mssqlslowquery" HostSystem = "HostSystem" VirtualMachine = "VirtualMachine" Datastore = "Datastore" ClusterComputeResource = "ClusterComputeResource" ResourcePool = "ResourcePool" Network = "Network" Datacenter = "Datacenter" MetricPollingTime = "metric.polling.time" InfoMessageCitrixXenConnectionCreate = "creating citrix xen api connection for %s metrics" InfoMessageCitrixXenConnectionCreated = " citrix xen api connection created for %s metrics" ValidLinuxPort = 22 CitrixRunningPowerState = "Running" CitrixHaltedPowerState = "Halted" CitrixPausedPowerState = "Paused" CitrixSuspendedPowerState = "Suspended" URLBuffer = "url-buffer" Installed = "Installed" NotInstalled = "Not Installed" Database = "database" Saphana = "saphana" ServiceCheckStatus = "service.check.status" ServiceCheckLatency = "service.check.latency.ms" SaphanaBackup = "saphanabackup" SaphanaDisk = "saphanadisk" SaphanaHost = "saphanahost" SaphanaService = "saphanaservice" SaphanaSession = "saphanasession" SaphanaTransaction = "saphanatransaction" SaphanaWorkload = "saphanaworkload" Version = "version" Type = "type" MariaDB = "mariadb" MariaDBProcess = "mariadbprocess" HDB = "hdb" Postgres = "postgres" MariaDBCommand = "mariadbcommand" MySQL = "mysql" Apache = "apache" MySQLCommand = "mysqlcommand" MySQLIndex = "mysqlindex" MySQLInnoDB = "mysqlinnodb" MySQLProcess = "mysqlprocess" MariaDBInnodb = "mariadbinnodb" MySQLConnectionURL = "%s:%s@tcp(%s:%d)/%s?timeout=%ds" PostgreSQLConnectionURL = "postgres://%s:%s@%s:%d/%s?sslmode=disable&&connect_timeout=%d" SQLServer = "sqlserver" MSSQLPortConnectionURL = "sqlserver://%s:%s@%s:%d?encrypt=disable&connection+timeout=%d" MSSQLInstanceConnectionURL = "sqlserver://%s:%s@%s/%s?encrypt=disable&connection+timeout=%d" RabbitmqStatusUrl = "/api/overview" RabbitMQ = "rabbitmq" RabbitMQChannel = "rabbitmqchannel" RabbitMQConnection = "rabbitmqconnection" RabbitMQExchange = "rabbitmqexchange" RabbitMQQueue = "rabbitmqqueue" Office365URL = "https://login.microsoftonline.com/%s/oauth2/token" CloudErrorCodeInvalidTenantId = 90002 CloudErrorCodeInvalidClientId = 700016 CloudErrorCodeInvalidSecretId = 7000215 ExchangeClientAccessRole = "exchangeclientaccessrole" ExchangeEdgeTransportRole = "exchangeedgetransportrole" ExchangeMailbox = "exchangemailbox" ExchangeMailboxRole = "exchangemailboxrole" ExchangeOnlineMailbox = "exchangeonlinemailbox" WebsphereStatusUrl = "/wasPerfTool/servlet/perfservlet" Websphere = "websphere" WebsphereServlet = "websphereservlet" WindowsDHCP = "windowsdhcp" WindowsDNS = "windowsdns" WindowsRDP = "windowsrdp" WindowsDHCPScope = "windowsdhcpscope" FTP = "ftp" Domain = "domain" SSH = "ssh" Email = "email" Certificate = "certificate" IIS = "iis" IISApplication = "iisapplication" IISAppPool = "iisapppool" IISASPNET = "iisaspnet" Oracle = "oracle" OracleASMDisk = "oracleasmdisk" OracleIndex = "oracleindex" OracleJob = "oraclejob" OracleRAC = "oraclerac" OracleRollbackSegment = "oraclerollbacksegment" OracleSession = "oraclesession" OracleSlowQuery = "oracleslowquery" OracleTableSpace = "oracletablespace" OIDs = "oids" CompositeOIDs = "compositeOIDs" )
View Source
const ( DefaultTimeout = 5 InvalidHost = "192.168.232.10" InvalidPort = 123 InvalidUserName = "abc123" InvalidSNMPCommunity = "xysdd" InvalidPassword = "motasdcsddataaa" InvalidSecretKey = "pu6mxO0hJxJHQ3/sfsdfee5d4rNmErG/sKvlfVoYhCVGS" InvalidTenantId = "5b4acec3-8790-4187-9489-98c654cc6c87" InvalidClientId = "aaa130f3-5ed7-345g-87f5-mota123dataa" InvalidTarget = "dsgdfhcfgj" InvalidObjectAccountId = "5382234645637" InvalidResource = "motadata1234" InvalidRegion = "motaddata1234" InvalidSubscriptionId = "5807cSDGDfb0-41a6-4da6-b920-71d934d4a2af" InvalidDatabase = "asduhasuic" InvalidAccessId = "AKIAX2UDTUK4657QTNUV" ProdEnv = "prod" TimeRegex = `( \d+ (?:days|day) \d+ (?:hours|hour) \d+ (?:minutes|minute) \d+ (?:seconds|second))` AccountId = "5382234645637" )
Variables ¶
View Source
var (
CurrentDir, _ = os.Getwd()
SensitiveFields = []string{"$$$password$$$", "$$$snmp.private.password$$$", "$$$snmp.community$$$",
"$$$snmp.authentication.password$$$", "$$$snmp.community$$$",
"$$$snmp.authentication.password$$$", "$$$snmp.private.password$$$",
"$$$user.password$$$", "$$$secret.key$$$", "$$$access.id$$$",
"$$$client.id$$$", "$$$ssh.key$$$", "$$$passphrase$$$", Password,
"snmp.community", "snmp.authentication.password", "snmp.private.password",
ObjectContext, DiscoveryCredentialProfiles,
"cloud.secret.key", "cloud.client.id", "cloud.access.id", "cloud.tenant.id",
"ssh.key", "passphrase", "SNMP Community", "Authentication Password",
"Private Password", "metric.plugin.variables", "mail.server.password",
"ldap.server.password", "discovery.context", "credential.profile.context",
"user.password"}
)
View Source
var Office365Data = url.Values{
"grant_type": {"client_credentials"},
"resource": {"https://graph.microsoft.com"},
"client_id": {""},
"client_secret": {""},
}
View Source
var RediscoverMetrics = []string{SNMPInterface, SNMPDevice} // we have used native string []
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.