variable in oid in a data template

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
miq
Posts: 3
Joined: Wed Sep 04, 2013 3:25 am

variable in oid in a data template

Post by miq »

Hi!.
It's my first topic, on this forum so please be forgiving.
I have a few services on the same machine, and I want get snmp data from this service. So I create a two lines in my snmpd.conf with extend command:

Code: Select all

extend .1.3.6.1.4.1.2021.8.1 service1 /bin/bash echo "service1"
extend .1.3.6.1.4.1.2021.8.2 service2 /bin/bash echo "service2"
and create a data template, with first oid .1.3.6.1.4.1.2021.8.1
And the question is - it's possible, to put a variable in oid in template, for example .1.3.6.1.4.1.2021.8.$foo, to use the same data template with many services? And for example when i create a new device, set a value of this variable during creating process? I try to find solution, but i can't find it.

Thanks for any ideas :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: variable in oid in a data template

Post by gandalf »

This is not yet possible. And I wonder, how this variable should be filled prior to polling???
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests