From: Lárus R. H. <la...@sl...> - 2011-03-15 14:44:45
|
Hello I am having trouble with understanding leaves and branches in SNMP. I am trying to build a template for the Sensatronics E4 environment monitor, http://www.sensatronics.com/products_temperature_model_e4.html here is what I have done so far regarding the temp test part: ---oids file--- SensaE4TempProbeName: 1.3.6.1.4.1.16174.1.1.1.3.1.1.0 : leaf SensaE4TempProbeValueString: 1.3.6.1.4.1.16174.1.1.1.3.1.2.0 : leaf SensaE4TempProbeValueInt: 1.3.6.1.4.1.16174.1.1.1.3.1.3.0 : leaf ------ ---transforms file--- (I only did this to see if I could calculate data from the string leaf and it is possible) temp : MATH : {SensaE4TempProbeValueString} / 1 ------ ---message file--- Thermal sensors: Probe: {SensaE4TempProbeName} {SensaE4TempProbeValueInt.color} temperature in degrees Celsius: {temp} ------ ---thresholds file--- SensaE4TempProbeValueInt : red : >32 : Temperature is Very High: {SensaE4TempProbeValueInt} degrees Celcius SensaE4TempProbeValueInt : yellow : >29 : Temperature is High: {SensaE4TempProbeValueInt} degrees Celcius SensaE4TempProbeValueInt : green : : Temperature is normal {SensaE4TempProbeValueInt} degrees Celcius ------ For this particlular unit, you can connect up to 4 sensors. As I am only using one sensor, I used the leaves for sensor 1 just to get this working. Now I want to finish up this template so others can use it too. as can be seen on the oids file, the probe 1 oids are as follows: (file can be seen here: http://sensatronics.serverpros.com/downloads/snmp/Model_E_OID_Listing.pdf) Name: 1.3.6.1.4.1.16174.1.1.1.3.1.1.0 : leaf ValueString: 1.3.6.1.4.1.16174.1.1.1.3.1.2.0 : leaf ValueInt: 1.3.6.1.4.1.16174.1.1.1.3.1.3.0 : leaf Sensor oids for probe 2 are: Name: 1.3.6.1.4.1.16174.1.1.1.3.2.1.0 : leaf ValueString: 1.3.6.1.4.1.16174.1.1.1.3.2.2.0 : leaf ValueInt: 1.3.6.1.4.1.16174.1.1.1.3.2.3.0 : leaf My question is: how can I call the BRANCH for these oids to be able to change message file into a TABLE structure and have Xymon 4.3 graph the sensors? (i have copied the content of devmon-graph.cfg into xymon's graph.cfg) Xymon can display the data and alerts if heat exceeds the limits but no rrd files are generated and I cannot figure out why. could anybody help me with this? best regards, Larus |