good morning all
I am trying to collect SNMP data from my QNAP server and store it in my influxdb using telegraf.
I have been able my Grafana displaying information about my OS environment “Unraid” with no issues but I am now trying to get Grafana to display my QNAP.
so far I have been able to implement my snmp to output all data and I am able to see this when I run the commands
snmpwalk -v 2c -c communtry name QNAP IP Address
snmptable -v 2c -c communtry name QNAP IP Address IF-MIB::ifXTable
which gives me this hastebin
but here is where I am having issues, I have found a example that allows me to capture the Ethernet traffic but I would also like to expand on this and capture things like CPU Usage, Total free space, etc
so the code I am using at the moment is
[[inputs.snmp.field]]
name = “hostname”
oid = “RFC1213-MIB::sysName.0”
is_tag = true
[[inputs.snmp.field]]
name = “uptime”
oid = “DISMAN-EXPRESSION-MIB::sysUpTimeInstance”
IF-MIB::ifTable contains counters on input and output traffic as well as errors and discards.
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifTable”
# Interface tag - used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = "ifDescr"
oid = "IF-MIB::ifDescr"
is_tag = true
IF-MIB::ifXTable contains newer High Capacity (HC) counters that do not overflow as fast for a few of the ifTable counters
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifXTable”
# Interface tag - used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = "ifDescr"
oid = "IF-MIB::ifDescr"
is_tag = true
EtherLike-MIB::dot3StatsTable contains detailed ethernet-level information about what kind of errors have been logged on an interface (such as FCS error, frame too long, etc)
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “EtherLike-MIB::dot3StatsTable”
# Interface tag - used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = "ifDescr"
oid = "IF-MIB::ifDescr"
is_tag = true
if someone could explain to me how I can pull data from my raw data in a real world example then I would very grateful.