Announcement

Collapse
No announcement yet.

check_Iftraffic64.pl / Perfdata in B / Nagvis style Weathermap

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • check_Iftraffic64.pl / Perfdata in B / Nagvis style Weathermap

    Hello everyone,

    I allow myself to create a post because I have a problem with the check_iftraffic64.pl plugin.
    I currently own CENTREON CES 3.4 with nagvis 1.8.5, I want to use the lines wheathermap style.

    My test is conclusive because I actually see the percentage and the bandwidth but unfortunately it is expressed in B, I would like to make a modification to be expressed in KB, MB or GB.

    I looked at the result of my perfdata on Centreon it is actually in B:

    InUsage = 0.56%; 80; 90 outUsage = 0.16%; 80; 90 inBandwidth = 702881.51B outBandwidth = 199580.58B inAbsolut = 6293349029107c outAbsolut = 1785396281872c
    Nagvis_Traffic.PNG

    How do I get a correct display under nagvis? I want this:

    nagvisok.PNG


    In advance I thank you for your help and wish you an excellent day

  • #2
    hi.
    perhaps that 2nd screenshot comes from a different plugin because I see "check_iftraffic64.pl" can only do -B (convert bits / bytes) as parameter.
    however if you want to keep using "check_iftraffic64.pl", then I'd change in the code:

    # don't scale perf data or change it to bits from bytes
    #$pin_ave = $in_traffic;
    #$pout_ave = $out_traffic;
    my $pin_ave = sprintf( "%.4f", $in_traffic / 1000000 );
    my $pout_ave = sprintf( "%.4f", $out_traffic / 1000000 );


    /1000000 for M, /1000 for K etc

    greetz, Federico

    Comment


    • #3
      I wrote this plugin some time ago:

      https://exchange.nagios.org/director...ic_OID/details

      But you have to know your interfaces counter OID's
      CES 3
      Modules: Centreon Syslog / Centreon-NagVis / Mobile-UI

      Centreon depuis le navigateur de votre smartphone c'est par ici: https://github.com/nutzmdm/mobile-UI

      Comment

      Working...
      X