Ad Widget

Collapse

smart.disk.test return false while test is processing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hexbug
    Junior Member
    • Nov 2024
    • 6

    #1

    smart.disk.test return false while test is processing

    Hey, guys. I set up smartd for doing short test every 6h. When the test is under going, smart.disk.test will return false and trigger a trigger.
    This is very frustrating, any good idea to solve this?
  • hexbug
    Junior Member
    • Nov 2024
    • 6

    #2
    I've found the cause of this problem.
    First is a normal output from smartctl -j :
    Code:
        "self_test": {
          "status": {
            "value": 0,
            "string": "completed without error",
            "passed": true
          },
    Second is an ouput from smartctl -j when a test is under going:
    Code:
        "self_test": {
          "status": {
            "value": 249,
            "string": "in progress, 90% remaining",
            "remaining_percent": 90
          },​
    Since the "passed" member is missing here, the result from zabbix agent become false.

    Comment


    • hexbug
      hexbug commented
      Editing a comment
      Suggest: return the "value" member instead of "passed" member.
  • PavelZ
    Senior Member
    • Dec 2024
    • 162

    #3
    This is a known issue https://support.zabbix.com/projects/...sues/ZBX-22770

    Note that you can simply run the wrapper script. It's in the comments.

    Comment


    • hexbug
      hexbug commented
      Editing a comment
      Thanks. It has been a year and a half,still unresolved. Why they don't fix this?
Working...