Is there a way to get Cacti to pick the proper graph to draw by looking at the value of an OID? For example, I have a device which can report environment information based on connected sensors. I have an OID that tells me that there is a temperature sensor connected at index 1, or there is a humidy sensor at index 2. The kicker is that the output from these sensors is always at the same OID.index. Is there a way to get cacti to look at the first OID, determine what type it is, and then choose the appropriate graph template?
Thanks,
-Steve
Graph Template Based On Value of an OID
Moderators: Developers, Moderators
I don't see any links in your signature...
Here is the snmpwalk output:
SENSAPHONE-MIB::envHostIndex.1.0 = INTEGER: 1
SENSAPHONE-MIB::envHostIndex.2.0 = INTEGER: 2
SENSAPHONE-MIB::envHostIndex.3.0 = INTEGER: 3
SENSAPHONE-MIB::envHostIndex.4.0 = INTEGER: 4
SENSAPHONE-MIB::envHostIndex.5.0 = INTEGER: 5
SENSAPHONE-MIB::envHostIndex.6.0 = INTEGER: 6
SENSAPHONE-MIB::envHostIndex.7.0 = INTEGER: 7
SENSAPHONE-MIB::envHostIndex.8.0 = INTEGER: 8
SENSAPHONE-MIB::envHostIndex.9.0 = INTEGER: 9
SENSAPHONE-MIB::envHostIndex.10.0 = INTEGER: 10
SENSAPHONE-MIB::envHostIndex.11.0 = INTEGER: 11
SENSAPHONE-MIB::envHostInputType.1.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.2.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.3.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.4.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.5.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.6.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.7.0 = INTEGER: temp-F-LCD(11)
SENSAPHONE-MIB::envHostInputType.8.0 = INTEGER: temp-F-LCD(11)
SENSAPHONE-MIB::envHostInputType.9.0 = INTEGER: battery(19)
SENSAPHONE-MIB::envHostInputType.10.0 = INTEGER: hostPower(17)
SENSAPHONE-MIB::envHostInputType.11.0 = INTEGER: sound(20)
SENSAPHONE-MIB::envHostInputValue.1.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.2.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.3.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.4.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.5.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.6.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.7.0 = INTEGER: 73
SENSAPHONE-MIB::envHostInputValue.8.0 = INTEGER: 72
SENSAPHONE-MIB::envHostInputValue.9.0 = INTEGER: 100
SENSAPHONE-MIB::envHostInputValue.10.0 = INTEGER: 119
SENSAPHONE-MIB::envHostInputValue.11.0 = INTEGER: 70
Here is the snmpwalk output:
SENSAPHONE-MIB::envHostIndex.1.0 = INTEGER: 1
SENSAPHONE-MIB::envHostIndex.2.0 = INTEGER: 2
SENSAPHONE-MIB::envHostIndex.3.0 = INTEGER: 3
SENSAPHONE-MIB::envHostIndex.4.0 = INTEGER: 4
SENSAPHONE-MIB::envHostIndex.5.0 = INTEGER: 5
SENSAPHONE-MIB::envHostIndex.6.0 = INTEGER: 6
SENSAPHONE-MIB::envHostIndex.7.0 = INTEGER: 7
SENSAPHONE-MIB::envHostIndex.8.0 = INTEGER: 8
SENSAPHONE-MIB::envHostIndex.9.0 = INTEGER: 9
SENSAPHONE-MIB::envHostIndex.10.0 = INTEGER: 10
SENSAPHONE-MIB::envHostIndex.11.0 = INTEGER: 11
SENSAPHONE-MIB::envHostInputType.1.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.2.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.3.0 = INTEGER: water(4)
SENSAPHONE-MIB::envHostInputType.4.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.5.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.6.0 = INTEGER: none(16)
SENSAPHONE-MIB::envHostInputType.7.0 = INTEGER: temp-F-LCD(11)
SENSAPHONE-MIB::envHostInputType.8.0 = INTEGER: temp-F-LCD(11)
SENSAPHONE-MIB::envHostInputType.9.0 = INTEGER: battery(19)
SENSAPHONE-MIB::envHostInputType.10.0 = INTEGER: hostPower(17)
SENSAPHONE-MIB::envHostInputType.11.0 = INTEGER: sound(20)
SENSAPHONE-MIB::envHostInputValue.1.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.2.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.3.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.4.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.5.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.6.0 = INTEGER: 0
SENSAPHONE-MIB::envHostInputValue.7.0 = INTEGER: 73
SENSAPHONE-MIB::envHostInputValue.8.0 = INTEGER: 72
SENSAPHONE-MIB::envHostInputValue.9.0 = INTEGER: 100
SENSAPHONE-MIB::envHostInputValue.10.0 = INTEGER: 119
SENSAPHONE-MIB::envHostInputValue.11.0 = INTEGER: 70
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please see http://docs.cacti.net/manual:087:3a_adv ... alkthrough
R.
R.
Who is online
Users browsing this forum: No registered users and 3 guests