[Up]常用資訊

[重點文章] 重點文章 [重點文章] 重點文章

2020年6月21日 星期日

[Telegraf] telegraf SNMP F5 設定檔

[Telegraf] telegraf SNMP F5 設定檔

 
#Step: 01 – telegraf SNMP F5 設定檔
telegraf SNMP F5 設定檔


#################

[[inputs.snmp]]
  name_prefix = "exec1_"
  agents = [ "xxx.xxx.xxx.xxx", "xxx.xxx.xxx.xxx", "xxx.xxx.xxx.xxx" ]
  version = 2
  community = "public"
  interval = "60s"
  timeout = "10s"
  retries = 3
  name = "F5_system"

  [[inputs.snmp.field]]
    name = "hostname"
    oid = "RFC1213-MIB::sysName.0"
    is_tag = true
  [[inputs.snmp.field]]
    name = "F5_uptime"
    oid = "1.3.6.1.4.1.3375.2.1.6.6.0"
  [[inputs.snmp.field]]
    name = "F5_httpRequests"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.1.56.0"
  [[inputs.snmp.field]]
    name = "F5_client_connections"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.1.8.0"
  [[inputs.snmp.field]]
    name = "F5_client_bytes_in"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.1.60.0"
  [[inputs.snmp.field]]
    name = "F5_Total_Connections"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.1.8.0"
  [[inputs.snmp.field]]
    name = "F5_New_Connects"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.12.8.0"
  [[inputs.snmp.field]]
    name = "F5_New_Accepts"
    oid = "1.3.6.1.4.1.3375.2.1.1.2.12.6.0"

  [[inputs.snmp.field]]
    name = "F5_Device_status"
    oid = "F5-BIGIP-SYSTEM-MIB::sysCmFailoverStatusId.0"

 [[inputs.snmp.field]]
    name = "F5_Synchronization_status_color"
    oid = "F5-BIGIP-SYSTEM-MIB::sysCmSyncStatusColor.0"

 [[inputs.snmp.table]]
    name = "F5_CPU"
    oid = "F5-BIGIP-SYSTEM-MIB::sysMultiHostCpuTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_Memory_Usage"
    oid = "F5-BIGIP-SYSTEM-MIB::sysMultiHostTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
   name = "F5_PoolStatus"
   oid = "F5-BIGIP-LOCAL-MIB::ltmPoolStatTable"
   inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
   name = "F5_ClientSSLStatus"
   oid = "F5-BIGIP-LOCAL-MIB::ltmClientSslStatTable"
   inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
   name = "F5_Fan"
   oid = "F5-BIGIP-SYSTEM-MIB::sysChassisFanTable"
   inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
   name = "F5_Temperature"
   oid = "F5-BIGIP-SYSTEM-MIB::sysChassisTempTable"
   inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
   name = "F5_VirtualStatus"
   oid = "F5-BIGIP-LOCAL-MIB::ltmVirtualServStatTable"
   inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_Nodes_Status"
    oid =  "F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_Vlan_Status"
    oid =  "F5-BIGIP-SYSTEM-MIB::sysVlanStatTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_DiskTable_Status"
    oid =  "F5-BIGIP-SYSTEM-MIB:sysHostDiskTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_PoolMembers_Status"
    oid =  "F5-BIGIP-LOCAL-MIB::ltmPoolMemberStatTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_PoolUpDowm_Status"
    oid =  "F5-BIGIP-LOCAL-MIB::ltmPoolMemberTable"
    inherit_tags = [ "hostname" ]
###############################################################################
#                                  SSLVPN APM module                          #
###############################################################################

 [[inputs.snmp.table]]
    name = "F5_APM_IP_List"
    oid = "F5-BIGIP-APM-MIB::apmLeasepoolStatTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_APM_Pauser_List"
    oid = "F5-BIGIP-APM-MIB::apmPaStatTable"
    inherit_tags = [ "hostname" ]

 [[inputs.snmp.table]]
    name = "F5_APM_ACL_List"
    oid = "F5-BIGIP-APM-MIB::apmAclStatTable"
    inherit_tags = [ "hostname" ]

###############################################################################
#                                  OUTPUTS                                    #
###############################################################################
# Output Plugin InfluxDB
[[outputs.influxdb]]
    namepass = ["exec1_*"]
    database = "telegraf"
    urls = [ "http://127.0.0.1:8086" ]
    username = "test01"
    password = "influxdbStr0nGPass"
    retention_policy = ""
	

沒有留言:

張貼留言