# SNMP monitoring skips OID with 'NoSuchInstance'

**URL:** <https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794>\
**Category:** Help\
**Tags:** agent, collectors\
**Created:** [January 24, 2023, 4:36pm UTC](https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794 "2023-01-24T16:36:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Johnstone](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luis_johnstone/32/151_2.png) [@Luis\_Johnstone](https://community.netdata.cloud/u/Luis_Johnstone)\
**Post date:** [January 24, 2023, 4:36pm UTC](https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794/1 "2023-01-24T16:36:14Z")

</div>

I’ve been using the SNMP collector against a couple of switches but haven’t been able to get the OID for system uptime to work.

snmpwalk works fine:

> snmpwalk -t 20 -O fn -v 2c -c netdata 192.168.178.3 .1.3.6.1.2.1.1.3

returns:

> .1.3.6.1.2.1.1.3.0 = Timeticks: (6365400) 17:40:54.00

but the graphs say ‘no data’ ands running the module in debug mode returns:

> [DEBUG] snmp[GS110TPP\_switch] collect.go:49 skipping OID ‘1.3.6.1.2.1.1.3’ (unsupported type ‘NoSuchInstance’)

and then:

> BEGIN ‘snmp\_GS110TPP\_switch.snmp\_switch.management.uptime’  
> SET ‘Switch Uptime’ =  
> END

My snmp.conf has two jobs, one for each switch. And the config for one looks like this:

> - name: GS110TPP switch  
> update\_every: 5  
> hostname: “192.168.178.3”  
> community: netdata  
> options:  
> version: 2  
> charts:
> - id: “snmp\_switch.bandwidth\_port.GS110TPP”  
> title: “GS110TPP Switch Bandwidth for port”  
> units: “MiB/s”  
> type: “area”  
> family: “ports”  
> multiply\_range: [1, 10]  
> dimensions:
> - name: “in”  
> oid: “1.3.6.1.2.1.2.2.1.10.”  
> algorithm: “incremental”  
> multiplier: 8  
> divisor: 1000000
> - name: “out”  
> oid: “1.3.6.1.2.1.2.2.1.16.”  
> algorithm: “incremental”  
> multiplier: 8  
> divisor: 1000000
> 
> - id: “snmp\_switch.management.uptime.GS110TPP”  
> title: “GS110TPP Switch Uptime”  
> units: “percent”  
> type: “line”  
> family: “switch\_management”  
> dimensions:
> - name: “Switch Uptime”  
> oid: “1.3.6.1.2.1.1.3”  
> algorithm: “absolute”

The port bandwidth counters work fine AFAIK, so I’m not sure what I’m doing wrong with the uptime one as I believe the collector should handle TIMETICKS.

---

<div class="post-metadata">

**Author:** ![Christopher\_Akritid1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/christopher_akritid1/32/419_2.png) [@Christopher\_Akritid1](https://community.netdata.cloud/u/Christopher_Akritid1)\
**Post date:** [January 24, 2023, 5:24pm UTC](https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794/2 "2023-01-24T17:24:46Z")

</div>

I believe you need to put in `1.3.6.1.2.1.1.3.0`, the result of SNMP walk. I don’t see a `multiply_range` for the switch Uptime, so it will simply do an SNMP GET of `1.3.6.1.2.1.1.3`, which doesn’t exist (the .0 at the end is the issue I think).

Also, in the docs I see `multiply_range` together with oids that don’t have the trailing `.` that you have here. Do the port in/out stats work despite this?

---

<div class="post-metadata">

**Author:** ![Luis\_Johnstone](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luis_johnstone/32/151_2.png) [@Luis\_Johnstone](https://community.netdata.cloud/u/Luis_Johnstone)\
**Post date:** [January 24, 2023, 5:44pm UTC](https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794/3 "2023-01-24T17:44:00Z")

</div>

@Christopher_Akritid1 Thanks for that. I knew it was something simple!

I guess the question now is how to get the chart to display/convert timeticks to a nice format like days/hours/minutes etc?? 🙂

Yes, the trailing dot was required (I couldn’t get it to work any other way) when I first set this up a while back (even though the docs didn’t say so) but I just tested and it works fine either way.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 24, 2023, 8:24pm UTC](https://community.netdata.cloud/t/snmp-monitoring-skips-oid-with-nosuchinstance/3794/4 "2023-01-24T20:24:44Z")

</div>

> [@Luis\_Johnstone](#):
>
> timeticks

[supported](https://github.com/netdata/go.d.plugin/blob/7eebd2f825ae37a8cce5d5afa3e63244af6f9f21/modules/snmp/collect.go#L37-L49), the value is converted to int.

> I guess the question now is how to get the chart to display/convert timeticks to a nice format like days/hours/minutes

The chart units should be “seconds”. Use a multiplier/divisor to convert the value to seconds if needed.
