Host/Graph Template Question - Data query without an index?

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

Moderators: Developers, Moderators

Post Reply
Rorik
Posts: 1
Joined: Tue Feb 12, 2013 4:15 pm

Host/Graph Template Question - Data query without an index?

Post by Rorik »

Hello there,

I'm working with some ServerCheck v5 Temperature/Humidity gateways. I've created generic data, graph and host templates that will grab the data from each sensor, but it would be really nice to be able to include the name of the sensor similar to how you can include interface descriptions for network switches.

I believe I'm trying to figure out if there is a way to do something like a data query against data where there is no index.

This is the data that gets returned from a walk of the appropriate area:

snmpwalk -c SNMP -v 2c 10.0.0.1 1.3.6.1.4.1.17095.3
1.3.6.1.4.1.17095.3.1.0 = STRING: "Gateway"
1.3.6.1.4.1.17095.3.2.0 = STRING: "24.31"
1.3.6.1.4.1.17095.3.3.0 = STRING: "-"
1.3.6.1.4.1.17095.3.4.0 = STRING: "-"
1.3.6.1.4.1.17095.3.5.0 = STRING: "Sensor_1"
1.3.6.1.4.1.17095.3.6.0 = STRING: "26.56"
1.3.6.1.4.1.17095.3.7.0 = STRING: "WARNING"
1.3.6.1.4.1.17095.3.8.0 = STRING: "05 January 2012,05:25:58"
1.3.6.1.4.1.17095.3.9.0 = STRING: "Humidity"
1.3.6.1.4.1.17095.3.10.0 = STRING: "39.73"
1.3.6.1.4.1.17095.3.11.0 = STRING: "DOWN"
1.3.6.1.4.1.17095.3.12.0 = STRING: "05 January 2012,05:26:00"
1.3.6.1.4.1.17095.3.13.0 = STRING: "Sensor_2"
1.3.6.1.4.1.17095.3.14.0 = STRING: "27.06"
1.3.6.1.4.1.17095.3.15.0 = STRING: "WARNING"
1.3.6.1.4.1.17095.3.16.0 = STRING: "05 January 2012,05:26:00"
1.3.6.1.4.1.17095.3.17.0 = STRING: "Humidity"
1.3.6.1.4.1.17095.3.18.0 = STRING: "38.92"
1.3.6.1.4.1.17095.3.19.0 = STRING: "DOWN"
1.3.6.1.4.1.17095.3.20.0 = STRING: "05 January 2012,05:26:01"

You'll see for example these fields which are important:
1.3.6.1.4.1.17095.3.1.0 = STRING: "Gateway" - Sensor description
1.3.6.1.4.1.17095.3.2.0 = STRING: "24.31" - Sensor temperature

1.3.6.1.4.1.17095.3.5.0 = STRING: "Sensor_1" - Sensor description
1.3.6.1.4.1.17095.3.6.0 = STRING: "26.56" - Sensor Temperature

1.3.6.1.4.1.17095.3.13.0 = STRING: "Sensor_2" - Sensor description
1.3.6.1.4.1.17095.3.14.0 = STRING: "27.06" - Sensor Temperature


If anyone has any suggestions, I would be much appreciative.


Thank you,

Rory
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests