Objective. Students will install a monitoring agent on a Linux server, configure SNMP v2c or v3 on a managed switch, and confirm that both devices appear as monitored hosts returning live metric data in the class monitoring server within the lab session.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
A data center that cannot see itself is a liability. Monitoring agents and the Simple Network Management Protocol (SNMP) are the two most common methods for collecting live metric data from servers and network devices. Together they feed a monitoring platform — such as Zabbix or Nagios Core — that alerts engineers before a failure becomes an outage. CompTIA Server+ and the CNet CDCTP both expect technicians to understand and implement these tools.
A monitoring agent is a small service installed directly on a managed host. It runs in the background, collects metrics (CPU load, memory usage, disk I/O, running processes, log entries), and either pushes that data to the monitoring server or waits for the server to poll it — depending on the agent's configuration mode.
The Zabbix agent is a widely used open-source example. After installation on a Linux server, you edit its configuration file (typically `/etc/zabbix/zabbix_agentd.conf`) to set at minimum:
After saving the file, restart the service (`sudo systemctl restart zabbix-agent`) and open port 10050/TCP on any host firewall so the server can reach the agent. Within a few minutes the host should appear with a green Available indicator on the dashboard.
SNMP (Simple Network Management Protocol) is the industry-standard protocol for monitoring network devices — switches, routers, UPS units, and PDUs — that cannot run a full agent. The monitoring server sends GET requests to the device's SNMP agent; the device replies with values stored in its Management Information Base (MIB).
SNMPv2c uses a plaintext community string (think of it as a shared password) to authenticate. It is simple to configure but transmits credentials in cleartext, making it unsuitable on untrusted networks.
SNMPv3 adds authentication (using HMAC-MD5 or HMAC-SHA) and optional privacy encryption (DES or AES). For any production or security-conscious environment, SNMPv3 is the correct choice. You create a named user, assign an authentication passphrase, and assign a privacy passphrase; the monitoring server must use matching credentials.
On a managed switch, a typical SNMPv2c configuration (syntax varies by vendor) involves:
1. Enabling the SNMP service globally.
2. Setting the read-only community string (for example, `public` in a lab — never in production).
3. Optionally restricting which management IP addresses can query the device (an access control list).
For SNMPv3, you additionally define an SNMP group, security level (`authPriv` for both authentication and encryption), and the user credentials.
You can test SNMP from a Linux workstation with the `snmpwalk` or `snmpget` commands from the `snmp-utils` package. A successful walk returns MIB object values; a timeout or error means the community string, IP, or UDP port 161 is misconfigured.
Collecting data is only half the job. A trigger defines a condition that, when true, generates an alert. Good triggers are specific and time-bounded to avoid alert fatigue. In Zabbix, a trigger expression references an item (the metric being collected) and applies a function and threshold. For example:
The five-minute window on the CPU trigger prevents false alarms during legitimate short bursts. Always choose severity levels (Warning, Average, High, Disaster) that reflect real operational impact.
To verify a trigger fires correctly, use the Linux stress package (`sudo apt install stress`) to load the VM: `stress --cpu 4 --timeout 360` will peg CPU for six minutes, which is long enough to cross the five-minute evaluation window. Watch the monitoring dashboard for the problem to appear and confirm that the configured notification action delivers an alert.
Even in a lab, treat credentials carefully:
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.