I may be reading it incorrectly but it seems that insert.pl is not
bothering to parse the UOM from the performance data and just always
sets it as GAUGE...

sub parseperfdata {
  <snip>
        eval {
                my @a =
Nagios::Plugin::Performance->parse_perfstring($P{perfdata});
                if (@a) {
                        foreach my $a (@a) {
                                push @metrics, { metric =>
$a->clean_label, dstype => "GAUGE", value => $a->value, threshold =>
$a->threshold };
                        }
                }
        };

Can it not at least read the UOM type and interpret the dstype correctly ?
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to