GithubHelp home page GithubHelp logo

araujorm / nagios-check_file_content Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deimosfr/nagios-check_file_content

0.0 0.0 0.0 17 KB

Nagios file parser check

License: GNU General Public License v2.0

Perl 100.00%

nagios-check_file_content's Introduction

nagios-check_file_content

Nagios/Icinga plugin to check file contents

Usage

Usage : check_file_content.pl -f file -i include [-e exclude] [-c lines_number_range] [-m max_search] [--help]

 -?, --usage
   Print usage information
 -h, --help
   Print detailed help screen
 -V, --version
   Print version information
 --extra-opts=[section][@file]
   Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html
   for usage and examples.
 -f=STRING
   Full path to file to analyze (mandatory)
 -c=STRING
   Critical threshold for the number of lines to find, in RANGE format (see link below).
   Default is "1:" which means "at least 1".
 -w=STRING
   Warning threshold for the number of lines to find, in RANGE format (see link below).
   Defaults to none (no warning).
 -n=INTEGER
   (DEPRECATED) Number of lines to find (in integer format, for compatibility with older versions or
   variants of this plugin). Usage of this option is discouraged in new setups.
   Using this option with a N value is equivalent as using -c N: and it cannot be used at the same
   time as -w or -c.
 -m=INTEGER
   Maximum number of lines to search on (default is all).
 -i=STRING
   Include pattern (mandatory, can be repeated multiple times).
 -e=STRING
   Exclude pattern (can be repeated multiple times).
 -t, --timeout=INTEGER
   Seconds before plugin times out (default: 15)
 -v, --verbose
   Show details for command-line debugging (can repeat up to 3 times)

Example : check_file_content.pl -f /etc/passwd -i 0 -e root -n 5

See https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT for the threshold format.

nagios-check_file_content's People

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.