mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
5.2 KiB
5.2 KiB
source: Support/SNMP-Configuration-Examples.md
SNMP configuration examples
Table of Content:
Devices
Cisco
Adaptive Security Appliance (ASA)
- Launch ASDM and connect to your device
- Go to Configuration > Management Access > SNMP
- Add your community string
- Add in the "SNMP Host Access List" section your LibreNMS server IP address
- Click Apply and Save
IOS / IOS XE / NX-OS
snmp-server community YOUR-COMMUNITY RO
snmp-server contact YOUR-CONTACT
snmp-server location YOUR-LOCATION
Wireless LAN Controller (WLC)
- Access the web admin page and log in
- If you are running version 8.1 and later, on the new dashboard click "Advanced"
- Go to management Tab
- On SNMP sub-menu, select "Communities"
- Click "New..."
- Add your community name and leave IP addresses empty
- Click Apply and Save
HPE 3PAR
Inform OS 3.2.x
- Access the CLI
- Add an SNMP Manager with your LibreNMS IP address:
addsnmpmgr <librenms ip>
- Add your SNMP community:
setsnmppw <community>
Infoblox
NIOS 7.x
- Access the web admin page and log in
- Go to Grid tab > Grid Manager
- In the right menu select "Grid properties"
- Select "SNMP" menu
- Click "Enable SNMPv1/SNMPv2 Queries"
- Add your community
- Click Save & Close
Juniper
Junos OS
set snmp description description
set snmp location location
set snmp contact contact
set snmp community YOUR-COMMUNITY authorization read-only
Mikrotik
RouterOS 6.x
#Terminal SNMP v2 Configuration
/snmp community
set [ find default=yes ] read-access=no
add addresses=<SRC IP/NETWORK> name=<COMMUNITY>
/snmp
set contact="<NAME>" enabled=yes engine-id=<ENGINE ID> location="<LOCALTION>"
Palo Alto
PANOS 6.x/7.x
- Access the web admin page and log in
- Go to Device tab > Setup
- Go to the sub-tab "Operations"
- Click "SNMP Setup"
- Enter your SNMP community and then click "OK"
- Click Apply
Note that you need to allow SNMP on the needed interfaces. To do that you need to create a network "Interface Mgmt" profile for standard interface and allow SNMP under "Device > Management > Management Interface Settings" for out of band management interface.
Operating systems
Linux (snmpd)
Replace your snmpd.conf file by the example below and edit it with appropriate community in "RANDOMSTRINGGOESHERE".
vi /etc/snmp/snmpd.conf
# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
com2sec readonly default RANDOMSTRINGGOESHERE
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Rack, Room, Building, City, Country [GPSX,Y]
syscontact Your Name <your@email.address>
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
The LibreNMS server include a copy of this example here:
/opt/librenms/snmpd.conf.example
The binary /usr/bin/distro must be copied from the original source repository:
curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
chmod +x /usr/bin/distro
Restart the snmpd service:
CentOS 6 / Red hat 6
service snmpd restart
CentOS 7 / Red hat 7
systemctl restart snmpd
Ubuntu
service snmpd restart
Windows Server 2008 R2
- Log in to your Windows Server 2008 R2
- Start "Server Manager" under "Administrative Tools"
- Click "Features" and then click "Add Feature"
- Check (if not checked) "SNMP Service", click "Next" until "Install"
- Start "Services" under "Administrative Tools"
- Edit "SNMP Service" properties
- Go to the security tab
- In "Accepted community name" click "Add" to add your community string and permission
- In "Accept SNMP packets from these hosts" click "Add" and add your LibreNMS server IP address
- Validate change by clicking "Apply"
Windows Server 2012 R2
- Log in to your Windows Server 2012 R2
- Start "Server Manager" under "Administrative Tools"
- Click "Manage" and then "Add Roles and Features"
- Continue by pressing "Next" to the "Features" menu
- Install (if not installed) "SNMP Service"
- Start "Services" under "Administrative Tools"
- Edit "SNMP Service" properties
- Go to the security tab
- In "Accepted community name" click "Add" to add your community string and permission
- In "Accept SNMP packets from these hosts" click "Add" and add your LibreNMS server IP address
- Validate change by clicking "Apply"