Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4459

Can't make an alert checker to match input voltage in an APC UPS

Details

    • Help
    • Resolution: Unresolved
    • Trivial
    • None
    • Enterprise Edition
    • Alerting

    Description

      My goal is to get the input voltage and know when the AC input is off.

      I have an alert checker that matches with others UPS using "sensor description">match>"input" but with this APC UPS in particular, it doesn't work. Looking into the voltage graph found this:

      Which is different from the other UPS:

      I tried to match "Sensor Text OID" (PowerNet-MIB::[upsHighPrecInputLineVoltage|https://mibs.observium.org/mib/PowerNet-MIB/#upsHighPrecInputLineVoltage].0), "Sensor Numerical OID" (.1.3.6.1.4.1.318.1.1.1.3.3.1.0) and "Sensor MIB" whit both values without luck.

      If I run the smptget with that OID, i get the right value:

      observium@nms:~$ snmpget -v2c -c xxxx ups-apc.dc.xxxxx .1.3.6.1.4.1.318.1.1.1.3.3.1.0
      iso.3.6.1.4.1.318.1.1.1.3.3.1.0 = Gauge32: 2227

      Also I tried to make an Custom OID alert checker instead of Sensor, and it also dowsn't work.

       

      Any ideas? Thanks in advance!

      Attachments

        Activity

          [OBS-4459] Can't make an alert checker to match input voltage in an APC UPS

          I couldn't update to the last version yet...

          I don't have experience programming using SNMP, but what I can see is that there are different MIBs (UPS_MIB and PowerNet-MIB) and maybe the sensor class "Voltage" selected is not matching with the second. Just guessing, I haven't read the code...

           

          mcomba Matias Comba added a comment - I couldn't update to the last version yet... I don't have experience programming using SNMP, but what I can see is that there are different MIBs (UPS_MIB and PowerNet-MIB) and maybe the sensor class "Voltage" selected is not matching with the second. Just guessing, I haven't read the code...  
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          mcomba Matias Comba made changes -
          Attachment New: image-2023-04-05-12-39-50-350.png [ 20617 ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          currently no ideas, I can't reproduce trouble.
          on my dev installs all works as expected.

          Please show screenshot of about page.

          landy Mike Stupalov added a comment - currently no ideas, I can't reproduce trouble. on my dev installs all works as expected. Please show screenshot of about page.
          landy Mike Stupalov made changes -
          Attachment Original: myagent.snmpwalk [ 20594 ]

          Thanks Mike, I saw that it was autogenerated but I thought it wouldn't hurt to provide that information. This is the checker that works with other UPS but no with the APC UPS.

          mcomba Matias Comba added a comment - Thanks Mike, I saw that it was autogenerated but I thought it wouldn't hurt to provide that information. This is the checker that works with other UPS but no with the APC UPS.
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          mcomba Matias Comba made changes -
          Attachment New: image-2023-04-04-10-56-36-919.png [ 20615 ]
          landy Mike Stupalov made changes -
          Description Original: My goal is to get the input voltage and know when the AC input is off.

          I have an alert checker that matches with others UPS using "sensor description"->match->"input" but with this APC UPS in particular, it doesn't work. Looking into the voltage graph found this:

          !image-2023-03-27-17-12-17-559.png!

          Which is different from the other UPS:

          !image-2023-03-27-17-13-16-879.png!

          I tried to match "Sensor Text OID" ([PowerNet-MIB|https://mibs.observium.org/mib/PowerNet-MIB/]::[upsHighPrecInputLineVoltage|https://mibs.observium.org/mib/PowerNet-MIB/#upsHighPrecInputLineVoltage].0), "Sensor Numerical OID" (.1.3.6.1.4.1.318.1.1.1.3.3.1.0) and "Sensor MIB" whit both values without luck.

          If I run the smptget with that OID, i get the right value:

          {{observium@nms:~$ snmpget -v2c -c xxxx ups-apc.dc.xxxxx .1.3.6.1.4.1.318.1.1.1.3.3.1.0}}
          {{iso.3.6.1.4.1.318.1.1.1.3.3.1.0 = Gauge32: 2227}}

          Also I tried to make an Custom OID alert checker instead of Sensor, and it also dowsn't work.

           

          Any ideas? Thanks in advance!
          New: My goal is to get the input voltage and know when the AC input is off.

          I have an alert checker that matches with others UPS using {{"sensor description"->match->"input"}} but with this APC UPS in particular, it doesn't work. Looking into the voltage graph found this:

          !image-2023-03-27-17-12-17-559.png!

          Which is different from the other UPS:

          !image-2023-03-27-17-13-16-879.png!

          I tried to match "Sensor Text OID" ([PowerNet-MIB|https://mibs.observium.org/mib/PowerNet-MIB/]::[upsHighPrecInputLineVoltage|https://mibs.observium.org/mib/PowerNet-MIB/#upsHighPrecInputLineVoltage].0), "Sensor Numerical OID" (.1.3.6.1.4.1.318.1.1.1.3.3.1.0) and "Sensor MIB" whit both values without luck.

          If I run the smptget with that OID, i get the right value:

          {{observium@nms:~$ snmpget -v2c -c xxxx ups-apc.dc.xxxxx .1.3.6.1.4.1.318.1.1.1.3.3.1.0}}
          {{iso.3.6.1.4.1.318.1.1.1.3.3.1.0 = Gauge32: 2227}}

          Also I tried to make an Custom OID alert checker instead of Sensor, and it also dowsn't work.

           

          Any ideas? Thanks in advance!

          People

            adama Adam Armstrong
            mcomba Matias Comba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: