MikroTik Router SNMP Configuration

First, you need to access the console of your MikroTik router. On the prompt screen, enter the administrative login information. Factory default access information:

  • Username: admin
  • Password: (No password)

After a successful login, the console command-line will be displayed. Use the following command to enable the SNMP service on the MikroTik router.
Copy to Clipboard

[admin@MikroTik] > snmp set enabled=yes

Use the following command to list the snmp communities available on the MikroTik router.

[admin@MikroTik] > snmp community print
Flags: * - default
# NAME ADDRESSES SECURITY READ-ACCESS
0 * public ::/0 none yes

As you can see, Mikrotik has a default SNMP community named PUBLIC.

The PUBLIC SNMP comminity has the ID number 0.

Use the following command to rename the PUBLIC snmp community. Continue reading “MikroTik Router SNMP Configuration” »

Share

PFSense SNMP Configuration

Open a browser software, enter the IP address of your Pfsense firewall and access web interface. In our example, the following URL was entered in the Browser:

https://192.168.15.11

The Pfsense web interface should be presented. After a successful login, you will be sent to the Pfsense Dashboard.

Access the Pfsense Services menu and select the SNMP option. Continue reading “PFSense SNMP Configuration” »

Share

Add SNMP to Windows Server- 2012

This step-by-step article describes how to configure the Simple Network Management Protocol (SNMP) Service in Windows Server 2012/2012R2. We will install SNMP service and configure SNMP security.

SNMP Service Installation

  1. Open Server Manager and then click Add Roles and Features.
  2. In Select Features, check the box next to SNMP Service.
  3. A dialog box appear to add all others required features, click Add Features.
  4. Click Next and then Install.
  5. SNMP Security Configuration
  6. Open Windows Services and locate service called SNMP Service then open service properties.
  7. Click on Security tab.In Accepted community names, click add to add the required community name and rights.
  8. Select Accept SNMP packets from these hosts option and then click Add to add Hostname, IP Address of the Monitoring Server.
  9. Click OK and then restart SNMP service.

You’re done.

Share

enable SNMP on Xen (XCP-NG) hypervisors

There are six steps to correctly configuring SNMP on your Citrix Xen hypervisor. These steps don’t require a system restart and are non-service affecting.

To start, we assume you’re running Xen v6.x or v7.x, and are logged into the Xen CLI as root.

1. Enable the SNMP daemon

Enable the snmpd daemon by typing-

chkconfig snmpd

2. Configure the SNMP service

Make a backup of the snmpd.conf file. The default snmpd.conf file contains a lot of useful documentation for more advanced implementations of SNMP.

# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.backup

Continue reading “enable SNMP on Xen (XCP-NG) hypervisors” »

Share

SNMP Client Configuration for Observvium

This can be placed in /etc/snmp/snmpd.conf and will provide the required parameters for Observium. This example use version 2c snmp auth.

Community string: Replace community_string with your unique community string.

# Listen for connections on all interfaces (both IPv4 *and* IPv6)

agentAddress udp:161,udp6:[::1]:161

# Full view access
view all included .1

# system + hrSystem groups only
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1

# Default access to full view
rocommunity community_string default -V all

# Default access to basic system info
#rocommunity public default -V systemonly

# System contact and location
syslocation Rack/Room/Building, Street, City, Country [GPSX,Y]
syscontact Contact Person <your@email.address>

# Disk Monitoring
disk / 10000
disk /var 5%
includeAllDisks 10%

# Unacceptable 1-, 5-, and 15-minute load averages
load 12 10 5

# This line allows Observium to detect the host OS if the distro script is installed
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/local/bin/distro

# This lines allows Observium to detect hardware, vendor and serial
extend .1.3.6.1.4.1.2021.7890.2 hardware /bin/cat /sys/devices/virtual/dmi/id/product_name
extend .1.3.6.1.4.1.2021.7890.3 vendor /bin/cat /sys/devices/virtual/dmi/id/sys_vendor
extend .1.3.6.1.4.1.2021.7890.4 serial /bin/cat /sys/devices/virtual/dmi/id/product_serial

# This line allows Observium to collect an accurate uptime
extend uptime /bin/cat /proc/uptime

# This line enables Observium's ifAlias description injection
pass_persist .1.3.6.1.2.1.31.1.1.1.18 /usr/local/bin/ifAlias_persist

Continue reading “SNMP Client Configuration for Observvium” »

Share

Alllow SNMP on Openfiler

The first step to allow monitoring of the Openfiler server by SNMP is to edit the SNMP configuration file. In order to edit the configuration file perform the following steps :-

Logon to the Openfiler server through SSH as an administrative user
Navigate to the /etc/snmp folder
Edit the snmpd.conf file and append the following to the bottom of the file :- Continue reading “Alllow SNMP on Openfiler” »
Share