Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Alerting

    Description

      When I set up a temperature checker it successfully associates to devices but it never sends out the check.

      As you can see in the picture, no devices get checked and they are all gray.

      I'm sure I set it up correctly, I "googled" and did my research, but it still doesn't work.

      Attachments

        1. temp-alert.JPG
          temp-alert.JPG
          11 kB
        2. temp-alert2.JPG
          temp-alert2.JPG
          66 kB

        Activity

          [OBS-983] Temperature checker not checking

          sub entities are gone

          adama Adam Armstrong added a comment - sub entities are gone

          Benoit,
          The workaround works for me. Require all of these conditions:

          sensor_class eq temperature
          sensor_value gt 50

          moorereason Cameron Moore added a comment - Benoit, The workaround works for me. Require all of these conditions: sensor_class eq temperature sensor_value gt 50

          This can't not work. I know what the bug is, doing it as a Sensor will not hit this bug.

          adama Adam Armstrong added a comment - This can't not work. I know what the bug is, doing it as a Sensor will not hit this bug.

          ^^^ This still doesn't work for me.

          benoitglamb Benoit Lambert added a comment - ^^^ This still doesn't work for me.

          I noticed the bug too, and thought it might be this.

          For the time being, create alerts as "sensor" type with "sensor_class = temperature".

          The other "sensor" types will be removed in future and replaced with subtypes.

          adama Adam Armstrong added a comment - I noticed the bug too, and thought it might be this. For the time being, create alerts as "sensor" type with "sensor_class = temperature". The other "sensor" types will be removed in future and replaced with subtypes.

          This looks like a bug.

          At includes/alerts.inc.php line 35 (for r5753), the foreach is looking for $alert_table entries using $type which equals "sensor". The problem is that the $alert_table has entries of type "temperature" so the foreach loop doesn't apply the alert checker.

          This is the first time I've looked at the alerts code, so I'm not sure what the best fix would be. You could potentially replace $type in line 35 with $entity['sensor_class'] but I don't know if that would break the other sensor types.

          moorereason Cameron Moore added a comment - This looks like a bug. At includes/alerts.inc.php line 35 (for r5753), the foreach is looking for $alert_table entries using $type which equals "sensor". The problem is that the $alert_table has entries of type "temperature" so the foreach loop doesn't apply the alert checker. This is the first time I've looked at the alerts code, so I'm not sure what the best fix would be. You could potentially replace $type in line 35 with $entity ['sensor_class'] but I don't know if that would break the other sensor types.

          I also tried adding it directly from MySQL CLI. Still no dice.

          benoitglamb Benoit Lambert added a comment - I also tried adding it directly from MySQL CLI. Still no dice.

          I also tried following this (http://postman.memetic.org/pipermail/observium/2014-April/006145.html) and appended "sensor_class is temperature" to entity match, still nothing.

          benoitglamb Benoit Lambert added a comment - I also tried following this ( http://postman.memetic.org/pipermail/observium/2014-April/006145.html ) and appended "sensor_class is temperature" to entity match, still nothing.

          Yes.

          benoitglamb Benoit Lambert added a comment - Yes.

          Did you click Regenerate on the checker details page?

          moorereason Cameron Moore added a comment - Did you click Regenerate on the checker details page?

          People

            adama Adam Armstrong
            benoitglamb Benoit Lambert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: