24 lines
826 B
Markdown
24 lines
826 B
Markdown
### Gather data from SMART for zabbix.
|
|
|
|
- Supported OS: Linux
|
|
- Both a Bash and a Powershell version is available.
|
|
- Requires Bash 4 or Linux .NETCore Powershell 3.x
|
|
|
|
To use add the ...-template.xml to the host in Zabbix.
|
|
Available devices then will be auto-detected and created
|
|
in Zabbix when the scripts are run in discovery mode.
|
|
|
|
This script skips USB-Devices to prevent external backup disks
|
|
from waking up all over the day.
|
|
To include those USB-drives add the parameter:
|
|
- Bash-version: `--smart-with-external`
|
|
- Powershell-version: `-smart-with-external $true`
|
|
|
|
|
|
Sample crontab entry
|
|
```
|
|
*/15 * * * * root /opt/scripts/zabbix-support.bash 2>&1 > /dev/null
|
|
6 */1 * * * root /opt/scripts/zabbix-support.bash --disco 2>&1 > /dev/null
|
|
```
|
|
|
|
Also see the [Blogartice](https://blog.mh3000.net/viewer/1i1n1CWtsGc) |