Whenever a state changes occurs an any check on the SNMP Sender server it will send an SNMP Trap to the SNMP Receiving server.īelow are two screenshots showing what this tutorial will show you how to do. Here you can see the SNMP Sender server is monitoring a CentOS server using NRPE using active checks. The following diagram gives an overview of the test environment you will deploy. Using VM's allows us to use pre-installed Nagios XI templates and makes it relatively easy to follow this guide. You will need to be able to deploy a test environment using virtual machines (VM's). This document is intended for use by Nagios XI Administrators who wish to learn how SNMP Traps work. Just to be really clear, the SNMP Sender server is NOT required in your real world production environment, it is purely used as a training tool in this tutorial. In your real world production environment this could be a UPS, Storage Array or any other SNMP Trap sending device. NOTE: The SNMP Sender server is purely used to provide the functionality of sending Traps to Nagios XI SNMP Receiving server, specifically for this tutorial. Here you will receive status updates of the CentOS server being monitored on the sender server.Īfter following this document and deploying the test environment you will have a solid understanding of how SNMP Traps work and will be able to easily configure SNMP Traps received from real devices.
The goal of this tutorial is to provide step by step instructions to allow you to setup an test environment and see first hand how traps work. Traps can be overwhelming to start with and the difficulty starts when you're trying to learn following other guides that aren't specifically about the device you're receiving traps from. This document is purely focused on SNMP Traps. Passive = The SNMP enabled device sends “Traps” to the Nagios XI server.Active = The Nagios XI server initiates the connection to the SNMP enabled device to retrieve information.Devices that have SNMP functionality can provide active and passive monitoring. SNMP means Simple Network Management Protocol. Set the SNMP v1 Read-Only Community String as 'public' by adding the line below to the configuration file ( /etc/snmp/snmpd.This document describes how SNMP Traps work and integrate with Nagios XI.Systemctl enable snmpd & systemctl start snmpd Set the SNMP v1 Read-Only Community String as 'public' by adding the line below to the configuration file (/etc/snmp/nf):.Configuration fileĬp /usr/local/share/snmp/ /usr/local/etc/nfĮdit the /etc/rc.conf file and add the following lines:
The FreeBSD operating system offers Ports Collection as a simple way to install SNMP applications.Ĭlick OK on the next screen and wait for the installation to complete. For the same reason mentioned above, uncomment the line:Įxecute the following commands to allow necessary ports:.#agentAddress udp is the IP address from which SNMP requests will be accepted by the server.Set the SNMP v1 Read-Only Community String as 'public' by adding the line:.Simply install and configure SNMP agents on your servers, install an On-Premise Poller, and your server for monitoring. Monitor your Linux servers agentless, with the support of SNMP. Configuring SNMP Agents on different Linux Servers