I have a server that's reporting SNMP stats of a number of other devices. The server is the only IP that is responding with SNMP. In its MIB file, there are number of tables. For example:
- device entries - 1.3.6.1.4.1.66666.1.1.1 [the 66666 isn't the real OID, of course]
- device1 - 1.3.6.1.4.1.66666.1.1.1.12341 - 12341
- device2 - 1.3.6.1.4.1.66666.1.1.1.12342 - 12342
- device3 - 1.3.6.1.4.1.66666.1.1.1.12343 - 12343
- device CPU - 1.3.6.1.4.1.66666.1.1.2
- device1 - 1.3.6.1.4.1.66666.1.1.2.12341 - 10%
- device2 - 1.3.6.1.4.1.66666.1.1.2.12342 - 12%
- device3 - 1.3.6.1.4.1.66666.1.1.2.12343 - 99%
- device name - 1.3.6.1.4.1.66666.1.1.3
- device1 - 1.3.6.1.4.1.66666.1.1.3.12341 - name1
- device2 - 1.3.6.1.4.1.66666.1.1.3.12342 - another_name
- device3 - 1.3.6.1.4.1.66666.1.1.3.12343 - third_name
I want to monitor each device separately, even though all are reported through one server/IP address. I'm able to do it manually by creating a new device with the IP of the server, and adding custom OIDs for each of the things I want to poll. The problem is that there are a lot more of these table entries, so it's a long process.
Is there any way to automate any of this process? For example, somehow creating a device that would have a device ID (e.g 12342), and that device ID would be populated in the different OIDs? Maybe duplicate the hosts search+replace the specific device IDs?
Thanks!
Add comment