Skip to content

gfvh/smartctlmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartctl smartmontools snmp monitoring solution

Whats new:

Forked sh scripts from mad-hacking site

Adjusted scripts and snmp mibs files

Structure:

smartctlmon

-> snmp/ -> etc lib mibs sbin var

Files:

snmp/etc/ snmpd-smartctl-connector snmpd.conf < extend pass with OID to script callout

snmp/lib/
hk-bash.sh < bourne shell functions script snmpd-connector-lib.sh < connector

snmp/sbin/ snmpd-smartctl-connector update-smartctl-cache

snmp/mibs/ SMARTCTL-MIB.txt < MIB definations SMARTCTL-PLUS-MIB.txt < MIB def.

zabbix_templates/ Template_Supermicro_Superdoctor5_SNMP_LLD.xml < custom zabbix template what has also superdoctor5 other functions

Template_Smartmontools_SNMP.xml < single file for disk status only

Supermicro_OS_standard_plus_HW.xml < main template file what links templates together

Bundled mibs and sh: smartctlmon.tar (does not include zabbix template files).

Installing:

Depending on OS smartmontools is needed as well.

  1. Copy dir/files to /opt/smartctlmon/
  2. Enable SNMPD conf. Look at file example
  3. Run first time script update-smartctl-cache and add it to crontab 10 minutes interval
  4. For zabbix import template files
import order should be: Template_Supermicro_Superdoctor5_SNMP_LLD.xml -> then Template_Smartmontools_SNMP.xml -> Supermicro_OS_standard_plus_HW.xml

To get superdoctor5 mon functions you need to install it from supermicro site separately

Tests:

snmptranslate -Tp SMARTCTL-MIB::smartCtlTable snmpwalk -c "replacewithcommunityname" -v2c localhost .1.3.6.1.4.1.38696.2.1

About

smartctl smartmontools snmp monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages