What does it do?
- Poll an SNMP capable device to retrieve system info
- NOTE: this first release (by default) checks disk status on a QNAP NAS. You can easily modify the script to pick up SNMP information from other devices.
For more details also check the .vb script itself
- Copy DJ_SNMP_xx.vb to your HomeSeer \scripts directory
- Copy xxxx DLL files (see first post on Domoticaforum or here) to the C:\ directory
- NOTE: you can also use a different directory, as long as you specify the correct directory in the next step
- NOTE: at the end I copied the files to C:\, the HS directory and the Windows system32 directory. I haven’t figured out where they can be removed but it’s working now.
- Modify the \HomeSeer 2\Config\settings.ini, adding the next content to the “ScriptingReferences=” line.
- if the DLL files are in C:\ you have to add:
- Modify the DJ_SNMP_xx.vb script parameters. (instructions in script)
- IP address of SNMP capable device
- public and private strings
- Functions that get values and write them to your log-file or HS device.
When entering SNMP numbers (like 126.96.36.199.188.8.131.52.1), please check if you are using the correct ID’s by running the MIB browser (see link below)
Find the right SNMP object numbers You can use a MIB browser. Example:
- (All platforms) iReasoning MIB Broswer (free version – good enough)
By connecting this app to a device it will show the default data that can be extracted from the device. To get specific data you have to load a MIB. Go to your Vendor website to get device-specific MIB files.
Enable SNMP Your device needs to support SNMP and it needs to be configured. Here’s some links on how to configure SNMP:
- SEV3: (DJ) Make it universal / GUI-driven / using .INI file?
The default script is configured to get information from a QNAP NAS
To get the NAS specific information you have to download the QNAP NAS MIB file. This MIB file can be downloaded from the SNMP configuration page (see screenshot)