Closed trebleCode closed 6 years ago
@danielnelson
Any additional information I can provide here to assist?
Can you get the fields with snmpget
?
There must be at least one field being added to InfluxDB, since you cannot add a point without at least one field. Try this:
> show field keys from snmp
Here's what I get for output Daniel:
use telegraf Using database telegraf show field keys from snmp name: snmp fieldKey fieldType
SysUpTimeInstance integer SystemUptime integer hostname string inUCastPackets integer outUCastPackets integer
Were you able to get the values with snmpget?
If I run:
snmpget -v 3 -u myuser -l authPriv -a SHA -A mypriv -x AES -X my password my.fire.wall.ip iso.3.6.1.4.1.25461.2.1.2.3.2
I get: SNMPv2-SMI::enterprises.25461.2.1.2.3.2 = No Such Instance currently exists at this OID
Any additional suggestions?
It looks to me that the OID does not exist on the device you are querying.
But with the appropriate MIB files in a default location snmp looks in, and the OID being translated correctly via the above snmpwalk to my firewall, what else would be missing?
What is the output of the snmpwalk command?
I will run it and post the result when I have my system in front of me in the morning. Thanks for the continued support
If I run snmpwalk against a Palo Alto-specific MIB, I get the following in return:
snmpwalk -v3 -u myusername -l authPriv -a SHA -A myauthpw -x AES -X myprivpw
SNMPv2-SMI::enterprises.25461.2.1.2.3.2.0 = INTEGER: 262142
In your config try adding the .0 to the end of this particular field:
[[inputs.snmp.field]]
name = "panSessionMax"
oid = "iso.3.6.1.4.1.25461.2.1.2.3.2.0"
[[inputs.snmp]] priv_password = 'MyPass!word'
Double "" didn't work and had to use single 'xx/!xxx'
Don't see any errors after restarting the service about parsing .. but during collections I see below error ... No issues seen when i run snmpwalk on the same host using same credentials..
Do we need to add anything thing in the password if we use / or ! in passwords ??
E! Error in plugin [inputs.snmp]: agent
@rrasale The exclamation mark is not a special character in TOML, so it shouldn't need any special escaping or quoting. Can you verify it works with a password not containing !
and if so open a new issue.
Closing this issue since no update, @trebleCode let me know if you would like more assistance.
Yes, it works fine without !,
I tried with $ and other passwords without any spl characters all works without any issues.. issue is only with the ones that has ! and /
Okay, that is helpful to know, can you open a new issue?
Can you please point me to where i can open a issue for this ?
On Jan 12, 2018, at 4:10 PM, Daniel Nelson notifications@github.com wrote:
Okay, that is helpful to know, can you open a new issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/influxdata/telegraf/issues/3502#issuecomment-357353862, or mute the thread https://github.com/notifications/unsubscribe-auth/AeYNEegNNlFvUTYy2aSVYjMOXHxTtH6Vks5tJ8lJgaJpZM4Qp3JI.
Can you please point me where i open the issue ? Is it on InfluxData site? Any links would be helpful
Never Mind, I opened the issue on the community link in influxdata
@rrasale This is the link to open a new issue (also at the top of the page in a green button).
Bug report
While able to snmpwalk to Palo Alto firewalls using snmpv3, data from Palo Alto-defined MIB files
(https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/zip/technical-documentation/snmp-mib-modules/PAN-MIB-MODULES-8.0.zip)
is not detected by telegraf. Only agent_host and host appear are the only fields with data to make it into InfluxDB.
Relevant telegraf.conf:
System info:
[Include Telegraf version, operating system name, and other relevant details]
Steps to reproduce:
establish above configuration
unzip Palo Alto MIB's
copy to a default mib directory cp /path/to/mibs /etc/snmp/mibs ~/.snmp/mibs
Check that snmpwalk works with one of the Palo defined mibs: snmpwalk -v3 -u mysecureusername -l authPriv -a SHA -A myauthpw -x AES -X myprivpw my.first.firewall.here iso.3.6.1.4.1.25461.2.1.2.3.2
Check if data is in Influx influx show series on telegraf
Expected behavior:
Actual behavior: