CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator has configured the Net-SNMP agent on a web server to watch the Apache process with the line below in /etc/snmp/snmpd.conf:

monitor -r 15 -o hrSWRunName "Apache stopped" proc httpd 1 1

The goal is for the enterprise monitoring platform at 192.0.2.10 to receive an immediate SNMP notification-without polling-whenever no httpd processes are running.
Which additional configuration change on the web server will BEST achieve this?

  • Add view all included .1 to snmpd.conf so the entire MIB tree is readable.

  • Change the monitor line to monitor -r 5 -o hrSWRunName "Apache stopped" proc httpd 1 1 to shorten the polling interval.

  • Add trap2sink 192.0.2.10 public to snmpd.conf and restart the SNMP agent.

  • Launch snmptrapd on the web server listening on UDP port 161 to forward the trap.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot