Graph Template Based On Value of an OID

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

Moderators: Developers, Moderators

Post Reply
sbader
Posts: 7
Joined: Wed Feb 17, 2010 11:20 am

Graph Template Based On Value of an OID

Post by sbader »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose that this is close to a FAQ (see 1st link of my sig). But to be sure, please post output of an snmpwalk against your OID (including all indexes)
R.
sbader
Posts: 7
Joined: Wed Feb 17, 2010 11:20 am

Post by sbader »

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
sbader
Posts: 7
Joined: Wed Feb 17, 2010 11:20 am

Post by sbader »

Now I see links in your sig.. Looking now..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sbader
Posts: 7
Joined: Wed Feb 17, 2010 11:20 am

Post by sbader »

I just got it working. Thanks for all of the help!

-Steve
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests