Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
wrap_multi
1.0.1
2010-07-08
- Nagios 2.x
- Nagios 3.x
100032
File | Description |
---|---|
README | README |
Changes | Changes |
Nagios-Plugin-WrapMulti-v1.0.1.tar.gz | Installation package |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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)
Using for wrapping some perl script I wrote, which icinga was displaying as null. now works. dont know why!