Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Configuration example

&pagelevel(4)&pagelevel
## Master behavior ##
# listen for all incoming IPv4 connections on UDP port 161
# listen for all incoming IPv6 connections on UDP port 163
agentAddress   udp:161,udp6::163
# enable AgentX master on agentXSocket
master        agentx
# it is better to use TCP/IP socket for agentx communication
# if notifications are expected.
agentXSocket   tcp:127.0.0.1:705
## Access control ##
# IPv4 connections #
# grant read-write perms on all OIDs from given IP with given community
rwcommunity snmpPriv 172.17.66.202
# grant read-only perms on system group (OID) only from all IPs with given 
community
rocommunity snmpPublic default system
# IPv6 connections #
# grant read-write perms on all OIDs from all IPs with given community
rwcommunity6 snmpIPv6
# All connections #
# grant read-only perms on all OIDs from all IPs with given user
createUser  snmpdInternalUser MD5 "password"
rouser      snmpdInternalUser
## System Information ##
sysName     AU1.BS2
sysLocation Augsburg Limited
sysContact  admin@abg.com
## Active Monitoring ##
# send traps to the IP address with community name
trap2sink   tcp:172.17.66.202:162 publicTraps
# Event Services Configuration #
## don’t forget to configure traps, as without them some part of event 
services
## are pointless
# set up credentials
iquerySecName snmpdInternalUser
# This defines the traps to be sent (using notificationEvent), and explicitly 
references# the relevant notification in the corresponding monitor entry :
notificationEvent  linkUpTrap    linkUp   ifIndex ifAdminStatus ifOperStatus
notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus ifOperStatus
monitor  -r 60 -e linkUpTrap   "Generate linkUp"   ifOperStatus != 2
monitor  -r 60 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
# Schedule Services Configuration #
# reload configuration once an hour, using:
repeat 3600 versionUpdateConfig.0 = 1
# reload configuration on the gicen our each day:
cron 10 0 * * * versionUpdateConfig.0 = 1
If you would like to use some other AgentX socket than tcp:127.0.0.1:705 or /var/agentx/master it is better to specify it not in the snmpd.conf, but in the agentx.conf (created in the /etc/snmp), so all other agent will configure themselves right. As snmpd.conf is accessible only by master, while agentx.conf is accessible by master (snmpd) and agents.