Exam Practice Questions And Correct
Answers (Verified Answers) Plus
Rationales 2026 Q&A | Instant
Download Pdf
1. Which Nagios configuration file is primarily used to define hosts?
A. commands.cfg
B. hosts.cfg
C. services.cfg
D. nagios.cfg
Answer: B
Rationale: hosts.cfg is commonly used to define host objects in
Nagios configurations.
2. Which directive defines the hostname in a host definition?
A. host_name
B. service_description
C. check_command
, D. contact_name
Answer: A
Rationale: host_name specifies the unique identifier of a host in
Nagios.
3. What is the purpose of the check_command directive?
A. Defines host groups
B. Defines service notifications
C. Specifies the plugin used for checks
D. Defines contact groups
Answer: C
Rationale: check_command tells Nagios which plugin or command to
execute for monitoring.
4. Which file typically contains service definitions?
A. hosts.cfg
B. services.cfg
C. contacts.cfg
D. timeperiods.cfg
Answer: B
Rationale: services.cfg is used to define service checks for hosts.
5. What does the use directive do in a host definition?
A. Assigns services to a host
B. Inherits properties from a template
C. Defines a contact group
, D. Sets notification period
Answer: B
Rationale: use allows a host to inherit properties from a predefined
template.
6. Which directive specifies the IP address of a host?
A. address
B. ip_host
C. host_ip
D. network_address
Answer: A
Rationale: address defines the IP address or FQDN of a host.
7. What is the function of hostgroups?
A. Define service checks
B. Group multiple hosts logically
C. Define contacts
D. Set time periods
Answer: B
Rationale: hostgroups allow logical grouping of multiple hosts for
easier management.
8. Which file defines command objects in Nagios?
A. commands.cfg
B. services.cfg
C. hosts.cfg
, D. nagios.cfg
Answer: A
Rationale: commands.cfg contains definitions of check commands
and plugins.
9. What is a service_description used for?
A. Identifies a host
B. Defines a service name
C. Defines a contact
D. Defines a plugin path
Answer: B
Rationale: service_description uniquely identifies a service on a host.
10. Which directive controls notification settings?
A. notification_options
B. check_interval
C. retry_interval
D. max_check_attempts
Answer: A
Rationale: notification_options define when notifications are sent.
11. What does max_check_attempts define?
A. Number of services
B. Number of retry attempts before alert
C. Number of hosts
D. Notification delay