13.2 Passive Service Checks

In order for Nagios to be able to accept passive service checks via the interface, this must be explicitly allowed in the global configuration and in the corresponding service definition. The corresponding entry in nagios.cfg is

# /etc/nagios/nagios.cfg
...
accept_passive_service_checks=1
...

In the service definition you can select whether you want to perform active checks in parallel to the passive ones. Active checks are only possible, of course, if Nagios can query the information itself. The following example allows passive checks and stops all active ones:

define service{ host_name linux01 service_description Disks passive_checks_enabled 1 active_checks_enabled 0 check_command check_dummy check_period none ... } ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.