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...  

          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.

          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.

          This is was auto generated message, walk not required.

          Anyway, please show your alert checker (screenshot).

          landy Mike Stupalov added a comment - This is was auto generated message, walk not required. Anyway, please show your alert checker (screenshot).

          I've uploaded the requested snmpwalk

          mcomba Matias Comba added a comment - I've uploaded the requested snmpwalk

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

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

            Dates

              Created:
              Updated: