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

hdarray Unix agent plugin not graphing results

Details

    Description

      The hdarray unix-agent script,rrd, or discovery is not working properly.
      The state in health/metric=state/ is showing as fail even when the Drive and controller status is Listed as 'Ok'

      When the graphs are generated the 'Value', 'High Limit' and 'Low Limit' are all zero even when the data provided by the unix agent varies between 0 and 1.

      Attachments

        1. agent debug.txt
          52 kB
        2. controller graphs.jpg
          controller graphs.jpg
          232 kB
        3. discovery.debug
          48 kB
        4. sensorstate.jpg
          sensorstate.jpg
          100 kB
        5. sensorstate2.jpg
          sensorstate2.jpg
          94 kB

        Issue Links

          Activity

            [OBS-1213] hdarray Unix agent plugin not graphing results

            Thanks,
            All working

            duncanatkin Duncan Atkin added a comment - Thanks, All working

            Status removed from description also in first commit.

            landy Mike Stupalov added a comment - Status removed from description also in first commit.

            The poller just ran again and is now reporting correct states apart from; Drive Controller PERC H310 Mini (Embedded),Drive ID & Drive List of Physical Disks on Controller PERC which are not elements that should be monitored like this anyway.

            Having the status in the description field of the sensor also is misleading

            duncanatkin Duncan Atkin added a comment - The poller just ran again and is now reporting correct states apart from; Drive Controller PERC H310 Mini (Embedded),Drive ID & Drive List of Physical Disks on Controller PERC which are not elements that should be monitored like this anyway. Having the status in the description field of the sensor also is misleading

            Ok, fixed regex and added check for non-critical state in r6301.
            But all other as I see, should work anyway without last commit..

            landy Mike Stupalov added a comment - Ok, fixed regex and added check for non-critical state in r6301. But all other as I see, should work anyway without last commit..

            I got the hdarray script that was provided in http://jira.observium.org/browse/OBSERVIUM-233

            duncanatkin Duncan Atkin added a comment - I got the hdarray script that was provided in http://jira.observium.org/browse/OBSERVIUM-233

            Debug attached for the server reporting non critical raid.

            The preg match in the polling file should probably be
            /^Drive/s/d/

            Result:
            Drive 0:1:0
            Drive 0:1:1

            rather than just
            /^Drive/

            Result:
            Drive 0:1:0
            Drive 0:1:1
            Drive Controller PERC H310 Mini (Embedded)
            Drive ID
            Drive List of Physical Disks on Controller PERC

            to filter out the static lists of drives but still support drives with locations in a larger array.

            duncanatkin Duncan Atkin added a comment - Debug attached for the server reporting non critical raid. The preg match in the polling file should probably be /^Drive/s/d/ Result: Drive 0:1:0 Drive 0:1:1 rather than just /^Drive/ Result: Drive 0:1:0 Drive 0:1:1 Drive Controller PERC H310 Mini (Embedded) Drive ID Drive List of Physical Disks on Controller PERC to filter out the static lists of drives but still support drives with locations in a larger array.

            Additional question, where you get hdarray script?

            landy Mike Stupalov added a comment - Additional question, where you get hdarray script?
            landy Mike Stupalov added a comment - - edited

            Seems as only for one device updated.. can make one more debug for device, where Non-Critical sensor name:

            ./poller.php -d -m unix-agent,sensors -h host_with_agent > /tmp/discovery.debug
            

            (pipe output to file pls)

            landy Mike Stupalov added a comment - - edited Seems as only for one device updated.. can make one more debug for device, where Non-Critical sensor name: ./poller.php -d -m unix-agent,sensors -h host_with_agent > /tmp/discovery.debug (pipe output to file pls)

            More showing as ok, but now the one that should show fail as it is 'non critical' shows as ok and another that is ok shows as fail.

            duncanatkin Duncan Atkin added a comment - More showing as ok, but now the one that should show fail as it is 'non critical' shows as ok and another that is ok shows as fail.

            Should be fixed in r6300.
            Check please.

            landy Mike Stupalov added a comment - Should be fixed in r6300. Check please.

            People

              landy Mike Stupalov
              duncanatkin Duncan Atkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: