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")