-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
<br/> | ||
|
||
### 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 | ||
|
||
<br/> | ||
|
||
#### Examples images: | ||
- Graph: Temperature smartmonitor | ||
![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/1.png) | ||
|
||
<br/> | ||
|
||
- Discovery rules | ||
|
||
<br/> | ||
|
||
![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/2.png) | ||
|
||
<br/> | ||
|
||
- Items prototypes | ||
|
||
<br/> | ||
|
||
![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/3.png) | ||
|
||
<br/> | ||
|
||
- Latest data | ||
|
||
<br/> | ||
|
||
![Image alt](https://github.com/nikimaxim/zbx-smartmonitor/blob/master/img/4.png) | ||
|
||
<br/> | ||
|
||
#### License | ||
- GPL v3 |