On 28 Jul 2009, at 15:16, Andrew Hall wrote:

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 ?

Yes it does - was fixed in commit 2364 (released as version 3.0.4 - https://secure.opsera.com/wsvn/wsvn/opsview/trunk/opsview-core/bin/insert.pl) - what version are you on?

  Duncs

--
Duncan Ferguson
Senior Developer

<<inline: image001.gif>>




Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   +44 (0) 845 057 7887
Mobile:   +44 (0) 7968 148 748
Skype:   duncan_j_ferguson     Email:   [email protected]
www.opsera.com

Opsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, Surrey, GU21 4RB.

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to