v-zhuravlev / zbx-smartctl

Templates and scripts for monitoring disks health with Zabbix and smartmontools
https://share.zabbix.com/storage-devices/smartmontools/smart-monitoring-with-smartmontools-lld
GNU General Public License v3.0
245 stars 127 forks source link

MegaRaid controller match AND requretty #35

Closed jesset closed 7 years ago

v-zhuravlev commented 7 years ago

Hi, can you provide small description what did you change?

jesset commented 7 years ago

OK

For short,

  1. Match MegaRAID device properly (such as "-d sat+megaraid,0", there is a "+")
  2. requiretty cause execution failed when fetching from agent

Git log:

commit e4638f31320cb4d3da62a2590565cc1ffc6915b1 Author: Tian Congxin tiancongxin@gmail.com Date: Wed Jul 19 18:34:58 2017 +0800

requiretty error

commit d7daf779198ed8877e7dd537069840d9aa26a265 Author: Tian Congxin tiancongxin@gmail.com Date: Wed Jul 19 18:28:53 2017 +0800

Match MegaRAID device

03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS-3 3108 [Invader] (rev 02)

/dev/bus/0 -d sat+megaraid,0 # /dev/bus/0 [megaraid_disk_00] [SAT], ATA device
/dev/bus/0 -d sat+megaraid,1 # /dev/bus/0 [megaraid_disk_01] [SAT], ATA device

On 19 Jul 2017, at 19:46, Vitaly Zhuravlev notifications@github.com wrote:

Hi, can you provide small description what did you change?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/v-zhuravlev/zbx-smartctl/pull/35#issuecomment-316360178, or mute the thread https://github.com/notifications/unsubscribe-auth/AADcmmla7LBTwkr2IO7BcCDnHfyax4Bfks5sPeyYgaJpZM4Oci7J.

v-zhuravlev commented 7 years ago

Thanks