Merge branch 'master' of github.com:thecamels/zabbix
This commit is contained in:
commit
22b7331299
@ -200,6 +200,10 @@ Dell Open Manage System Status
|
|||||||
|
|
||||||
You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /opt/dell/srvadmin/bin/omreport```
|
You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /opt/dell/srvadmin/bin/omreport```
|
||||||
|
|
||||||
|
Template App S.M.A.R.T.
|
||||||
|
======
|
||||||
|
Monitoring for S.M.A.R.T. enabled storage devices (HDD's, SSD's and other). Uses discovery script to populate disks. INFO: For non present S.M.A.R.T. values disable items on per-host level.
|
||||||
|
|
||||||
Template App PowerPath
|
Template App PowerPath
|
||||||
======
|
======
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
19
bin/hdd_discovery.sh
Normal file
19
bin/hdd_discovery.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Script for HDD discovery
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
disks=`ls -l /dev/sd* | awk '{print $NF}' | sed 's/[0-9]//g' | uniq`
|
||||||
|
echo -n "{\"data\":["
|
||||||
|
|
||||||
|
comma=1
|
||||||
|
for disk in $disks
|
||||||
|
do
|
||||||
|
if [ $comma -eq 0 ]; then
|
||||||
|
echo -n ","
|
||||||
|
fi
|
||||||
|
comma=0
|
||||||
|
echo -n "{\"{#DISKNAME}\":\"$disk\",\"{#SHORTDISKNAME}\":\"${disk:5}\"}"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -n "]}"
|
1664
templates/Template App S.M.A.R.T.xml
Normal file
1664
templates/Template App S.M.A.R.T.xml
Normal file
File diff suppressed because it is too large
Load Diff
2
zabbix_agentd.conf.d/smart.conf
Normal file
2
zabbix_agentd.conf.d/smart.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
UserParameter=hdd.smart[*],sudo smartctl -A $1 | grep $2 | awk '{print $$10}' | tail -1
|
||||||
|
UserParameter=hdd_discovery, /etc/zabbix/bin/hdd_discovery.sh
|
Loading…
Reference in New Issue
Block a user