Giter Club home page Giter Club logo

nagios-plugin-perl's Introduction

Nagios!

Build Status

Nagios::Monitoring::Plugin

  • These modules are meant for perl developers of Nagios plugins.

  • It is meant to simplify a lot of the common functions required to do checking of a particular service.

  • The modules are still in an experimental stage and will be considered stable when it reaches version 1.0.

Installing

You may need some prerequisites first. If you're on CentOS/RHEL, make sure to install CPAN and use those packages, since yum no longer supports some required packages.
For CentOS 6/7:

yum install -y perl-devel cpan make
cpan Test::More
cpan Params::Validate Math::Calc::Units Class::Accessor::Fast Config::Tiny

For Debian 7+/Ubuntu 14.04+:

apt-get install make libperl-dev libparams-validate-perl libmath-calc-units-perl libclass-accessor-perl libconfig-tiny-perl

For Fedora 25+:

dnf install -y make perl-devel 'perl(Params::Validate)' 'perl(Math::Calc::Units)' 'perl(Class::Accessor::Fast)' 'perl(Config::Tiny)' 'perl(Test::More)'

To install this module type the following:

perl Makefile.PL
make
make test
make install

Example

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.

License Notice

Copyright (C) 2006-2017 by Nagios Plugin Development Team

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.

nagios-plugin-perl's People

Contributors

dermoth avatar g0hl1n avatar hedenface avatar ngnagios avatar sawolf avatar sni avatar weiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nagios-plugin-perl's Issues

Where to find utils.pm ?

I am trying to install on monitored host this plugin

When manually executing on monitored host I get this

# ./check_file_size
Can't locate utils.pm in @INC (you may need to install the utils module) (@INC contains: /usr/lib/nagios/plugins /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./check_file_size line 29.

Installed this: https://github.com/nagios-plugins/nagios-plugin-perl

But not contains utils.pm

# make install
Manifying 8 pod documents
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Config.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Performance.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Threshold.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Getopt.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Functions.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/ExitResult.pm
Installing /usr/local/share/perl/5.28.1/Nagios/Monitoring/Plugin/Range.pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Range.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Functions.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Threshold.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Config.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::ExitResult.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Getopt.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin.3pm
Installing /usr/local/man/man3/Nagios::Monitoring::Plugin::Performance.3pm
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.28.1/perllocal.pod

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.