Skip to content

Snell-Descartes/zbx-smartmonitor

 
 

Repository files navigation

Zabbix smartmonitor storage

Windows Install

Requirements:

  • OS: Windows 7, 2008R2 and later
  • PowerShell: 5.1 and later
  • Zabbix-agent: 4.0 and later
  • Smartmontools: 7.1 and later

Get utils smartmontools

Check correct versions PowerShell: (Execute in PowerShell!) (Requirements!)

  • Get-Host|Select-Object Version

Copy powershell script:

  • github/smartctl-storage-discovery.ps1 in C:\service\smartctl-storage-discovery.ps1

Check powershell script(Out json): (CMD!)

  • powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\smartctl-storage-discovery.ps1"

Add from zabbix_agentd.conf "UserParameter" in zabbix_agentd.conf:

  • github/zabbix_agentd.conf

Import zabbix template:

  • github/Template smartmonitor.xml

Linux Install

Requirements:

  • OS: RedHat family
  • Zabbix-agent: 4.0 and later
  • Smartmontools: 7.1 and later

Get utils smartmontools

Copy bash script:

  • github/smartctl-storage-discovery.sh in /opt/zabbix/smartctl-storage-discovery.sh

Chmod and Chown

  • chmod -R 750 /opt/zabbix/
  • chown -R root:zabbix /opt/zabbix/

Check bash script(Out json):

  • /opt/zabbix/smartctl-storage-discovery.sh

Add from zabbix_agentd.conf "UserParameter" in zabbix_agentd.conf:

  • github/zabbix_agentd.conf

Add in /etc/sudoers

  • Defaults:zabbix !requiretty
  • zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl
  • zabbix ALL=(root) NOPASSWD: /opt/zabbix/smartctl-storage-discovery.sh

Import zabbix template:

  • github/Template smartmonitor.xml

Examples images:

  • Graph: Temperature smartmonitor Image alt

  • Discovery rules

Image alt


  • Items prototypes

Image alt


  • Latest data

Image alt


License

  • GPL v3

About

Zabbix smartmontools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 52.5%
  • Shell 47.5%