Today I will show you how you can monitor your Synology NAS (DSM 7.1) with Zabbix v6.2 over SNMPv3.
Note – These directions are for a setup on a local LAN (not over a WAN) and assume you have a working installation of Zabbix 6.2 running that has bi-drectional reach-ability to a Synology NAS running DSM v7.1
Phase 1 – Setup SNMPv3 on Zabbix server ->
1 – Update repositories and install libsnmp-dev
sudo apt-get update
sudo apt install libsnmp-dev
2 – stop snmpd demon
sudo service snmpd stop
3 – Create SNMPv3 user authPrivUser on Zabbix server
net-snmp-config --create-snmpv3-user -ro -a SHA -A "myauthphrase" -x AES -X "myprivphrase" authPrivUser
My Example:
sudo net-snmp-config --create-snmpv3-user -ro -a SHA -A "stringbean1" -x AES -X "stringbean2" authPrivUser
4 – Start snmpd service
sudo service snmpd start
Note – releveant conf files ->
/var/lib/snmp/snmpd.conf
/etc/snmp/snmpd.conf
Testing SNMPv3 user on Zabbix server with these commands ->
snmpget -v 3 -u authPrivUser -l AuthPriv -a SHA-512 -A myauthprhase -x AES -X myprivphrase 127.0.0.1 1.3.6.1.2.1.1.1.0
Test to actual host you want to monitor ->
snmpget -v 3 -u authPriveUser -l AuthPriv -a SHA-512 -A myauthprhase -x AES -X myprivphrase <client host ip> 1.3.6.1.2.1.1.1.0
Phase 2 – Configure SNMPv3 on Synology
1 – Navigate to control panel>search ‘snmp’ (terminal & snmp > SNMP)
2 – Check mark ‘enable SNMP service’
3 – Check mark ‘enable SNMPv3 service’
4 – Input username ‘authPriveUser’ (note – it is CASE SENSITIVE)
5 – Set protocol to ‘SHA’
6 – Set password (use whatever you set as ‘myauthphrase’ on Zabbix server)
6 – Check mark ‘enable SNMP privacy’
7 – Set protocol to ‘AES’
8 – Set password (use whatever you set as ‘myprivphrase’ on Zabbix server)
Phase 3 – Configure Zabbix host in Zabbix
1 – Download & install SNMPv3 zabbix template
(https://www.zabbix.com/integrations/synology)
2 – Create host in Zabbix
3 – For interfaces, click add>SNMP and change SNMP version to SNMPv3
4 – Change ‘security level’ to authPriv
5 – Set appropriate authentication protocol.
Note -‘authentication passphrase’ = ‘myauthprhase’ and ‘privacy passphrase’ = ‘myprivphrase’
Download template_synology_diskstation_snmpv3
Hey!
Why do you need to “sudo net-snmp-config –create-snmpv3-user” first?
I’m monitoring multiple devices via SNMP and all that’s necessary is defining the snmp interface for the monitored device in the zabbix frontend.
I actually came here searching for a solution to another problem – my DSM 7.1 doesn’t seem to respond to anything else than SHA-1, it fails with anything stronger. But your solution got me puzzled a bit, since I never created an snmp user to get things monitored before so I wonder why do that?
Thanks.
Sounds like you may be monitoring with SNMP but NOT with SNMPv3 which requires a username, protocol and password. Skip to 4:46 in the video and you can see by enabling ‘SNMPv3 service’ in DSM, those fields become available and are required.
Going over these steps, and thank you very much. I’m running into authentication errors. I’m still double checking everything, but just a heads up. Some places have ‘authPrivUser’ and other places ‘authPriveUser’.
Hi James,
You can create any username you want when enabling SNMPv3 in Synology. The “authPrivUser” is just an example or default value used in some documentation, but it is not a mandatory username. Just make sure that the username, along with the authentication and privacy protocols, match the settings you want for secure communication.
Hope that helps.
Cheers