Freeware and Plugins

Freewaregruppe Monitoring/Nagios-Plugins

check_output

Windows-Plugin: which evaluates return values ​​of invoked programs

Description

check_output is a Windows-Plugin for Nagios, which evaluates return values ​​of invoked programs. Supports regular expressions (Regex).

Requirements

Documentation

Usually you run the script with the path to the program, the parameter(s) and the necessary string for alerting:

C:> check_ouput.exe path=<program> args=<arguments> exp=<expression>

It can be used on German and English systems.

For debugging purposes, it may also be called with a more detailed output option (this mode is not suitable for continuous operation, but for testing purposes only).

Afterwards it will output the detailed status of the individual components:

C:> check_output.exe path=“ C:\program files (x86)\oracle\bin\db-parser.exe“ args=„-sql-db=MYDB –sql-user=ORA –sql-password=secret –sql-db=MY_TESTDB –sql-table=ORA_SYS_01 –sql-cmd=‘select * from testtable;‘ exp=blabla debug

For information on the plugin and its usage you can call it with the help command:

C:> check_output.exe help

Installation

Preferably the plugin is copied into the script directory where you will store your checks under Windows

When using NSClient ++ an entry in NSC.INI similar to this is generated:

Examples

Check data security protocols for fatal error messages:

C:> check_output.exe path=d:\programme\logchecker.exe args=“-dir d:\logs\backuplogs –files *.log“ exp=fatal

Check with a small test script:

C:> check_output.exe path=C:\batches\date_time.cmd args=echo exp=bla

The contents of the file date_time.cmd are this:

Changelog

2014-07-06
1.1 – Support for .Net 4.0

2010-05-12
1.0 – First public version

Copyright

check_output is licensed under the GNU General Public License.

Author

Joachim Luft will answer your questions to this plugin and is happy about your donation.

Freeware name

check_output

  • System: Nagios Plugins und Addons
  • Date: 06.July 2014
  • Author: Joachim Luft
  • Version: 1.1

Category: Monitoring/Nagios-Plugins

Tags: Windows-Plugin

Download