I am have to scrape certain snmp OIDs from appliances, which run custom Oses based on Linux and FreeBSD. And most of these are vendor specific OIDs. They are running snmpd processes with access restricted to local host only.
I think I a workaround could be to use vmagent from Victoria Metrics with proxy_url .. and i can create an ssh tunnel to those machines from the machine which is going to scrape. Not an ideal solution but a workaround. Cant think of anything else... On Monday, March 29, 2021 at 11:03:47 PM UTC+4 Stuart Clark wrote: > On 2021-03-29 19:39, Rizwan Khan wrote: > > Guys, a question regarding snmp_exporter, as it runs as proxy and > > fetches snmp from other machines unlike node_exporter, I am having an > > issue. The customer I am working on has given access to snmp only over > > localhost [1] .. whats the best way to make it work? One idea I had > > was to ssh tunnel over some port and then use that port as proxy .. > > but how do i use it with snmp_exporter? any other suggestions are > > welcome .. > > Localhost for what? I'd normally associate SNMP with monitoring things > like network switches rather than servers, where local only access makes > little sense. If you are talking about full servers which are running > SNMPd you'd be much better off ignoring that totally and instead using > standard exporters such as node exporter, etc. - SNMP is great as a > generic protocol that pretty much all network equiptment supports, but > for a Linux or Windows machine the normal exporters are much quicker, > more reliable and support more detailed information. > > -- > Stuart Clark > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b0fabf83-77b1-4942-8b4c-c337f12f935an%40googlegroups.com.

