Skip Menu |
 

This queue is for tickets about the Nagios-Plugin CPAN distribution.

Report information
The Basics
Id: 43644
Status: resolved
Priority: 0/
Queue: Nagios-Plugin

People
Owner: Nobody in particular
Requestors: AERO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 1002b
Hello. In http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN203 Nagio Performance data format is 'label'=value[UOM];[warn];[crit];[min];[max] the single quotes for the label are optional. Required if spaces, = or ' are in the label. NSClient++(Windows nagios agent) returns 'page file'=36%;80;90; as the result for pagefile check command. It is valid format according to http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN203 But Nagios::Plugin::Performance module can't handle quoted string(performace label) properly. <code> use Nagios::Plugin::Performance; use Data::Dump qw/dump/; my $str=q/1235616902||windows||Paging File Utilisation||OK: page file: 1.35G||'page file'=34%;80;90;/ ; my @a = Nagios::Plugin::Performance->parse_perfstring($str); dump(@a); <result> bless({ critical => 90, label => "file'", <-- This should be "page file" by spec. max => undef, min => undef, uom => "%", value => 34, warning => 80, }, "Nagios::Plugin::Performance")
Patch privately sent to me. Applied to Nagios::Plugin 0.32 and uploaded to CPAN. Thanks.
Patch privately sent to me. Applied to Nagios::Plugin 0.32 and uploaded to CPAN. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.