[monitoring-plugins/monitoring-plugin-perl] Add LONGOUTPUT parameter to plugin_exit (#9)
Paul Dugas
notifications at github.com
Thu Mar 31 20:55:49 CEST 2016
```
--- Functions.pm.orig 2016-03-31 14:50:52.295849074 -0400
+++ Functions.pm 2016-03-31 14:55:17.350834574 -0400
@@ -118,7 +118,10 @@
# Setup output
my $output = "$STATUS_TEXT{$code}";
- $output .= " - $message" if defined $message && $message ne '';
+ if (defined $message && $message ne '') {
+ $output .= " - " unless $message =~ /^ *\n/;
+ $output .= $message;
+ }
my $shortname = ($arg->{plugin} ? $arg->{plugin}->shortname : undef);
$shortname ||= get_shortname(); # Should happen only if funnctions are called directly
$output = "$shortname $output" if $shortname;
```
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/monitoring-plugins/monitoring-plugin-perl/issues/9#issuecomment-204077168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20160331/d1d8a30f/attachment.html>
More information about the Devel
mailing list