Thanks to Ton Voon now it has become even easier to develop nagios plugins using Perl.
A family of perl modules to streamline writing Nagios Just Released 6 Jan 2009.
HOW TO SETUP
Pre-Requisites Perl Modules
# cpan
# install Class::Accessor Config::Tiny Math::Calc::Units Params::Validate
Download, Uncompress and Install
# wget http://cpan.uwinnipeg.ca/cpan/authors/id/T/TO/TONVOON/Nagios-Plugin-0.31.tar.gz
# tar -zxvf Nagios-Plugin-0.31.tar.gz

To install this module type the following:
# perl Makefile.PL
# make
# make test
# make install

EXAMPLE SCRIPT
“Enough talk! Show me where to start!”
See the file ‘check_stuff.pl’ in the ‘t’ directory for a complete working example of a plugin script.
reference: http://cpan.uwinnipeg.ca/dist/Nagios-Plugin

Tags: , , , , , ,

1 thought on “Perl Nagios Plugin

Leave a Reply

Your email address will not be published. Required fields are marked *