* Remote Check Tunneling

wrap_multi

Description:

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.

Current Version

1.0.1

Last Release Date

2010-07-08

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Project Files
Project Notes
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) Add a Review
It works
by h4ck3rm1k3, February 28, 2011

Using for wrapping some perl script I wrote, which icinga was displaying as null. now works. dont know why!



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
1
Views
100,077