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

Update smartctl-disks-discovery.ps1 #155

Closed satanklaus closed 3 years ago

satanklaus commented 3 years ago

smartctl (release 7.1) outputs extra empty string after useful data, which results in powershell error (InvalidOperation: (IndexOf:String) [], RuntimeException FullyQualifiedErrorId : InvokeMethodOnNull)) add null string check

v-zhuravlev commented 3 years ago

Thanks