All Apps and Add-ons

No Such Instance currently exists at this OID

szaboszilard
Path Finder

Hi,

I try it, but i have some errors. I'm trying to query data from my fortigate.
I get these errors:

/opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Traceback (most recent call last):
/opt/splunk/etc/apps/snmp_ta/bin/snmp.py"   File "/opt/splunk/etc/apps/snmp_ta/bin/snmp.py", line 492, in <module>
/opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     do_run()
/opt/splunk/etc/apps/snmp_ta/bin/snmp.py"   File "/opt/splunk/etc/apps/snmp_ta/bin/snmp.py", line 316, in do_run
/opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     lookupNames=True, lookupValues=True)
/opt/splunk/etc/apps/snmp_ta/bin/snmp.py" UnboundLocalError: local variable 'oid_args' referenced before assignment

In my splunk index:

FORTINET-FORTIGATE-MIB::fgSysCpuUsage."" = "No Such Instance currently exists at this OID" 
FORTINET-CORE-MIB::fnSysSerial."" = "No Such Instance currently exists at this OID"

With MibViewer I have received the snmp reply:

Send snmp get request to x.x.x.x:161
.1.3.6.1.4.1.12356.100.1.1.1.0 (not in loaded mib files) --> FG600C3912801998

Send snmp get request to x.x.x.x1:161
.1.3.6.1.4.1.12356.101.4.1.3.0 (not in loaded mib files) --> 0
Tags (1)
1 Solution

szaboszilard
Path Finder

pffff... I have found the problem.

Wrong Settings:
object_names = 1.3.6.1.4.1.12356.101.4.1.3
object_names = 1.3.6.1.4.1.12356.101.4.1.3

Good Settings:
object_names = 1.3.6.1.4.1.12356.101.4.1.3.0
object_names = 1.3.6.1.4.1.12356.101.4.1.3.0

You need to add an ".0" string to end of your query and all it is OK.

View solution in original post

szaboszilard
Path Finder

pffff... I have found the problem.

Wrong Settings:
object_names = 1.3.6.1.4.1.12356.101.4.1.3
object_names = 1.3.6.1.4.1.12356.101.4.1.3

Good Settings:
object_names = 1.3.6.1.4.1.12356.101.4.1.3.0
object_names = 1.3.6.1.4.1.12356.101.4.1.3.0

You need to add an ".0" string to end of your query and all it is OK.

Damien_Dallimor
Ultra Champion

Yes , unless you tell the SNMP Mod Input to do a bulk get (where it will walk the OID tree) , you need to provide the fully qualified OID name (all the way to the leaf).

szaboszilard
Path Finder

Hi, my local inputs.conf@snmp_ta:

[snmp://fortigate_A_FORTINET-CORE-MIB_query]
communitystring = forti
destination = x.x.x.x
do_bulk_get = 0
host = x.x.x.x
index = snmp
ipv6 = 0
listen_traps = 0
mib_names = FORTINET-CORE-MIB
object_names = 1.3.6.1.4.1.12356.100.1.1.1
port = 161
snmp_version = 2C
snmpinterval = 60
sourcetype = snmp
split_bulk_output = 0
disabled = 0

[snmp://fortigate_A_FORTINET-FORTIGATE-MIB_query]
communitystring = forti
destination = x.x.x.x
do_bulk_get = 0
host = x.x.x.x
index = snmp
ipv6 = 0
listen_traps = 0
mib_names = FORTINET-FORTIGATE-MIB
object_names = 1.3.6.1.4.1.12356.101.4.1.3
port = 161
snmp_version = 2C
snmpinterval = 60
sourcetype = snmp
split_bulk_output = 0
disabled = 0

[snmp://fortigate_A_trap]
communitystring = forti
destination = x.x.x.x
do_bulk_get = 0
host = x.x.x.x
index = snmp
ipv6 = 0
listen_traps = 1
mib_names = FORTINET-FORTIGATE-MIB,FORTINET-CORE-MIB
port = 161
snmp_version = 2C
snmpinterval = 60
sourcetype = snmp_trap
split_bulk_output = 0
trap_host = y.y.y.y
trap_port = 162
disabled = 0

MIBs reference whitch works with mibviewer.exe:

http://www.oidview.com/mibs/12356/FORTINET-FORTIGATE-MIB.html

http://www.oidview.com/mibs/12356/FORTINET-CORE-MIB.html

0 Karma

szaboszilard
Path Finder

I did try with Object Names too, but the result is wronger: no data @ my index. The result is the same with mibviewer.

0 Karma

Damien_Dallimor
Ultra Champion

You get the "No Such Instance currently exists at this OID" message if you make an SNMP request for a non-existent OID, or for an OID that has multiple instances without including an appropriate leaf instance identifier.

What does your SNMP configuration in Splunk look like (in the inputs.conf file) ?

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...