You can create a passive check using the following example. We recommend putting your passive checks in a file called something like passive.cfg
in the <ncpa path>/etc/ncpa.cfg.d
folder. You must add in the [passive directives]
header before adding the definitions. Default installs of NCPA come with an example.cfg
that shows what a basic passive check setup looks like.
Make sure that you restart the passive service once you've updated the configuration.
Note: Passive checks also allow you to define individual check intervals. Add |<check duration>
to the end of the service name in order to use the specified value in seconds. If no check interval is defined, the default interval in the ncpa.cfg will be used.