Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

wrap_multi

Current Version
1.0.1
Last Release Date
2010-07-08
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
99685
Files:
FileDescription
READMEREADME
ChangesChanges
Nagios-Plugin-WrapMulti-v1.0.1.tar.gzInstallation package
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This script runs the specified Nagios-plugin, captures stdout and reformats the
performance-data to multi-label-format as specified by check_multi.

It has been designed for check-scripts, which check several instances (f.e. disks) on one system.
NAME
Multi label wrapper (wrap_multi.pl) - standard perfoutput to
multi-label-format

VERSION
Version 1.0.1 (stable)

FILENAME- and PATH of the WRAPPED CHECK-SCRIPT
In order to keep the script simple and independent, only usual file- and
directory-names are supported.

This script probably will not work with delimiters other than
forward-slashes.

SYNOPSIS
This script runs the specified Nagios-plugin, captures stdout and
reformats the performance-data to multi-label-format as specified by
check_multi.

EXAMPLE
$ wrap_multi.pl 'check_disk.pl' '-H host' free_space

This prints

DISK OK - free space: / 3326 MB (56%); | check_disk::multi_label::instances=4
/ 15272 MB (77%);
/boot 68 MB (69%);
/home 69357 MB (27%);
/var/log 819 MB (84%); | /::check_disk::free_space=2643MB;5948;5958;0;5968
/boot::check_disk::free_space=68MB;88;93;0;98
/home::check_disk::free_space=69357MB;253404;253409;0;253414
/var/log::check_disk::free_space=818MB;970;975;0;980

instead of the following (output without wrap_multi):

DISK OK - free space: / 3326 MB (56%); | /=2643MB;5948;5958;0;5968
/ 15272 MB (77%);/boot 68 MB (69%);
/home 69357 MB (27%);
/var/log 819 MB (84%); | /boot=68MB;88;93;0;98
/home=69357MB;253404;253409;0;253414
/var/log=818MB;970;975;0;980

SYNTAX
BASIC
This wrapper-script receives three parameter, the name of the
check-script to wrap, its arguments and a label:

$ wrap_multi.pl
Reviews (1)
byh4ck3rm1k3, February 6, 2011
1 of 1 people found this review helpful
Using for wrapping some perl script I wrote, which icinga was displaying as null. now works. dont know why!