Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikimaxim authored Oct 17, 2019
1 parent d86b7e3 commit 461b354
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions README.md
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

0 comments on commit 461b354

Please sign in to comment.