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 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