24.2 The Perl Module Nagios::Plugin

If you want to create plugins in Perl with as little effort as possible, while at the same time conforming to the programming guidelines, the Perl module Nagios::Plugin is at hand to provide support to developers. We will introduce it here in version 0.21 from October 2007. In this version the main functions are well developed and should not undergo any major changes, apart from the message functions, which are still marked as being experimental.

This object-oriented module contains constants and variables to represent states; exit functions that use not only a Nagios-compatible exit code, but also the same formatting; and functions for testing thresholds and for the correct output of performance data. In addition, ...

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.