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

wrap_multi

Current Version
1.0.1
Last Release Date
2010-07-08
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
95695
Files:
FileDescription
READMEREADME
ChangesChanges
Nagios-Plugin-WrapMulti-v1.0.1.tar.gzInstallation package

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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!