Graphing temperature sensors

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
BKesslerHHC
Posts: 3
Joined: Wed Jan 06, 2016 9:54 am

Graphing temperature sensors

#1 Post by BKesslerHHC » Tue Aug 22, 2017 8:07 am

After a few weeks of trying and then giving up, taking a few months off, and now trying again for a few days, I am having a devil of a time graphing a couple of temperature sensors. I've gone through the manuals a dozen different times, tried countless permutations of things, and have exhausted my considerable Google-fu.

I would think it's a simple thing, but I would be wrong. All I want to do is graph the data from the following OID map:

Code: Select all

Oid Key                          Value                     Description                           Data Type    Access
1.3.6.1.2.1.1.1.0                STE2                      System Description                    string       RO
1.3.6.1.2.1.1.2.0                1.3.6.1.4.1.21796.4.9.    System ObjectID                       objid        RO
1.3.6.1.2.1.1.3.0                40573400                  System UpTime                         timeticks    RO
1.3.6.1.2.1.1.4.0                Yours Truly               System Contact                        string       RO
1.3.6.1.2.1.1.5.0                TEMP-SENSOR1              System Name                           string       RO
1.3.6.1.2.1.1.6.0                Cooling Room              System Location                       string       RO
1.3.6.1.2.1.1.7.0                72                        System Services                       integer      RO
1.3.6.1.4.1.21796.4.9.1.1.1.1    1                         1. Input Index                        integer      RO
1.3.6.1.4.1.21796.4.9.1.1.1.2    2                         2. Input Index                        integer      RO
1.3.6.1.4.1.21796.4.9.1.1.2.1    0                         1. Input Value, 0=Open, 1=Close       integer      RO
1.3.6.1.4.1.21796.4.9.1.1.2.2    0                         2. Input Value, 0=Open, 1=Close       integer      RO
1.3.6.1.4.1.21796.4.9.1.1.3.1    Input 1                   1. Input Name                         string       RO
1.3.6.1.4.1.21796.4.9.1.1.3.2    Input 2                   2. Input Name                         string       RO
1.3.6.1.4.1.21796.4.9.1.1.4.1    0                         1. Input State, 0=Normal, 1=Alarm     integer      RO
1.3.6.1.4.1.21796.4.9.1.1.4.2    0                         2. Input State, 0=Normal, 1=Alarm     integer      RO
1.3.6.1.4.1.21796.4.9.3.1.1.1    23264                     1. Sensor Index                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.1.2    58455                     2. Sensor Index                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.2.1    REFRIGERATOR              1. Sensor Name                        string       RO
1.3.6.1.4.1.21796.4.9.3.1.2.2    FREEZER                   2. Sensor Name                        string       RO
1.3.6.1.4.1.21796.4.9.3.1.3.1    5                         1. Sensor State                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.3.2    1                         2. Sensor State                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.4.1    46.5                      1. Sensor String Value                string       RO
1.3.6.1.4.1.21796.4.9.3.1.4.2    -2.7                      2. Sensor String Value                string       RO
1.3.6.1.4.1.21796.4.9.3.1.5.1    465                       1. Sensor Value                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.5.2    -27                       2. Sensor Value                       integer      RO
1.3.6.1.4.1.21796.4.9.3.1.6.1    0867530908675309          1. Sensor SN                          string       RO
1.3.6.1.4.1.21796.4.9.3.1.6.2    9035768090357680          2. Sensor SN                          string       RO
1.3.6.1.4.1.21796.4.9.3.1.7.1    2                         1. Sensor Unit, 1=C, 2=F, 3=K, 4=%    integer      RO
1.3.6.1.4.1.21796.4.9.3.1.7.2    2                         2. Sensor Unit, 1=C, 2=F, 3=K, 4=%    integer      RO
1.3.6.1.4.1.21796.4.9.3.1.8.1    23264                     1. Sensor ID                          integer      RO
1.3.6.1.4.1.21796.4.9.3.1.8.2    58455                     2. Sensor ID                          integer      RO
1.3.6.1.4.1.21796.4.9.70.1.0     00:DE:AD:BE:EF:00         System MAC address                    string       RO
In particular, I'm trying to specifically graph the values represented by the strings in 1.3.6.1.4.1.21796.4.9.3.1.4.1 and 1.3.6.1.4.1.21796.4.9.3.1.4.2. Alternatively, I'd be happy to graph the values in 1.3.6.1.4.1.21796.4.9.3.1.5.1 and 1.3.6.1.4.1.21796.4.9.3.1.5.2 if I can divide them by 10.

In either case, I am feeling completely clueless. Can somebody help me figure out or provide me with a step-by-step "how to" so I can accomplish my task, assuming I'm starting with a brand-spanking new Cacti installation?

jxn
Posts: 2
Joined: Sat Sep 23, 2017 3:04 am

Re: Graphing temperature sensors

#2 Post by jxn » Sat Sep 23, 2017 3:05 pm

I have a similar temperature sensing controller that I wish to monitor - were you able to compose a template?

Would be very interested on what you did. ;)

Thanks,

Joe

JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Graphing temperature sensors

#3 Post by JJX » Sun Sep 24, 2017 3:36 am

If you have only one device, create a SNMP graph using the IOD you want.
cacti rulez!

jxn
Posts: 2
Joined: Sat Sep 23, 2017 3:04 am

Re: Graphing temperature sensors

#4 Post by jxn » Sun Sep 24, 2017 9:33 pm

Thanks, but I am looking to create a template so that we can monitor several devices of this type.

The devices have several ports (temperature, voltage, etc.) and I would like to select which port data to graph and have the graphs auto-scale, show a legend, etc. I would also like the option to select multiple ports to be graphed in one graph. ;)

The MIB is pretty straight forward, but I am a new at Cacti and existing templates I have looked at are intimidating... :(

Number of ports <n>: 1 through 128
Description of each port for graph legend: SNMPv2-SMI::enterprises.11476.5.1.1.2.<n> = STRING: "xxxx"
Value for port: SNMPv2-SMI::enterprises.11476.5.1.1.3.<n> = INTEGER: <value>

Any advice appreciated.

Thanks,

Joe

Post Reply