From 461b35496213f1ce189a9f2ac7dc70539a6b0337 Mon Sep 17 00:00:00 2001 From: niki Date: Thu, 17 Oct 2019 11:20:27 +0500 Subject: [PATCH] Create README.md --- README.md | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9652af1 --- /dev/null +++ b/README.md @@ -0,0 +1,94 @@ +## Zabbix smartmonitor storage +- https://github.com/nikimaxim/zbx-smartmonitor.git + +### 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 +- https://builds.smartmontools.org/ + +#### Check correct versions PowerShell: (Execute in PowerShell!) (Requirements!) +- Get-Host|Select-Object Version + +#### Copy powershell script: +- **github**/smartctl-storage-discovery.ps1 in C:\service\zabbix_agent\smartctl-storage-discovery.ps1 + +#### Check powershell script(Out json): (CMD!) +- powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -File "C:\service\zabbix_agent\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 +- https://builds.smartmontools.org/ + +#### Copy bash script: +- **github**/smartctl-storage-discovery.sh in /opt/zabbix_s/smartctl-storage-discovery.sh + +#### Chmod and Chown +- chmod -R 750 /opt/zabbix_s/ +- chown -R root:zabbix /opt/zabbix_s/ + +#### Check bash script(Out json): +- /opt/zabbix_s/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_s/smartctl-storage-discovery.sh + +#### Import zabbix template: +- **github**/Template smartmonitor.xml + +
+ +#### Examples images: +- Graph: Temperature smartmonitor +![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/1.png) + +
+ +- Discovery rules + +
+ +![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/2.png) + +
+ +- Items prototypes + +
+ +![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/3.png) + +
+ +- Latest data + +
+ +![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/4.png) + +
+ +#### License +- GPL v3