Chapter 6. Plugins for Network Services

Every plugin that is used for host and service checks is a separate and independent program that can also be used independently of Nagios. The other way round, it is not so easy: in order for Nagios to use an external program, it must obey certain rules. The most important of these concerns the return status that is returned by the program. Using this, Nagios precisely evaluates the status. Table 6-1 displays the possible values.

Table 6-1. Return values for Nagios plugins

Status

Name

Description

0

OK

Everything in order

1

WARNING

Warning limit has been exceeded, but critical limit not yet reached

2

CRITICAL

Critical limit exceeded or the plugin has broken off the test after a timeout

3

UNKNOWN

Error has occurred inside ...

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.